diff options
author | James Almer <jamrial@gmail.com> | 2020-11-15 18:55:40 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-01-04 16:28:29 -0300 |
commit | f951d475635c02e5448afc7665dba24d2ccea533 (patch) | |
tree | af8b07c384426f285eb3ac0d4e791e3e075e3b63 /libavcodec/cbs_av1.h | |
parent | 3b8400c221983c9b1c894532d275af03144f8834 (diff) | |
download | ffmpeg-f951d475635c02e5448afc7665dba24d2ccea533.tar.gz |
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 <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_av1.h')
-rw-r--r-- | libavcodec/cbs_av1.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |