comparison mjpeg.c @ 477:bc7ceb6461eb libavcodec

use ff_idct_put()
author bellard
date Wed, 05 Jun 2002 18:35:28 +0000
parents 000aeeac27a2
children b5b91e89b88c
comparison
equal deleted inserted replaced
476:ec13b0a726c3 477:bc7ceb6461eb
990 dprintf("error y=%d x=%d\n", mb_y, mb_x); 990 dprintf("error y=%d x=%d\n", mb_y, mb_x);
991 ret = -1; 991 ret = -1;
992 goto the_end; 992 goto the_end;
993 } 993 }
994 // dprintf("mb: %d %d processed\n", mb_y, mb_x); 994 // dprintf("mb: %d %d processed\n", mb_y, mb_x);
995 ff_idct (s->block);
996 ptr = s->current_picture[c] + 995 ptr = s->current_picture[c] +
997 (s->linesize[c] * (v * mb_y + y) * 8) + 996 (s->linesize[c] * (v * mb_y + y) * 8) +
998 (h * mb_x + x) * 8; 997 (h * mb_x + x) * 8;
999 if (s->interlaced && s->bottom_field) 998 if (s->interlaced && s->bottom_field)
1000 ptr += s->linesize[c] >> 1; 999 ptr += s->linesize[c] >> 1;
1001 put_pixels_clamped(s->block, ptr, s->linesize[c]); 1000 ff_idct_put(ptr, s->linesize[c], s->block);
1002 if (++x == h) { 1001 if (++x == h) {
1003 x = 0; 1002 x = 0;
1004 y++; 1003 y++;
1005 } 1004 }
1006 } 1005 }