37 #define JPEG_INTERNALS 42 #ifdef DCT_FLOAT_SUPPORTED 50 Sorry,
this code only copes with 8x8 DCTs.
61 FAST_FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
62 FAST_FLOAT tmp10, tmp11, tmp12, tmp13;
63 FAST_FLOAT z1, z2, z3, z4, z5, z11, z13;
70 for (ctr =
DCTSIZE-1; ctr >= 0; ctr--) {
71 tmp0 = dataptr[0] + dataptr[7];
72 tmp7 = dataptr[0] - dataptr[7];
73 tmp1 = dataptr[1] + dataptr[6];
74 tmp6 = dataptr[1] - dataptr[6];
75 tmp2 = dataptr[2] + dataptr[5];
76 tmp5 = dataptr[2] - dataptr[5];
77 tmp3 = dataptr[3] + dataptr[4];
78 tmp4 = dataptr[3] - dataptr[4];
87 dataptr[0] = tmp10 + tmp11;
88 dataptr[4] = tmp10 - tmp11;
90 z1 = (tmp12 + tmp13) * ((FAST_FLOAT) 0.707106781);
91 dataptr[2] = tmp13 + z1;
92 dataptr[6] = tmp13 - z1;
101 z5 = (tmp10 - tmp12) * ((FAST_FLOAT) 0.382683433);
102 z2 = ((FAST_FLOAT) 0.541196100) * tmp10 + z5;
103 z4 = ((FAST_FLOAT) 1.306562965) * tmp12 + z5;
104 z3 = tmp11 * ((FAST_FLOAT) 0.707106781);
109 dataptr[5] = z13 + z2;
110 dataptr[3] = z13 - z2;
111 dataptr[1] = z11 + z4;
112 dataptr[7] = z11 - z4;
120 for (ctr =
DCTSIZE-1; ctr >= 0; ctr--) {
137 dataptr[
DCTSIZE*0] = tmp10 + tmp11;
138 dataptr[
DCTSIZE*4] = tmp10 - tmp11;
140 z1 = (tmp12 + tmp13) * ((FAST_FLOAT) 0.707106781);
141 dataptr[
DCTSIZE*2] = tmp13 + z1;
142 dataptr[
DCTSIZE*6] = tmp13 - z1;
151 z5 = (tmp10 - tmp12) * ((FAST_FLOAT) 0.382683433);
152 z2 = ((FAST_FLOAT) 0.541196100) * tmp10 + z5;
153 z4 = ((FAST_FLOAT) 1.306562965) * tmp12 + z5;
154 z3 = tmp11 * ((FAST_FLOAT) 0.707106781);
GLsizei GLsizei GLenum GLenum const GLvoid * data
jpeg_fdct_float(FAST_FLOAT *data)
int const JOCTET * dataptr