diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-20 08:43:22 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-25 22:55:02 +0300 |
commit | 1eaae7abb8f208fefb4e8b9e983e61b2499206a3 (patch) | |
tree | 136d33d22fd5f8dfe60201fdd7aebbffee77791f /libavcodec/intrax8.h | |
parent | 8072345e9f86d88fbc4a15c17cb03f1e4701c9a5 (diff) |
intrax8: Reference the current AVCodecContext
It will be needed to initialize BlockDSP in the next commit.
Diffstat (limited to 'libavcodec/intrax8.h')
-rw-r--r-- | libavcodec/intrax8.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index f07349f3c4..7a0eaf7a66 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -35,6 +35,7 @@ typedef struct IntraX8Context { // set by ff_intrax8_common_init uint8_t *prediction_table; // 2 * (mb_w * 2) ScanTable scantable[3]; + AVCodecContext *avctx; // set by the caller codec MpegEncContext *s; @@ -67,12 +68,14 @@ typedef struct IntraX8Context { /** * Initialize IntraX8 frame decoder. * Requires valid MpegEncContext with valid s->mb_width before calling. + * @param avctx pointer to AVCodecContext * @param w pointer to IntraX8Context * @param idsp pointer to IDCTDSPContext * @param s pointer to MpegEncContext of the parent codec * @return 0 on success, a negative AVERROR value on error */ -int ff_intrax8_common_init(IntraX8Context *w, IDCTDSPContext *idsp, +int ff_intrax8_common_init(AVCodecContext *avctx, + IntraX8Context *w, IDCTDSPContext *idsp, MpegEncContext *const s); /** |