39 #define JPEG_INTERNALS
44 #ifdef DCT_FLOAT_SUPPORTED
52 Sorry,
this code only copes with 8x8 DCTs.
60 #define DEQUANTIZE(coef,quantval) (((FAST_FLOAT) (coef)) * (quantval))
72 FAST_FLOAT tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
73 FAST_FLOAT tmp10, tmp11, tmp12, tmp13;
74 FAST_FLOAT z5, z10, z11, z12, z13;
89 for (ctr =
DCTSIZE; ctr > 0; ctr--) {
103 FAST_FLOAT dcval =
DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]);
105 wsptr[DCTSIZE*0] = dcval;
106 wsptr[DCTSIZE*1] = dcval;
107 wsptr[DCTSIZE*2] = dcval;
108 wsptr[DCTSIZE*3] = dcval;
109 wsptr[DCTSIZE*4] = dcval;
110 wsptr[DCTSIZE*5] = dcval;
111 wsptr[DCTSIZE*6] = dcval;
112 wsptr[DCTSIZE*7] = dcval;
122 tmp0 =
DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]);
123 tmp1 =
DEQUANTIZE(inptr[DCTSIZE*2], quantptr[DCTSIZE*2]);
124 tmp2 =
DEQUANTIZE(inptr[DCTSIZE*4], quantptr[DCTSIZE*4]);
125 tmp3 =
DEQUANTIZE(inptr[DCTSIZE*6], quantptr[DCTSIZE*6]);
131 tmp12 = (tmp1 - tmp3) * ((FAST_FLOAT) 1.414213562) - tmp13;
133 tmp0 = tmp10 + tmp13;
134 tmp3 = tmp10 - tmp13;
135 tmp1 = tmp11 + tmp12;
136 tmp2 = tmp11 - tmp12;
140 tmp4 =
DEQUANTIZE(inptr[DCTSIZE*1], quantptr[DCTSIZE*1]);
141 tmp5 =
DEQUANTIZE(inptr[DCTSIZE*3], quantptr[DCTSIZE*3]);
142 tmp6 =
DEQUANTIZE(inptr[DCTSIZE*5], quantptr[DCTSIZE*5]);
143 tmp7 =
DEQUANTIZE(inptr[DCTSIZE*7], quantptr[DCTSIZE*7]);
151 tmp11 = (z11 - z13) * ((FAST_FLOAT) 1.414213562);
153 z5 = (z10 + z12) * ((FAST_FLOAT) 1.847759065);
154 tmp10 = ((FAST_FLOAT) 1.082392200) * z12 - z5;
155 tmp12 = ((FAST_FLOAT) -2.613125930) * z10 + z5;
161 wsptr[DCTSIZE*0] = tmp0 + tmp7;
162 wsptr[DCTSIZE*7] = tmp0 - tmp7;
163 wsptr[DCTSIZE*1] = tmp1 + tmp6;
164 wsptr[DCTSIZE*6] = tmp1 - tmp6;
165 wsptr[DCTSIZE*2] = tmp2 + tmp5;
166 wsptr[DCTSIZE*5] = tmp2 - tmp5;
167 wsptr[DCTSIZE*4] = tmp3 + tmp4;
168 wsptr[DCTSIZE*3] = tmp3 - tmp4;
179 for (ctr = 0; ctr <
DCTSIZE; ctr++) {
180 outptr = output_buf[ctr] + output_col;
189 tmp10 = wsptr[0] + wsptr[4];
190 tmp11 = wsptr[0] - wsptr[4];
192 tmp13 = wsptr[2] + wsptr[6];
193 tmp12 = (wsptr[2] - wsptr[6]) * ((FAST_FLOAT) 1.414213562) - tmp13;
195 tmp0 = tmp10 + tmp13;
196 tmp3 = tmp10 - tmp13;
197 tmp1 = tmp11 + tmp12;
198 tmp2 = tmp11 - tmp12;
202 z13 = wsptr[5] + wsptr[3];
203 z10 = wsptr[5] - wsptr[3];
204 z11 = wsptr[1] + wsptr[7];
205 z12 = wsptr[1] - wsptr[7];
208 tmp11 = (z11 - z13) * ((FAST_FLOAT) 1.414213562);
210 z5 = (z10 + z12) * ((FAST_FLOAT) 1.847759065);
211 tmp10 = ((FAST_FLOAT) 1.082392200) * z12 - z5;
212 tmp12 = ((FAST_FLOAT) -2.613125930) * z10 + z5;
GLOBAL void jpeg_idct_float(j_decompress_ptr cinfo, jpeg_component_info *compptr, JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col)
#define IDCT_range_limit(cinfo)
FAST_FLOAT FLOAT_MULT_TYPE
#define DEQUANTIZE(coef, quantval)