diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-20 04:33:12 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-25 22:53:02 +0300 |
commit | eaeba6f241e0de0e797be10f8fda967ef8489e64 (patch) | |
tree | 8e3fa9ed2aa6bf1a739f9bb1e46dd98141f1d9e8 /libavcodec/intrax8.h | |
parent | 577393321c389ad2973bec6168a8045c94a9e099 (diff) |
intrax8: Pass the output frame to the decoding function
Helps in decoupling this code from mpegvideo.
Diffstat (limited to 'libavcodec/intrax8.h')
-rw-r--r-- | libavcodec/intrax8.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/intrax8.h b/libavcodec/intrax8.h index f73cfcd874..f087b9f4d8 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -23,6 +23,7 @@ #include "mpegvideo.h" #include "idctdsp.h" #include "intrax8dsp.h" +#include "mpegpicture.h" typedef struct IntraX8Context { VLC *j_ac_vlc[4]; // they point to the static j_mb_vlc @@ -43,6 +44,7 @@ typedef struct IntraX8Context { int dquant; int qsum; int loopfilter; + AVFrame *frame; // calculated per frame int quant_dc_chroma; @@ -84,11 +86,12 @@ void ff_intrax8_common_end(IntraX8Context *w); * 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 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, int quant, int halfpq, - int loopfilter); +int ff_intrax8_decode_picture(IntraX8Context *w, Picture *pict, + int quant, int halfpq, int loopfilter); #endif /* AVCODEC_INTRAX8_H */ |