summaryrefslogtreecommitdiff
path: root/libavcodec/intrax8.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-02-19 20:33:12 -0500
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-03-25 15:53:02 -0400
commiteaeba6f241e0de0e797be10f8fda967ef8489e64 (patch)
tree8e3fa9ed2aa6bf1a739f9bb1e46dd98141f1d9e8 /libavcodec/intrax8.h
parent577393321c389ad2973bec6168a8045c94a9e099 (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.h7
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 */