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;
106 wsptr[DCTSIZE*0] = dcval;
107 wsptr[DCTSIZE*1] = dcval;
108 wsptr[DCTSIZE*2] = dcval;
109 wsptr[DCTSIZE*3] = dcval;
110 wsptr[DCTSIZE*4] = dcval;
111 wsptr[DCTSIZE*5] = dcval;
112 wsptr[DCTSIZE*6] = dcval;
113 wsptr[DCTSIZE*7] = dcval;
124 tmp1 =
DEQUANTIZE(inptr[DCTSIZE*2], quantptr[DCTSIZE*2]);
125 tmp2 =
DEQUANTIZE(inptr[DCTSIZE*4], quantptr[DCTSIZE*4]);
126 tmp3 =
DEQUANTIZE(inptr[DCTSIZE*6], quantptr[DCTSIZE*6]);
132 tmp12 = (tmp1 - tmp3) * ((FAST_FLOAT) 1.414213562) - tmp13;
134 tmp0 = tmp10 + tmp13;
135 tmp3 = tmp10 - tmp13;
136 tmp1 = tmp11 + tmp12;
137 tmp2 = tmp11 - tmp12;
141 tmp4 =
DEQUANTIZE(inptr[DCTSIZE*1], quantptr[DCTSIZE*1]);
142 tmp5 =
DEQUANTIZE(inptr[DCTSIZE*3], quantptr[DCTSIZE*3]);
143 tmp6 =
DEQUANTIZE(inptr[DCTSIZE*5], quantptr[DCTSIZE*5]);
144 tmp7 =
DEQUANTIZE(inptr[DCTSIZE*7], quantptr[DCTSIZE*7]);
152 tmp11 = (z11 - z13) * ((FAST_FLOAT) 1.414213562);
154 z5 = (z10 + z12) * ((FAST_FLOAT) 1.847759065);
155 tmp10 = ((FAST_FLOAT) 1.082392200) * z12 - z5;
156 tmp12 = ((FAST_FLOAT) -2.613125930) * z10 + z5;
162 wsptr[DCTSIZE*0] = tmp0 + tmp7;
163 wsptr[DCTSIZE*7] = tmp0 - tmp7;
164 wsptr[DCTSIZE*1] = tmp1 + tmp6;
165 wsptr[DCTSIZE*6] = tmp1 - tmp6;
166 wsptr[DCTSIZE*2] = tmp2 + tmp5;
167 wsptr[DCTSIZE*5] = tmp2 - tmp5;
168 wsptr[DCTSIZE*4] = tmp3 + tmp4;
169 wsptr[DCTSIZE*3] = tmp3 - tmp4;
180 for (ctr = 0; ctr <
DCTSIZE; ctr++) {
190 tmp10 = wsptr[0] + wsptr[4];
191 tmp11 = wsptr[0] - wsptr[4];
193 tmp13 = wsptr[2] + wsptr[6];
194 tmp12 = (wsptr[2] - wsptr[6]) * ((FAST_FLOAT) 1.414213562) - tmp13;
196 tmp0 = tmp10 + tmp13;
197 tmp3 = tmp10 - tmp13;
198 tmp1 = tmp11 + tmp12;
199 tmp2 = tmp11 - tmp12;
203 z13 = wsptr[5] + wsptr[3];
204 z10 = wsptr[5] - wsptr[3];
205 z11 = wsptr[1] + wsptr[7];
206 z12 = wsptr[1] - wsptr[7];
209 tmp11 = (z11 - z13) * ((FAST_FLOAT) 1.414213562);
211 z5 = (z10 + z12) * ((FAST_FLOAT) 1.847759065);
212 tmp10 = ((FAST_FLOAT) 1.082392200) * z12 - z5;
213 tmp12 = ((FAST_FLOAT) -2.613125930) * z10 + z5;
for(n=1;n< outline->n_points;n++)
#define IDCT_range_limit(cinfo)
jpeg_component_info JCOEFPTR coef_block
jpeg_component_info * compptr
jpeg_component_info JCOEFPTR JSAMPARRAY JDIMENSION output_col
FAST_FLOAT FLOAT_MULT_TYPE
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
jpeg_idct_float(j_decompress_ptr cinfo, jpeg_component_info *compptr, JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col)
#define DEQUANTIZE(coef, quantval)