Commit 8af915c2 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Michael Niedermayer

vp56: remove clear_blocks call, and clear alpha plane U/V DC only.

The non-alpha and alpha-Y planes are cleared in the idct_put/add()
calls. For the alpha U/V planes, we only care about the DC for entropy
context prediction purposes, the rest of the data is unused.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6a50e8a1
...@@ -394,8 +394,6 @@ static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha) ...@@ -394,8 +394,6 @@ static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha)
mb_type = vp56_decode_mv(s, row, col); mb_type = vp56_decode_mv(s, row, col);
ref_frame = vp56_reference_frame[mb_type]; ref_frame = vp56_reference_frame[mb_type];
s->dsp.clear_blocks(*s->block_coeff);
s->parse_coeff(s); s->parse_coeff(s);
vp56_add_predictors_dc(s, ref_frame); vp56_add_predictors_dc(s, ref_frame);
...@@ -448,6 +446,11 @@ static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha) ...@@ -448,6 +446,11 @@ static void vp56_decode_mb(VP56Context *s, int row, int col, int is_alpha)
} }
break; break;
} }
if (is_alpha) {
s->block_coeff[4][0] = 0;
s->block_coeff[5][0] = 0;
}
} }
static int vp56_size_changed(VP56Context *s) static int vp56_size_changed(VP56Context *s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment