Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-02-20 03:59:51 +0300
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-03-25 22:52:44 +0300
commit577393321c389ad2973bec6168a8045c94a9e099 (patch)
tree72905b9e214154d51a39d97a239caeab6777639f /libavcodec/intrax8.c
parent68127e1bf8037a6e0acd6401cc8c5da950e3fa0a (diff)
intrax8: Carry over the loopfilter value in ff_intrax8_decode_picture
Helps in decoupling this code from mpegvideo.
Diffstat (limited to 'libavcodec/intrax8.c')
-rw-r--r--libavcodec/intrax8.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c
index 0082591c6b..a3e21a336c 100644
--- a/libavcodec/intrax8.c
+++ b/libavcodec/intrax8.c
@@ -712,7 +712,7 @@ block_placed:
if (!chroma)
x8_update_predictions(w, w->orient, n);
- if (s->loop_filter) {
+ if (w->loopfilter) {
uint8_t *ptr = w->dest[chroma];
int linesize = s->current_picture.f->linesize[!!chroma];
@@ -776,7 +776,7 @@ av_cold void ff_intrax8_common_end(IntraX8Context *w)
}
int ff_intrax8_decode_picture(IntraX8Context *const w, int dquant,
- int quant_offset)
+ int quant_offset, int loopfilter)
{
MpegEncContext *const s = w->s;
int mb_xy;
@@ -786,6 +786,7 @@ int ff_intrax8_decode_picture(IntraX8Context *const w, int dquant,
w->dquant = dquant;
w->quant = dquant >> 1;
w->qsum = quant_offset;
+ w->loopfilter = loopfilter;
w->divide_quant_dc_luma = ((1 << 16) + (w->quant >> 1)) / w->quant;
if (w->quant < 5) {