comparison i386/simple_idct_mmx.c @ 351:6cef8253faab libavcodec

set C4 to 16383
author michaelni
date Thu, 02 May 2002 12:51:10 +0000
parents 6ebbecc10063
children 5a8eb5cf9f92
comparison
equal deleted inserted replaced
350:6ebbecc10063 351:6cef8253faab
17 */ 17 */
18 18
19 #include <inttypes.h> 19 #include <inttypes.h>
20 #include "../dsputil.h" 20 #include "../dsputil.h"
21 #include "../mangle.h" 21 #include "../mangle.h"
22 22 /*
23 23170.475006
24 22725.260826
25 21406.727617
26 19265.545870
27 16384.000000
28 12872.826198
29 8866.956905
30 4520.335430
31 */
23 #define C0 23170 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 32 #define C0 23170 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
24 #define C1 22725 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 33 #define C1 22725 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
25 #define C2 21407 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 34 #define C2 21407 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
26 #define C3 19266 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 35 #define C3 19266 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
36 #if 0
27 #define C4 16384 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 37 #define C4 16384 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
38 #else
39 #define C4 16383 //cos(i*M_PI/16)*sqrt(2)*(1<<14) - 0.5
40 #endif
28 #define C5 12873 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 41 #define C5 12873 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
29 #define C6 8867 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 42 #define C6 8867 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
30 #define C7 4520 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 43 #define C7 4520 //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5
31 44
32 #define ROW_SHIFT 11 45 #define ROW_SHIFT 11