comparison mjpegdec.c @ 5736:810067f2c33d libavcodec

AMV video decoder. Patch by Vladimir Voroshilov (voroshil - gmail - com)
author vitor
date Sat, 29 Sep 2007 15:20:22 +0000
parents 0590ad246eca
children e0a872dd3ea1
comparison
equal deleted inserted replaced
5735:8b211f34a3eb 5736:810067f2c33d
667 667
668 for(i=0; i < nb_components; i++) { 668 for(i=0; i < nb_components; i++) {
669 int c = s->comp_index[i]; 669 int c = s->comp_index[i];
670 data[c] = s->picture.data[c]; 670 data[c] = s->picture.data[c];
671 linesize[c]=s->linesize[c]; 671 linesize[c]=s->linesize[c];
672 if(s->avctx->codec->id==CODEC_ID_AMV) {
673 //picture should be flipped upside-down for this codec
674 data[c] += (linesize[c] * (s->v_scount[i] * 8 * s->mb_height - 1));
675 linesize[c] *= -1;
676 }
672 } 677 }
673 678
674 for(mb_y = 0; mb_y < s->mb_height; mb_y++) { 679 for(mb_y = 0; mb_y < s->mb_height; mb_y++) {
675 for(mb_x = 0; mb_x < s->mb_width; mb_x++) { 680 for(mb_x = 0; mb_x < s->mb_width; mb_x++) {
676 if (s->restart_interval && !s->restart_count) 681 if (s->restart_interval && !s->restart_count)