[cvs] / xvidcore / src / dct / simple_idct.c Repository:
ViewVC logotype

Diff of /xvidcore/src/dct/simple_idct.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.1, Tue Jan 21 12:51:16 2003 UTC revision 1.2.2.1, Mon Jun 9 01:19:46 2003 UTC
# Line 35  Line 35 
35  #define ROW_SHIFT 8  #define ROW_SHIFT 8
36  #define COL_SHIFT 17  #define COL_SHIFT 17
37  #else  #else
38  #define W1  22725  //cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5  #define W1  22725  /* cos(i*M_PI/16)*sqrt(2)*(1<<14) + 0.5 */
39  #define W2  21407  //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 */
40  #define W3  19266  //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 */
41  #define W4  16383  //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 */
42  #define W5  12873  //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 */
43  #define W6  8867   //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 */
44  #define W7  4520   //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 */
45  #define ROW_SHIFT 11  #define ROW_SHIFT 11
46  #define COL_SHIFT 20 // 6  #define COL_SHIFT 20 /* 6 */
47  #endif  #endif
48    
49  #if defined(ARCH_POWERPC_405)  #if defined(ARCH_IS_PPC)
50    
51  /* signed 16x16 -> 32 multiply add accumulate */  /* signed 16x16 -> 32 multiply add accumulate */
52  #define MAC16(rt, ra, rb) \  #define MAC16(rt, ra, rb) \
# Line 76  Line 76 
76  #endif  #endif
77    
78  #ifdef FAST_64BIT  #ifdef FAST_64BIT
79  #ifdef WORDS_BIGENDIAN  #ifdef ARCH_IS_BIG_ENDIAN
80  #define ROW0_MASK 0xffff000000000000LL  #define ROW0_MASK 0xffff000000000000LL
81  #else  #else
82  #define ROW0_MASK 0xffffLL  #define ROW0_MASK 0xffffLL
# Line 244  Line 244 
244          0x32, 0x3A, 0x36, 0x3B, 0x33, 0x3E, 0x37, 0x3F,          0x32, 0x3A, 0x36, 0x3B, 0x33, 0x3E, 0x37, 0x3F,
245  };  };
246    
247    #if defined(ARCH_IS_IA32)
248  /* wrapper function, as simple_idct_mmx expects data to be permutated */  /* wrapper function, as simple_idct_mmx expects data to be permutated */
249  void simple_idct_mmx2(int16_t * const block)  void simple_idct_mmx2(int16_t * const block)
250  {  {
# Line 251  Line 252 
252      int i;      int i;
253    
254      for(i=0;i<64;i++) tmp[simple_mmx_permutation[i]] = block[i];      for(i=0;i<64;i++) tmp[simple_mmx_permutation[i]] = block[i];
255      simple_idctp_mmx(tmp);      simple_idct_mmx(tmp);
256      for(i=0;i<64;i++) block[i] = tmp[i];      for(i=0;i<64;i++) block[i] = tmp[i];
257  }  }
258    #endif

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.2.2.1

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4