Home | History | Annotate | Download | only in jpeg

Lines Matching defs:PASS1_BITS

66  * The outputs of the first pass are scaled up by PASS1_BITS bits so that
68 * require BITS_IN_JSAMPLE + PASS1_BITS + 3 bits; this fits in a 16-bit word
73 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis
79 #define PASS1_BITS 2
82 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */
166 /* furthermore, we scale the results by 2**PASS1_BITS. */
186 int dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]) << PASS1_BITS;
258 wsptr[DCTSIZE*0] = (int) DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS);
259 wsptr[DCTSIZE*7] = (int) DESCALE(tmp10 - tmp3, CONST_BITS-PASS1_BITS);
260 wsptr[DCTSIZE*1] = (int) DESCALE(tmp11 + tmp2, CONST_BITS-PASS1_BITS);
261 wsptr[DCTSIZE*6] = (int) DESCALE(tmp11 - tmp2, CONST_BITS-PASS1_BITS);
262 wsptr[DCTSIZE*2] = (int) DESCALE(tmp12 + tmp1, CONST_BITS-PASS1_BITS);
263 wsptr[DCTSIZE*5] = (int) DESCALE(tmp12 - tmp1, CONST_BITS-PASS1_BITS);
264 wsptr[DCTSIZE*3] = (int) DESCALE(tmp13 + tmp0, CONST_BITS-PASS1_BITS);
265 wsptr[DCTSIZE*4] = (int) DESCALE(tmp13 - tmp0, CONST_BITS-PASS1_BITS);
274 /* and also undo the PASS1_BITS scaling. */
291 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3)
361 CONST_BITS+PASS1_BITS+3)
364 CONST_BITS+PASS1_BITS+3)
367 CONST_BITS+PASS1_BITS+3)
370 CONST_BITS+PASS1_BITS+3)
373 CONST_BITS+PASS1_BITS+3)
376 CONST_BITS+PASS1_BITS+3)
379 CONST_BITS+PASS1_BITS+3)
382 CONST_BITS+PASS1_BITS+3)