From f951d475635c02e5448afc7665dba24d2ccea533 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 15 Nov 2020 18:55:40 -0300 Subject: avcodec/cbs_av1: add an option to select an operating point This implements the function drop_obu() as defined in Setion 6.2.1 from the spec. In a reading only scenario, units that belong to an operating point the caller doesn't want should not be parsed. Signed-off-by: James Almer --- libavcodec/cbs_av1.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavcodec/cbs_av1.h') diff --git a/libavcodec/cbs_av1.h b/libavcodec/cbs_av1.h index 799470015c..1fc80dcfa0 100644 --- a/libavcodec/cbs_av1.h +++ b/libavcodec/cbs_av1.h @@ -425,6 +425,8 @@ typedef struct AV1ReferenceFrameState { } AV1ReferenceFrameState; typedef struct CodedBitstreamAV1Context { + const AVClass *class; + AV1RawSequenceHeader *sequence_header; AVBufferRef *sequence_header_ref; @@ -453,6 +455,9 @@ typedef struct CodedBitstreamAV1Context { int tile_num; AV1ReferenceFrameState ref[AV1_NUM_REF_FRAMES]; + + // AVOptions + int operating_point; } CodedBitstreamAV1Context; -- cgit v1.2.3