Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-10-30 19:44:55 +0300
committerJames Almer <jamrial@gmail.com>2018-10-31 02:54:08 +0300
commitec440339b2cd2b1e9dd306fe69cfcff5d75dcd28 (patch)
tree190e113301957a571e9a1b27cd6676a75f27184c /libavcodec/cbs_vp9.h
parentedcdf3512376b64d6add61fb5c21b418ebbba1e3 (diff)
avcodec/cbs_vp9: keep track of reference frames
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_vp9.h')
-rw-r--r--libavcodec/cbs_vp9.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/cbs_vp9.h b/libavcodec/cbs_vp9.h
index b9cb422fc6..dac8171c4a 100644
--- a/libavcodec/cbs_vp9.h
+++ b/libavcodec/cbs_vp9.h
@@ -181,6 +181,13 @@ typedef struct VP9RawSuperframe {
VP9RawSuperframeIndex index;
} VP9RawSuperframe;
+typedef struct VP9ReferenceFrameState {
+ int frame_width; // RefFrameWidth
+ int frame_height; // RefFrameHeight
+ int subsampling_x; // RefSubsamplingX
+ int subsampling_y; // RefSubsamplingY
+ int bit_depth; // RefBitDepth
+} VP9ReferenceFrameState;
typedef struct CodedBitstreamVP9Context {
// Frame dimensions in 8x8 mode info blocks.
@@ -190,6 +197,15 @@ typedef struct CodedBitstreamVP9Context {
uint16_t sb64_cols;
uint16_t sb64_rows;
+ int frame_width;
+ int frame_height;
+
+ uint8_t subsampling_x;
+ uint8_t subsampling_y;
+ int bit_depth;
+
+ VP9ReferenceFrameState ref[VP9_NUM_REF_FRAMES];
+
// Write buffer.
uint8_t *write_buffer;
size_t write_buffer_size;