Mercurial > libavcodec.hg
comparison mjpegdec.c @ 8288:800444234375 libavcodec
clear_block mmx
author | lorenm |
---|---|
date | Wed, 10 Dec 2008 21:35:17 +0000 |
parents | 7a1d037482c4 |
children | 68e959302527 |
comparison
equal
deleted
inserted
replaced
8287:7a1d037482c4 | 8288:800444234375 |
---|---|
442 | 442 |
443 static int decode_dc_progressive(MJpegDecodeContext *s, DCTELEM *block, int component, | 443 static int decode_dc_progressive(MJpegDecodeContext *s, DCTELEM *block, int component, |
444 int dc_index, int16_t *quant_matrix, int Al) | 444 int dc_index, int16_t *quant_matrix, int Al) |
445 { | 445 { |
446 int val; | 446 int val; |
447 memset(block, 0, 64*sizeof(DCTELEM)); | 447 s->dsp.clear_block(block); |
448 val = mjpeg_decode_dc(s, dc_index); | 448 val = mjpeg_decode_dc(s, dc_index); |
449 if (val == 0xffff) { | 449 if (val == 0xffff) { |
450 av_log(s->avctx, AV_LOG_ERROR, "error dc\n"); | 450 av_log(s->avctx, AV_LOG_ERROR, "error dc\n"); |
451 return -1; | 451 return -1; |
452 } | 452 } |
798 (((linesize[c] * (v * mb_y + y) * 8) + | 798 (((linesize[c] * (v * mb_y + y) * 8) + |
799 (h * mb_x + x) * 8) >> s->avctx->lowres); | 799 (h * mb_x + x) * 8) >> s->avctx->lowres); |
800 if(s->interlaced && s->bottom_field) | 800 if(s->interlaced && s->bottom_field) |
801 ptr += linesize[c] >> 1; | 801 ptr += linesize[c] >> 1; |
802 if(!s->progressive) { | 802 if(!s->progressive) { |
803 memset(s->block, 0, sizeof(s->block)); | 803 s->dsp.clear_block(s->block); |
804 if(decode_block(s, s->block, i, | 804 if(decode_block(s, s->block, i, |
805 s->dc_index[i], s->ac_index[i], | 805 s->dc_index[i], s->ac_index[i], |
806 s->quant_matrixes[ s->quant_index[c] ]) < 0) { | 806 s->quant_matrixes[ s->quant_index[c] ]) < 0) { |
807 av_log(s->avctx, AV_LOG_ERROR, "error y=%d x=%d\n", mb_y, mb_x); | 807 av_log(s->avctx, AV_LOG_ERROR, "error y=%d x=%d\n", mb_y, mb_x); |
808 return -1; | 808 return -1; |