summaryrefslogtreecommitdiff
path: root/libavcodec/vp8.h
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2014-02-18 21:52:30 +1100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-25 13:29:05 +0100
commit89f2f5dbd7a23e7ec1073d3c08d46093a01a4135 (patch)
tree858adf619b0de6c5645803cfffa8782222957ae5 /libavcodec/vp8.h
parent7d4c0220f18af97857f9f65cb36e2aaa0200220b (diff)
downloadffmpeg-89f2f5dbd7a23e7ec1073d3c08d46093a01a4135.tar.gz
On2 VP7 decoder
Signed-off-by: Peter Ross <pross@xvid.org> Reviewed-by: BBB previous patch reviewed by jason Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp8.h')
-rw-r--r--libavcodec/vp8.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h
index 2f00298826..ed88717c51 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);