comparison i386/simple_idct_mmx.c @ 350:6ebbecc10063 libavcodec

- Advanced Intra Coding (AIC) support for H.263+ encoder, just DC by now. - Bug fix H.263+ AIC tables. - Warning fixes.
author pulento
date Thu, 02 May 2002 04:39:45 +0000
parents e80ad397d30e
children 6cef8253faab
comparison
equal deleted inserted replaced
349:34f6c77ff01a 350:6ebbecc10063
30 #define C7 4520 //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
31 31
32 #define ROW_SHIFT 11 32 #define ROW_SHIFT 11
33 #define COL_SHIFT 20 // 6 33 #define COL_SHIFT 20 // 6
34 34
35 static uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL; 35 static const uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
36 static uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL; 36 static const uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
37 static int16_t __attribute__((aligned(8))) temp[64]; 37 static int16_t __attribute__((aligned(8))) temp[64];
38 static int16_t __attribute__((aligned(8))) coeffs[]= { 38 static int16_t __attribute__((aligned(8))) coeffs[]= {
39 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0, 39 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0,
40 // 1<<(COL_SHIFT-1), 0, 1<<(COL_SHIFT-1), 0, 40 // 1<<(COL_SHIFT-1), 0, 1<<(COL_SHIFT-1), 0,
41 // 0, 1<<(COL_SHIFT-1-16), 0, 1<<(COL_SHIFT-1-16), 41 // 0, 1<<(COL_SHIFT-1-16), 0, 1<<(COL_SHIFT-1-16),
61 61
62 C7, -C5, C7, -C5, 62 C7, -C5, C7, -C5,
63 C3, -C1, C3, -C1 63 C3, -C1, C3, -C1
64 }; 64 };
65 65
66 #if 0
66 static void unused_var_killer(){ 67 static void unused_var_killer(){
67 int a= wm1010 + d40000; 68 int a= wm1010 + d40000;
68 temp[0]=a; 69 temp[0]=a;
69 } 70 }
70 71
71 #if 0
72 static void inline idctCol (int16_t * col, int16_t *input) 72 static void inline idctCol (int16_t * col, int16_t *input)
73 { 73 {
74 #undef C0 74 #undef C0
75 #undef C1 75 #undef C1
76 #undef C2 76 #undef C2