/* */ /* Constants used by the new DCT algorithm (feigs approach) */ /* this is just a template which is to be send through the filter */ /* "expand_const". This tiny calculator substitutes all equations */ /* between "#COMPUTE" and "#" (inclusive these marks) by their */ /* result. It also converts them to the algorithms fixpoint format */ /* (32-CONSTBITS).CONST_BITS, using a left shift: C6 = C6 << CONST_BITS_JA */ /* Thus, CONST_BITS_JA has to be defined BEFORE expand_const reaches the */ /* first #COMPUTE. */ #define CONST_BITS_JA 11 #define VAL_BITS 11 #define ALLBITS 22 #define TWO 1+CONST_BITS_JA #define C6 #COMPUTE 2*sin(pi/8) # #define C4C6 #COMPUTE 2*sqrt(2)*sin(pi/8) # #define C4 #COMPUTE sqrt(2) # #define Q #COMPUTE 2*(cos(pi/8)-sin(pi/8)) # #define C4Q #COMPUTE 2*sqrt(2)*(cos(pi/8)-sin(pi/8)) # #define R #COMPUTE 2*(cos(pi/8)+sin(pi/8)) # #define C4R #COMPUTE 2*sqrt(2)*(cos(pi/8)+sin(pi/8)) #