Home | History | Annotate | Download | only in libjpeg-turbo

Lines Matching refs:DCTSIZE

34  * This module is specialized to the case DCTSIZE = 8.
37 #if DCTSIZE != 8
132 int workspace[DCTSIZE*4]; /* buffers data between passes */
140 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) {
142 if (ctr == DCTSIZE-4)
144 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 &&
145 inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*5] == 0 &&
146 inptr[DCTSIZE*6] == 0 && inptr[DCTSIZE*7] == 0) {
148 int dcval = LEFT_SHIFT(DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]),
151 wsptr[DCTSIZE*0] = dcval;
152 wsptr[DCTSIZE*1] = dcval;
153 wsptr[DCTSIZE*2] = dcval;
154 wsptr[DCTSIZE*3] = dcval;
161 tmp0 = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]);
164 z2 = DEQUANTIZE(inptr[DCTSIZE*2], quantptr[DCTSIZE*2]);
165 z3 = DEQUANTIZE(inptr[DCTSIZE*6], quantptr[DCTSIZE*6]);
174 z1 = DEQUANTIZE(inptr[DCTSIZE*7], quantptr[DCTSIZE*7]);
175 z2 = DEQUANTIZE(inptr[DCTSIZE*5], quantptr[DCTSIZE*5]);
176 z3 = DEQUANTIZE(inptr[DCTSIZE*3], quantptr[DCTSIZE*3]);
177 z4 = DEQUANTIZE(inptr[DCTSIZE*1], quantptr[DCTSIZE*1]);
191 wsptr[DCTSIZE*0] = (int) DESCALE(tmp10 + tmp2, CONST_BITS-PASS1_BITS+1);
192 wsptr[DCTSIZE*3] = (int) DESCALE(tmp10 - tmp2, CONST_BITS-PASS1_BITS+1);
193 wsptr[DCTSIZE*1] = (int) DESCALE(tmp12 + tmp0, CONST_BITS-PASS1_BITS+1);
194 wsptr[DCTSIZE*2] = (int) DESCALE(tmp12 - tmp0, CONST_BITS-PASS1_BITS+1);
216 wsptr += DCTSIZE; /* advance pointer to next row */
263 wsptr += DCTSIZE; /* advance pointer to next row */
285 int workspace[DCTSIZE*2]; /* buffers data between passes */
293 for (ctr = DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) {
295 if (ctr == DCTSIZE-2 || ctr == DCTSIZE-4 || ctr == DCTSIZE-6)
297 if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*3] == 0 &&
298 inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*7] == 0) {
300 int dcval = LEFT_SHIFT(DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]),
303 wsptr[DCTSIZE*0] = dcval;
304 wsptr[DCTSIZE*1] = dcval;
311 z1 = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]);
316 z1 = DEQUANTIZE(inptr[DCTSIZE*7], quantptr[DCTSIZE*7]);
318 z1 = DEQUANTIZE(inptr[DCTSIZE*5], quantptr[DCTSIZE*5]);
320 z1 = DEQUANTIZE(inptr[DCTSIZE*3], quantptr[DCTSIZE*3]);
322 z1 = DEQUANTIZE(inptr[DCTSIZE*1], quantptr[DCTSIZE*1]);
327 wsptr[DCTSIZE*0] = (int) DESCALE(tmp10 + tmp0, CONST_BITS-PASS1_BITS+2);
328 wsptr[DCTSIZE*1] = (int) DESCALE(tmp10 - tmp0, CONST_BITS-PASS1_BITS+2);
347 wsptr += DCTSIZE; /* advance pointer to next row */
372 wsptr += DCTSIZE; /* advance pointer to next row */