diff options
author | Michael Niedermayer | 2003-10-11 09:11:15 +0000 |
---|---|---|
committer | Michael Niedermayer | 2003-10-11 09:11:15 +0000 |
commit | c9319f2ea4043859595114dca951058c8d46cb50 (patch) | |
tree | 9ddceb8c8a6a5414bc0fb59187455d0345c0d665 /libavcodec/4xm.c | |
parent | 688cbabe2cad0200622a350396c32913942f3cfd (diff) |
forgot to commit, i hope its correct
Originally committed as revision 2357 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r-- | libavcodec/4xm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index 682143340c..03e4a175c9 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -426,6 +426,11 @@ static inline void idct_put(FourXContext *f, int x, int y){ 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 |