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 */
151 /* furthermore, we scale the results by 2**PASS1_BITS. */
173 dataptr[0] = (DCTELEM) ((tmp10 + tmp11) << PASS1_BITS);
174 dataptr[4] = (DCTELEM) ((tmp10 - tmp11) << PASS1_BITS);
178 CONST_BITS-PASS1_BITS);
180 CONST_BITS-PASS1_BITS);
205 dataptr[7] = (DCTELEM) DESCALE(tmp4 + z1 + z3, CONST_BITS-PASS1_BITS);
206 dataptr[5] = (DCTELEM) DESCALE(tmp5 + z2 + z4, CONST_BITS-PASS1_BITS);
207 dataptr[3] = (DCTELEM) DESCALE(tmp6 + z2 + z3, CONST_BITS-PASS1_BITS);
208 dataptr[1] = (DCTELEM) DESCALE(tmp7 + z1 + z4, CONST_BITS-PASS1_BITS);
214 * We remove the PASS1_BITS scaling, but leave the results scaled up
238 dataptr[DCTSIZE*0] = (DCTELEM) DESCALE(tmp10 + tmp11, PASS1_BITS);
239 dataptr[DCTSIZE*4] = (DCTELEM) DESCALE(tmp10 - tmp11, PASS1_BITS);
243 CONST_BITS+PASS1_BITS);
245 CONST_BITS+PASS1_BITS);
271 CONST_BITS+PASS1_BITS);
273 CONST_BITS+PASS1_BITS);
275 CONST_BITS+PASS1_BITS);
277 CONST_BITS+PASS1_BITS);