diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-20 01:57:47 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-29 13:41:09 +0200 |
commit | 9fa888c02801fff2e8817c24068f5296bbe60000 (patch) | |
tree | bcb082bebbd10485d70d5e95a80534684134367c /libavcodec/intrax8.h | |
parent | c2084ffcbfc11d1b6ed3a4a0df9cafd56fbb896f (diff) | |
download | ffmpeg-9fa888c02801fff2e8817c24068f5296bbe60000.tar.gz |
intrax8: Keep a reference to the decoder blocks
Diffstat (limited to 'libavcodec/intrax8.h')
-rw-r--r-- | libavcodec/intrax8.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index 3fb9857029..ebc9a79a30 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -37,6 +37,8 @@ typedef struct IntraX8Context { uint8_t *prediction_table; // 2 * (mb_w * 2) ScanTable scantable[3]; AVCodecContext *avctx; + int *block_last_index; ///< last nonzero coefficient in block + int16_t (*block)[64]; // set by the caller codec MpegEncContext *s; @@ -77,6 +79,8 @@ typedef struct IntraX8Context { * @param avctx pointer to AVCodecContext * @param w pointer to IntraX8Context * @param idsp pointer to IDCTDSPContext + * @param block pointer to block array + * @param block_last_index pointer to index array * @param mb_width macroblock width * @param mb_height macroblock height * @param s pointer to MpegEncContext of the parent codec @@ -84,6 +88,8 @@ typedef struct IntraX8Context { */ int ff_intrax8_common_init(AVCodecContext *avctx, IntraX8Context *w, IDCTDSPContext *idsp, + int16_t (*block)[64], + int block_last_index[12], int mb_width, int mb_height, MpegEncContext *const s); |