C4=16383 for the c version too and even for some outcommented code
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 2 May 2002 13:35:33 +0000 (13:35 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 2 May 2002 13:35:33 +0000 (13:35 +0000)
Originally committed as revision 433 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/i386/simple_idct_mmx.c
libavcodec/simple_idct.c

index 0a111db76e891d7e55fb70bc99f201d627333b3e..9e8a98a3340fddc94c059b6a35864017a667c74d 100644 (file)
@@ -97,7 +97,7 @@ static void inline idctCol (int16_t * col, int16_t *input)
        const int C1 = 22725; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C2 = 21407; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C3 = 19266; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
-       const int C4 = 16384; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
+       const int C4 = 16383; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C5 = 12873; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C6 = 8867; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C7 = 4520; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
@@ -146,7 +146,7 @@ static void inline idctRow (int16_t * output, int16_t * input)
        const int C1 = 22725; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C2 = 21407; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C3 = 19266; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
-       const int C4 = 16384; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
+       const int C4 = 16383; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C5 = 12873; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C6 = 8867; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
        const int C7 = 4520; //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
index a9653b187732f01ba7fa1afe67f34f779e0c2c79..fb756f1ea07a636f1fdc06dfc062bce1475f56e8 100644 (file)
@@ -39,7 +39,7 @@
 #define W1  22725  //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
 #define W2  21407  //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
 #define W3  19266  //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
-#define W4  16384  //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
+#define W4  16383  //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
 #define W5  12873  //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
 #define W6  8867   //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
 #define W7  4520   //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5