# HG changeset patch # User michael # Date 1065863475 0 # Node ID b1a0fc3ad09fe96aec9a3fc5ed1ddd26863c7a0e # Parent 67069cb78a39b67f1d7919e43ee8e8f7cea3bc5a forgot to commit, i hope its correct diff -r 67069cb78a39 -r b1a0fc3ad09f 4xm.c --- a/4xm.c Sat Oct 11 08:29:05 2003 +0000 +++ b/4xm.c Sat Oct 11 09:11:15 2003 +0000 @@ -426,6 +426,11 @@ for(i=4; i<6; i++) idct(block[i]); } +/* Note transform is: +y= ( 1b + 4g + 2r)/14 +cb=( 3b - 2g - 1r)/14 +cr=(-1b - 4g + 5r)/14 +*/ for(y=0; y<8; y++){ for(x=0; x<8; x++){ DCTELEM *temp= block[(x>>2) + 2*(y>>2)] + 2*(x&3) + 2*8*(y&3); //FIXME optimize