diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-02-19 19:59:51 -0500 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2016-03-25 15:52:44 -0400 |
commit | 577393321c389ad2973bec6168a8045c94a9e099 (patch) | |
tree | 72905b9e214154d51a39d97a239caeab6777639f /libavcodec/intrax8.h | |
parent | 68127e1bf8037a6e0acd6401cc8c5da950e3fa0a (diff) | |
download | ffmpeg-577393321c389ad2973bec6168a8045c94a9e099.tar.gz |
intrax8: Carry over the loopfilter value in ff_intrax8_decode_picture
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 ef88d83d3c..f73cfcd874 100644 --- a/libavcodec/intrax8.h +++ b/libavcodec/intrax8.h @@ -42,6 +42,7 @@ typedef struct IntraX8Context { int quant; int dquant; int qsum; + int loopfilter; // calculated per frame int quant_dc_chroma; @@ -78,14 +79,16 @@ void ff_intrax8_common_end(IntraX8Context *w); /** * Decode single IntraX8 frame. - * The parent codec must fill s->loopfilter and s->gb (bitstream). + * 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 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 ff_intrax8_decode_picture(IntraX8Context *w, int quant, int halfpq, + int loopfilter); #endif /* AVCODEC_INTRAX8_H */ |