10 #define JPEG_INTERNALS
15 #ifdef IDCT_SCALING_SUPPORTED
23 Sorry,
this code only copes with 8x8 DCTs.
29 #if BITS_IN_JSAMPLE == 8
45 #define FIX_0_211164243 ((INT32) 1730)
46 #define FIX_0_509795579 ((INT32) 4176)
47 #define FIX_0_601344887 ((INT32) 4926)
48 #define FIX_0_720959822 ((INT32) 5906)
49 #define FIX_0_765366865 ((INT32) 6270)
50 #define FIX_0_850430095 ((INT32) 6967)
51 #define FIX_0_899976223 ((INT32) 7373)
52 #define FIX_1_061594337 ((INT32) 8697)
53 #define FIX_1_272758580 ((INT32) 10426)
54 #define FIX_1_451774981 ((INT32) 11893)
55 #define FIX_1_847759065 ((INT32) 15137)
56 #define FIX_2_172734803 ((INT32) 17799)
57 #define FIX_2_562915447 ((INT32) 20995)
58 #define FIX_3_624509785 ((INT32) 29692)
60 #define FIX_0_211164243 FIX(0.211164243)
61 #define FIX_0_509795579 FIX(0.509795579)
62 #define FIX_0_601344887 FIX(0.601344887)
63 #define FIX_0_720959822 FIX(0.720959822)
64 #define FIX_0_765366865 FIX(0.765366865)
65 #define FIX_0_850430095 FIX(0.850430095)
66 #define FIX_0_899976223 FIX(0.899976223)
67 #define FIX_1_061594337 FIX(1.061594337)
68 #define FIX_1_272758580 FIX(1.272758580)
69 #define FIX_1_451774981 FIX(1.451774981)
70 #define FIX_1_847759065 FIX(1.847759065)
71 #define FIX_2_172734803 FIX(2.172734803)
72 #define FIX_2_562915447 FIX(2.562915447)
73 #define FIX_3_624509785 FIX(3.624509785)
84 #if BITS_IN_JSAMPLE == 8
85 #define MULTIPLY(var,const) MULTIPLY16C16(var,const)
87 #define MULTIPLY(var,const) ((var) * (const))
96 #define DEQUANTIZE(coef,quantval) (((ISLOW_MULT_TYPE) (coef)) * (quantval))
109 INT32 tmp0, tmp2, tmp10, tmp12;
110 INT32 z1, z2, z3, z4;
125 for (ctr =
DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) {
184 for (ctr = 0; ctr < 4; ctr++) {
188 #ifndef NO_ZERO_ROW_TEST
189 if (wsptr[1] == 0 && wsptr[2] == 0 && wsptr[3] == 0 &&
190 wsptr[5] == 0 && wsptr[6] == 0 && wsptr[7] == 0) {
217 z1 = (
INT32) wsptr[7];
218 z2 = (
INT32) wsptr[5];
219 z3 = (
INT32) wsptr[3];
220 z4 = (
INT32) wsptr[1];
234 outptr[0] = range_limit[(int)
DESCALE(tmp10 + tmp2,
237 outptr[3] = range_limit[(int)
DESCALE(tmp10 - tmp2,
240 outptr[1] = range_limit[(int)
DESCALE(tmp12 + tmp0,
243 outptr[2] = range_limit[(int)
DESCALE(tmp12 - tmp0,
262 INT32 tmp0, tmp10, z1;
277 for (ctr =
DCTSIZE; ctr > 0; inptr++, quantptr++, wsptr++, ctr--) {
317 for (ctr = 0; ctr < 2; ctr++) {
321 #ifndef NO_ZERO_ROW_TEST
322 if (wsptr[1] == 0 && wsptr[3] == 0 && wsptr[5] == 0 && wsptr[7] == 0) {
348 outptr[0] = range_limit[(int)
DESCALE(tmp10 + tmp0,
351 outptr[1] = range_limit[(int)
DESCALE(tmp10 - tmp0,
MULTIPLIER ISLOW_MULT_TYPE
jpeg_component_info JCOEFPTR coef_block
jpeg_component_info JCOEFPTR JSAMPARRAY JDIMENSION output_col
jpeg_component_info * compptr
#define IDCT_range_limit(cinfo)
#define DEQUANTIZE(coef, quantval)
jpeg_idct_2x2(j_decompress_ptr cinfo, jpeg_component_info *compptr, JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col)
jpeg_idct_4x4(j_decompress_ptr cinfo, jpeg_component_info *compptr, JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col)
#define MULTIPLY(var, const)
jpeg_idct_1x1(j_decompress_ptr cinfo, jpeg_component_info *compptr, JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col)