From ac4b32df71bd932838043a4838b86d11e169707f Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Tue, 1 Apr 2014 14:21:51 +0200 Subject: On2 VP7 decoder Further performance improvements and security fixes by Vittorio Giovara, Luca Barbato and Diego Biurrun. Signed-off-by: Vittorio Giovara Signed-off-by: Luca Barbato Signed-off-by: Diego Biurrun --- libavcodec/vp8.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'libavcodec/vp8.h') diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h index 1eb0512626..99389051eb 100644 --- a/libavcodec/vp8.h +++ b/libavcodec/vp8.h @@ -237,6 +237,7 @@ typedef struct VP8Context { uint8_t pred8x8c[3]; uint8_t token[4][16][3][NUM_DCT_TOKENS - 1]; uint8_t mvc[2][19]; + uint8_t scan[16]; } prob[2]; VP8Macroblock *macroblocks_base; @@ -270,6 +271,26 @@ typedef struct VP8Context { * 1 -> Macroblocks for entire frame alloced (sliced thread). */ int mb_layout; + + /** + * Fade bit present in bitstream (VP7) + */ + int fade_present; + + /** + * Interframe DC prediction (VP7) + * [0] VP56_FRAME_PREVIOUS + * [1] VP56_FRAME_GOLDEN + */ + uint16_t inter_dc_pred[2][2]; + + /** + * Macroblock features (VP7) + */ + uint8_t feature_enabled[4]; + uint8_t feature_present_prob[4]; + uint8_t feature_index_prob[4][3]; + uint8_t feature_value[4][4]; } VP8Context; int ff_vp8_decode_init(AVCodecContext *avctx); -- cgit v1.2.3