From 89f2f5dbd7a23e7ec1073d3c08d46093a01a4135 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Tue, 18 Feb 2014 21:52:30 +1100 Subject: On2 VP7 decoder Signed-off-by: Peter Ross Reviewed-by: BBB previous patch reviewed by jason Signed-off-by: Michael Niedermayer --- libavcodec/vp8.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'libavcodec/vp8.h') diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h index 2f00298..ed88717 100644 --- a/libavcodec/vp8.h +++ b/libavcodec/vp8.h @@ -238,6 +238,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; @@ -271,6 +272,31 @@ typedef struct VP8Context { * 1 -> Macroblocks for entire frame alloced (sliced thread). */ int mb_layout; + + void (*decode_mb_row_no_filter)(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr); + void (*filter_mb_row)(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr); + + int vp7; + + /** + * 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.1