diff options
author | James Almer <jamrial@gmail.com> | 2023-05-19 19:54:49 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-25 11:21:35 -0300 |
commit | 97f4263457dd4903e51a94b74449123d3017175f (patch) | |
tree | 619a4de64cc6555839462a837bb287f9f1723dc4 /libavcodec/av1dec.h | |
parent | 944243477b91ede33a61d359b9262b38aaa51d81 (diff) | |
download | ffmpeg-97f4263457dd4903e51a94b74449123d3017175f.tar.gz |
avcodec/av1dec: convert to receive_frame()
This removes the overhead of inserting the av1_frame_split bsf as part of the
decoding process.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/av1dec.h')
-rw-r--r-- | libavcodec/av1dec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/av1dec.h b/libavcodec/av1dec.h index cef899f81f..59ffed1d9b 100644 --- a/libavcodec/av1dec.h +++ b/libavcodec/av1dec.h @@ -28,6 +28,7 @@ #include "libavutil/frame.h" #include "libavutil/pixfmt.h" #include "avcodec.h" +#include "packet.h" #include "cbs.h" #include "cbs_av1.h" @@ -68,6 +69,7 @@ typedef struct AV1DecContext { enum AVPixelFormat pix_fmt; CodedBitstreamContext *cbc; CodedBitstreamFragment current_obu; + AVPacket *pkt; AVBufferRef *seq_ref; AV1RawSequenceHeader *raw_seq; @@ -90,6 +92,8 @@ typedef struct AV1DecContext { AV1Frame ref[AV1_NUM_REF_FRAMES]; AV1Frame cur_frame; + int nb_unit; + // AVOptions int operating_point; } AV1DecContext; |