changeset 1514:b1a0fc3ad09f libavcodec

forgot to commit, i hope its correct
author michael
date Sat, 11 Oct 2003 09:11:15 +0000
parents 67069cb78a39
children e94e299aee40
files 4xm.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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