Mercurial > libavcodec.hg
comparison dnxhddec.c @ 8291:eb7667dbb9e0 libavcodec
use dsp clear_block
author | bcoudurier |
---|---|
date | Thu, 11 Dec 2008 01:14:32 +0000 |
parents | e943e1409077 |
children | 04423b2f6e0b |
comparison
equal
deleted
inserted
replaced
8290:f664577ac17d | 8291:eb7667dbb9e0 |
---|---|
217 int dct_linesize_chroma = ctx->picture.linesize[1]; | 217 int dct_linesize_chroma = ctx->picture.linesize[1]; |
218 uint8_t *dest_y, *dest_u, *dest_v; | 218 uint8_t *dest_y, *dest_u, *dest_v; |
219 int dct_offset; | 219 int dct_offset; |
220 int qscale, i; | 220 int qscale, i; |
221 | 221 |
222 ctx->dsp.clear_blocks(ctx->blocks[0]); | |
223 ctx->dsp.clear_blocks(ctx->blocks[2]); // FIXME change clear blocks to take block amount | |
224 | |
225 qscale = get_bits(&ctx->gb, 11); | 222 qscale = get_bits(&ctx->gb, 11); |
226 skip_bits1(&ctx->gb); | 223 skip_bits1(&ctx->gb); |
227 //av_log(ctx->avctx, AV_LOG_DEBUG, "qscale %d\n", qscale); | 224 //av_log(ctx->avctx, AV_LOG_DEBUG, "qscale %d\n", qscale); |
228 | 225 |
229 for (i = 0; i < 8; i++) { | 226 for (i = 0; i < 8; i++) { |
227 ctx->dsp.clear_block(ctx->blocks[i]); | |
230 dnxhd_decode_dct_block(ctx, ctx->blocks[i], i, qscale); | 228 dnxhd_decode_dct_block(ctx, ctx->blocks[i], i, qscale); |
231 } | 229 } |
232 | 230 |
233 if (ctx->picture.interlaced_frame) { | 231 if (ctx->picture.interlaced_frame) { |
234 dct_linesize_luma <<= 1; | 232 dct_linesize_luma <<= 1; |