summaryrefslogtreecommitdiff
path: root/libavcodec/evc_parse.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-06-20 11:15:51 -0300
committerJames Almer <jamrial@gmail.com>2023-06-21 13:31:14 -0300
commit1bcb8a73382a253cee8b2b9e704e5a2fa3369593 (patch)
treed8520b35d5c3c803b5b1768cc50c6ea3f8e08f3c /libavcodec/evc_parse.h
parent7fc6c7633ed13a34b7865bab2ad4b5f7014e74ae (diff)
avcodec/evc_parser: use a GetBitContext to parse entire NALUs
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/evc_parse.h')
-rw-r--r--libavcodec/evc_parse.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/libavcodec/evc_parse.h b/libavcodec/evc_parse.h
index 322f52c928..0f142976f5 100644
--- a/libavcodec/evc_parse.h
+++ b/libavcodec/evc_parse.h
@@ -81,25 +81,6 @@ typedef struct EVCParserPoc {
int DocOffset; // the decoding order count of the previous picture
} EVCParserPoc;
-static inline int evc_get_nalu_type(const uint8_t *bits, int bits_size, void *logctx)
-{
- int unit_type_plus1 = 0;
-
- if (bits_size >= EVC_NALU_HEADER_SIZE) {
- unsigned char *p = (unsigned char *)bits;
- // forbidden_zero_bit
- if ((p[0] & 0x80) != 0) {
- av_log(logctx, AV_LOG_ERROR, "Invalid NAL unit header\n");
- return -1;
- }
-
- // nal_unit_type
- unit_type_plus1 = (p[0] >> 1) & 0x3F;
- }
-
- return unit_type_plus1 - 1;
-}
-
static inline uint32_t evc_read_nal_unit_length(const uint8_t *bits, int bits_size, void *logctx)
{
uint32_t nalu_len = 0;
@@ -114,9 +95,6 @@ static inline uint32_t evc_read_nal_unit_length(const uint8_t *bits, int bits_si
return nalu_len;
}
-// nuh_temporal_id specifies a temporal identifier for the NAL unit
-int ff_evc_get_temporal_id(const uint8_t *bits, int bits_size, void *logctx);
-
int ff_evc_parse_slice_header(GetBitContext *gb, EVCParserSliceHeader *sh,
const EVCParamSets *ps, enum EVCNALUnitType nalu_type);