27 #define B0 1.0000000000000000000000 
   28 #define B1 1.3870398453221474618216 // cos(pi*1/16)sqrt(2) 
   29 #define B2 1.3065629648763765278566 // cos(pi*2/16)sqrt(2) 
   30 #define B3 1.1758756024193587169745 // cos(pi*3/16)sqrt(2) 
   31 #define B4 1.0000000000000000000000 // cos(pi*4/16)sqrt(2) 
   32 #define B5 0.7856949583871021812779 // cos(pi*5/16)sqrt(2) 
   33 #define B6 0.5411961001461969843997 // cos(pi*6/16)sqrt(2) 
   34 #define B7 0.2758993792829430123360 // cos(pi*7/16)sqrt(2) 
   36 #define A4 0.70710678118654752438 // cos(pi*4/16) 
   37 #define A2 0.92387953251128675613 // cos(pi*2/16) 
   52     FLOAT s04, d04, s17, d17, s26, d26, s53, d53;
 
   53     FLOAT os07, os16, os25, os34;
 
   54     FLOAT od07, od16, od25, od34;
 
   56     for(i=0; i<y*8; i+=y){
 
   57         s17= temp[1*x + 
i] + temp[7*x + 
i];
 
   58         d17= temp[1*x + 
i] - temp[7*x + 
i];
 
   59         s53= temp[5*x + 
i] + temp[3*x + 
i];
 
   60         d53= temp[5*x + 
i] - temp[3*x + 
i];
 
   63         od25= (s17 - s53)*(2*
A4);
 
   65 #if 0 //these 2 are equivalent 
   68             tmp0 = (d17 + d53) *  (2 * 
A2);
 
   69             od34 =  d17        *  (2 * 
B6) - tmp0;
 
   70             od16 =  d53        * (-2 * 
B2) + tmp0;
 
   73         od34=  d17*(2*(
B6-
A2)) - d53*(2*
A2);
 
   74         od16=  d53*(2*(
A2-
B2)) + d17*(2*
A2);
 
   81         s26 = temp[2*x + 
i] + temp[6*x + 
i];
 
   82         d26 = temp[2*x + 
i] - temp[6*x + 
i];
 
   86         s04= temp[0*x + 
i] + temp[4*x + 
i];
 
   87         d04= temp[0*x + 
i] - temp[4*x + 
i];
 
   95             temp[0*x + 
i]= os07 + od07;
 
   96             temp[7*x + 
i]= os07 - od07;
 
   97             temp[1*x + 
i]= os16 + od16;
 
   98             temp[6*x + 
i]= os16 - od16;
 
   99             temp[2*x + 
i]= os25 + od25;
 
  100             temp[5*x + 
i]= os25 - od25;
 
  101             temp[3*x + 
i]= os34 - od34;
 
  102             temp[4*x + 
i]= os34 + od34;
 
  104             data[0*x + 
i]= 
lrintf(os07 + od07);
 
  105             data[7*x + 
i]= 
lrintf(os07 - od07);
 
  106             data[1*x + 
i]= 
lrintf(os16 + od16);
 
  107             data[6*x + 
i]= 
lrintf(os16 - od16);
 
  108             data[2*x + 
i]= 
lrintf(os25 + od25);
 
  109             data[5*x + 
i]= 
lrintf(os25 - od25);
 
  110             data[3*x + 
i]= 
lrintf(os34 - od34);
 
  111             data[4*x + 
i]= 
lrintf(os34 + od34);
 
  113             dest[0*stride + 
i]= av_clip_uint8(((
int)dest[0*stride + i]) + 
lrintf(os07 + od07));
 
  114             dest[7*stride + 
i]= av_clip_uint8(((
int)dest[7*stride + i]) + 
lrintf(os07 - od07));
 
  115             dest[1*stride + 
i]= av_clip_uint8(((
int)dest[1*stride + i]) + 
lrintf(os16 + od16));
 
  116             dest[6*stride + 
i]= av_clip_uint8(((
int)dest[6*stride + i]) + 
lrintf(os16 - od16));
 
  117             dest[2*stride + 
i]= av_clip_uint8(((
int)dest[2*stride + i]) + 
lrintf(os25 + od25));
 
  118             dest[5*stride + 
i]= av_clip_uint8(((
int)dest[5*stride + i]) + 
lrintf(os25 - od25));
 
  119             dest[3*stride + 
i]= av_clip_uint8(((
int)dest[3*stride + i]) + 
lrintf(os34 - od34));
 
  120             dest[4*stride + 
i]= av_clip_uint8(((
int)dest[4*stride + i]) + 
lrintf(os34 + od34));
 
  122             dest[0*stride + 
i]= av_clip_uint8(
lrintf(os07 + od07));
 
  123             dest[7*stride + 
i]= av_clip_uint8(
lrintf(os07 - od07));
 
  124             dest[1*stride + 
i]= av_clip_uint8(
lrintf(os16 + od16));
 
  125             dest[6*stride + 
i]= av_clip_uint8(
lrintf(os16 - od16));
 
  126             dest[2*stride + 
i]= av_clip_uint8(
lrintf(os25 + od25));
 
  127             dest[5*stride + 
i]= av_clip_uint8(
lrintf(os25 - od25));
 
  128             dest[3*stride + 
i]= av_clip_uint8(
lrintf(os34 - od34));
 
  129             dest[4*stride + 
i]= av_clip_uint8(
lrintf(os34 + od34));
 
  157     p8idct(
NULL , temp, dest, line_size, 8, 1, 2);
 
  170     p8idct(
NULL , temp, dest, line_size, 8, 1, 3);
 
ptrdiff_t const GLvoid * data
void ff_faanidct(int16_t block[64])
static const FLOAT prescale[64]
void ff_faanidct_put(uint8_t *dest, int line_size, int16_t block[64])
static void p8idct(int16_t data[64], FLOAT temp[64], uint8_t *dest, int stride, int x, int y, int type)
GLint GLenum GLboolean GLsizei stride
common internal and external API header 
void ff_faanidct_add(uint8_t *dest, int line_size, int16_t block[64])