Searched refs:PASS1_BITS (Results 1 - 4 of 4) sorted by relevance
/openjdk7/jdk/src/share/native/sun/awt/image/jpeg/ |
H A D | jfdctint.c | 70 * The outputs of the first pass are scaled up by PASS1_BITS bits so that 72 * require BITS_IN_JSAMPLE + PASS1_BITS + 3 bits; this fits in a 16-bit word 77 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 83 #define PASS1_BITS 2 macro 86 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 155 /* furthermore, we scale the results by 2**PASS1_BITS. */ 177 dataptr[0] = (DCTELEM) ((tmp10 + tmp11) << PASS1_BITS); 178 dataptr[4] = (DCTELEM) ((tmp10 - tmp11) << PASS1_BITS); 182 CONST_BITS-PASS1_BITS); 184 CONST_BITS-PASS1_BITS); [all...] |
H A D | jidctint.c | 70 * The outputs of the first pass are scaled up by PASS1_BITS bits so that 72 * require BITS_IN_JSAMPLE + PASS1_BITS + 3 bits; this fits in a 16-bit word 77 * have BITS_IN_JSAMPLE + CONST_BITS + PASS1_BITS <= 26. Error analysis 83 #define PASS1_BITS 2 macro 86 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 170 /* furthermore, we scale the results by 2**PASS1_BITS. */ 190 int dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]) << PASS1_BITS; 262 wsptr[DCTSIZE*0] = (int) DESCALE(tmp10 + tmp3, CONST_BITS-PASS1_BITS); 263 wsptr[DCTSIZE*7] = (int) DESCALE(tmp10 - tmp3, CONST_BITS-PASS1_BITS); 264 wsptr[DCTSIZE*1] = (int) DESCALE(tmp11 + tmp2, CONST_BITS-PASS1_BITS); [all...] |
H A D | jidctred.c | 48 #define PASS1_BITS 2 macro 51 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 150 int dcval = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]) << PASS1_BITS; 192 wsptr[DCTSIZE*0] = (int) DESCALE(tmp10 + tmp2, CONST_BITS-PASS1_BITS+1); 193 wsptr[DCTSIZE*3] = (int) DESCALE(tmp10 - tmp2, CONST_BITS-PASS1_BITS+1); 194 wsptr[DCTSIZE*1] = (int) DESCALE(tmp12 + tmp0, CONST_BITS-PASS1_BITS+1); 195 wsptr[DCTSIZE*2] = (int) DESCALE(tmp12 - tmp0, CONST_BITS-PASS1_BITS+1); 209 JSAMPLE dcval = range_limit[(int) DESCALE((INT32) wsptr[0], PASS1_BITS+3) 252 CONST_BITS+PASS1_BITS+3+1) 255 CONST_BITS+PASS1_BITS [all...] |
H A D | jidctfst.c | 66 * factors have been incorporated. We represent them scaled up by PASS1_BITS, 68 * For 8-bit JSAMPLEs, we choose IFAST_SCALE_BITS = PASS1_BITS so as to 82 #define PASS1_BITS 2 macro 85 #define PASS1_BITS 1 /* lose a little precision to avoid overflow */ 136 DESCALE((coef)*(quantval), IFAST_SCALE_BITS-PASS1_BITS) 283 /* and also undo the PASS1_BITS scaling. */ 300 JSAMPLE dcval = range_limit[IDESCALE(wsptr[0], PASS1_BITS+3) 351 outptr[0] = range_limit[IDESCALE(tmp0 + tmp7, PASS1_BITS+3) 353 outptr[7] = range_limit[IDESCALE(tmp0 - tmp7, PASS1_BITS+3) 355 outptr[1] = range_limit[IDESCALE(tmp1 + tmp6, PASS1_BITS [all...] |
Completed in 32 milliseconds