mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-24 07:50:11 +01:00
dsputil: Split clear_block*/fill_block* off into a separate context
This commit is contained in:
@@ -1227,7 +1227,7 @@ static int mpeg4_decode_partitioned_mb(MpegEncContext *s, int16_t block[6][64])
|
||||
|
||||
if (!IS_SKIP(mb_type)) {
|
||||
int i;
|
||||
s->dsp.clear_blocks(s->block[0]);
|
||||
s->bdsp.clear_blocks(s->block[0]);
|
||||
/* decode each block */
|
||||
for (i = 0; i < 6; i++) {
|
||||
if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, s->mb_intra, ctx->rvlc) < 0) {
|
||||
@@ -1305,7 +1305,7 @@ static int mpeg4_decode_mb(MpegEncContext *s, int16_t block[6][64])
|
||||
}
|
||||
} while (cbpc == 20);
|
||||
|
||||
s->dsp.clear_blocks(s->block[0]);
|
||||
s->bdsp.clear_blocks(s->block[0]);
|
||||
dquant = cbpc & 8;
|
||||
s->mb_intra = ((cbpc & 4) != 0);
|
||||
if (s->mb_intra)
|
||||
@@ -1451,7 +1451,7 @@ static int mpeg4_decode_mb(MpegEncContext *s, int16_t block[6][64])
|
||||
if (modb2) {
|
||||
cbp = 0;
|
||||
} else {
|
||||
s->dsp.clear_blocks(s->block[0]);
|
||||
s->bdsp.clear_blocks(s->block[0]);
|
||||
cbp = get_bits(&s->gb, 6);
|
||||
}
|
||||
|
||||
@@ -1586,7 +1586,7 @@ intra:
|
||||
if (!s->progressive_sequence)
|
||||
s->interlaced_dct = get_bits1(&s->gb);
|
||||
|
||||
s->dsp.clear_blocks(s->block[0]);
|
||||
s->bdsp.clear_blocks(s->block[0]);
|
||||
/* decode each block */
|
||||
for (i = 0; i < 6; i++) {
|
||||
if (mpeg4_decode_block(ctx, block[i], i, cbp & 32, 1, 0) < 0)
|
||||
|
||||
Reference in New Issue
Block a user