Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1148:a325999e92b5 libavcodec
10l
author | michaelni |
---|---|
date | Sat, 22 Mar 2003 00:00:53 +0000 |
parents | 6d6003cf89c2 |
children | dde68a430ba9 |
comparison
equal
deleted
inserted
replaced
1147:dcb20b7598ed | 1148:a325999e92b5 |
---|---|
3003 for(i=0; i<3; i++){ | 3003 for(i=0; i<3; i++){ |
3004 /* init last dc values */ | 3004 /* init last dc values */ |
3005 /* note: quant matrix value (8) is implied here */ | 3005 /* note: quant matrix value (8) is implied here */ |
3006 s->last_dc[i] = 128; | 3006 s->last_dc[i] = 128; |
3007 | 3007 |
3008 s->current_picture.error[i] = 0; | 3008 s->current_picture_ptr->error[i] = 0; |
3009 } | 3009 } |
3010 s->mb_incr = 1; | 3010 s->mb_incr = 1; |
3011 s->last_mv[0][0][0] = 0; | 3011 s->last_mv[0][0][0] = 0; |
3012 s->last_mv[0][0][1] = 0; | 3012 s->last_mv[0][0][1] = 0; |
3013 s->last_mv[1][0][0] = 0; | 3013 s->last_mv[1][0][0] = 0; |
3375 int h= 16; | 3375 int h= 16; |
3376 | 3376 |
3377 if(s->mb_x*16 + 16 > s->width ) w= s->width - s->mb_x*16; | 3377 if(s->mb_x*16 + 16 > s->width ) w= s->width - s->mb_x*16; |
3378 if(s->mb_y*16 + 16 > s->height) h= s->height- s->mb_y*16; | 3378 if(s->mb_y*16 + 16 > s->height) h= s->height- s->mb_y*16; |
3379 | 3379 |
3380 s->current_picture.error[0] += sse( | 3380 s->current_picture_ptr->error[0] += sse( |
3381 s, | 3381 s, |
3382 s->new_picture .data[0] + s->mb_x*16 + s->mb_y*s->linesize*16, | 3382 s->new_picture .data[0] + s->mb_x*16 + s->mb_y*s->linesize*16, |
3383 s->current_picture.data[0] + s->mb_x*16 + s->mb_y*s->linesize*16, | 3383 s->current_picture.data[0] + s->mb_x*16 + s->mb_y*s->linesize*16, |
3384 w, h, s->linesize); | 3384 w, h, s->linesize); |
3385 s->current_picture.error[1] += sse( | 3385 s->current_picture_ptr->error[1] += sse( |
3386 s, | 3386 s, |
3387 s->new_picture .data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, | 3387 s->new_picture .data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, |
3388 s->current_picture.data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, | 3388 s->current_picture.data[1] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, |
3389 w>>1, h>>1, s->uvlinesize); | 3389 w>>1, h>>1, s->uvlinesize); |
3390 s->current_picture.error[2] += sse( | 3390 s->current_picture_ptr->error[2] += sse( |
3391 s, | 3391 s, |
3392 s->new_picture .data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, | 3392 s->new_picture .data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, |
3393 s->current_picture.data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, | 3393 s->current_picture.data[2] + s->mb_x*8 + s->mb_y*s->uvlinesize*8, |
3394 w>>1, h>>1, s->uvlinesize); | 3394 w>>1, h>>1, s->uvlinesize); |
3395 } | 3395 } |