diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-20 00:23:48 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-25 15:54:29 -0400 |
commit | 8072345e9f86d88fbc4a15c17cb03f1e4701c9a5 (patch) | |
tree | d4c3df13c4691432cd53c6bc1f3614ba06656c36 /libavcodec/intrax8.h | |
parent | 65f14128c4bcf8fcd9d3ba1e20b7a22057c9cfb0 (diff) | |
download | ffmpeg-8072345e9f86d88fbc4a15c17cb03f1e4701c9a5.tar.gz |
intrax8: Keep a reference to the GetBitContext reader
Helps in decoupling this code from mpegvideo.
Diffstat (limited to 'libavcodec/intrax8.h')
-rw-r--r-- | libavcodec/intrax8.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index f30801e38b..f07349f3c4 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -45,6 +45,7 @@ typedef struct IntraX8Context { int qsum; int loopfilter; AVFrame *frame; + GetBitContext *gb; // calculated per frame int quant_dc_chroma; @@ -82,17 +83,18 @@ void ff_intrax8_common_end(IntraX8Context *w); /** * Decode single IntraX8 frame. - * The parent codec must fill s->gb (bitstream). * The parent codec must call ff_mpv_frame_start() before calling this function. * The parent codec must call ff_mpv_frame_end() after calling this function. * This function does not use ff_mpv_decode_mb(). * @param w pointer to IntraX8Context * @param pict the output Picture containing an AVFrame + * @param gb open bitstream reader * @param dquant doubled quantizer, it would be odd in case of VC-1 halfpq==1. * @param quant_offset offset away from zero * @param loopfilter enable filter after decoding a block */ int ff_intrax8_decode_picture(IntraX8Context *w, Picture *pict, + GetBitContext *gb, int quant, int halfpq, int loopfilter); #endif /* AVCODEC_INTRAX8_H */ |