comparison 4xm.c @ 1514:b1a0fc3ad09f libavcodec

forgot to commit, i hope its correct
author michael
date Sat, 11 Oct 2003 09:11:15 +0000
parents e0402982c1a0
children 932d306bf1dc
comparison
equal deleted inserted replaced
1513:67069cb78a39 1514:b1a0fc3ad09f
424 424
425 if(!(f->avctx->flags&CODEC_FLAG_GRAY)){ 425 if(!(f->avctx->flags&CODEC_FLAG_GRAY)){
426 for(i=4; i<6; i++) idct(block[i]); 426 for(i=4; i<6; i++) idct(block[i]);
427 } 427 }
428 428
429 /* Note transform is:
430 y= ( 1b + 4g + 2r)/14
431 cb=( 3b - 2g - 1r)/14
432 cr=(-1b - 4g + 5r)/14
433 */
429 for(y=0; y<8; y++){ 434 for(y=0; y<8; y++){
430 for(x=0; x<8; x++){ 435 for(x=0; x<8; x++){
431 DCTELEM *temp= block[(x>>2) + 2*(y>>2)] + 2*(x&3) + 2*8*(y&3); //FIXME optimize 436 DCTELEM *temp= block[(x>>2) + 2*(y>>2)] + 2*(x&3) + 2*8*(y&3); //FIXME optimize
432 int cb= block[4][x + 8*y]; 437 int cb= block[4][x + 8*y];
433 int cr= block[5][x + 8*y]; 438 int cr= block[5][x + 8*y];