35#if BITS_IN_JSAMPLE == 8
41typedef JMETHOD(
void, forward_DCT_method_ptr, (DCTELEM * data,
42 JSAMPARRAY sample_data,
43 JDIMENSION start_col));
44typedef JMETHOD(
void, float_DCT_method_ptr, (FAST_FLOAT * data,
45 JSAMPARRAY sample_data,
46 JDIMENSION start_col));
66typedef MULTIPLIER ISLOW_MULT_TYPE;
67#if BITS_IN_JSAMPLE == 8
68typedef MULTIPLIER IFAST_MULT_TYPE;
69#define IFAST_SCALE_BITS 2
71typedef INT32 IFAST_MULT_TYPE;
72#define IFAST_SCALE_BITS 13
74typedef FAST_FLOAT FLOAT_MULT_TYPE;
87#define RANGE_MASK (RANGE_CENTER * 2 - 1)
88#define RANGE_SUBSET (RANGE_CENTER - CENTERJSAMPLE)
90#define IDCT_range_limit(cinfo) ((cinfo)->sample_range_limit - RANGE_SUBSET)
95#ifdef NEED_SHORT_EXTERNAL_NAMES
96#define jpeg_fdct_islow jFDislow
97#define jpeg_fdct_ifast jFDifast
98#define jpeg_fdct_float jFDfloat
99#define jpeg_fdct_7x7 jFD7x7
100#define jpeg_fdct_6x6 jFD6x6
101#define jpeg_fdct_5x5 jFD5x5
102#define jpeg_fdct_4x4 jFD4x4
103#define jpeg_fdct_3x3 jFD3x3
104#define jpeg_fdct_2x2 jFD2x2
105#define jpeg_fdct_1x1 jFD1x1
106#define jpeg_fdct_9x9 jFD9x9
107#define jpeg_fdct_10x10 jFD10x10
108#define jpeg_fdct_11x11 jFD11x11
109#define jpeg_fdct_12x12 jFD12x12
110#define jpeg_fdct_13x13 jFD13x13
111#define jpeg_fdct_14x14 jFD14x14
112#define jpeg_fdct_15x15 jFD15x15
113#define jpeg_fdct_16x16 jFD16x16
114#define jpeg_fdct_16x8 jFD16x8
115#define jpeg_fdct_14x7 jFD14x7
116#define jpeg_fdct_12x6 jFD12x6
117#define jpeg_fdct_10x5 jFD10x5
118#define jpeg_fdct_8x4 jFD8x4
119#define jpeg_fdct_6x3 jFD6x3
120#define jpeg_fdct_4x2 jFD4x2
121#define jpeg_fdct_2x1 jFD2x1
122#define jpeg_fdct_8x16 jFD8x16
123#define jpeg_fdct_7x14 jFD7x14
124#define jpeg_fdct_6x12 jFD6x12
125#define jpeg_fdct_5x10 jFD5x10
126#define jpeg_fdct_4x8 jFD4x8
127#define jpeg_fdct_3x6 jFD3x6
128#define jpeg_fdct_2x4 jFD2x4
129#define jpeg_fdct_1x2 jFD1x2
130#define jpeg_idct_islow jRDislow
131#define jpeg_idct_ifast jRDifast
132#define jpeg_idct_float jRDfloat
133#define jpeg_idct_7x7 jRD7x7
134#define jpeg_idct_6x6 jRD6x6
135#define jpeg_idct_5x5 jRD5x5
136#define jpeg_idct_4x4 jRD4x4
137#define jpeg_idct_3x3 jRD3x3
138#define jpeg_idct_2x2 jRD2x2
139#define jpeg_idct_1x1 jRD1x1
140#define jpeg_idct_9x9 jRD9x9
141#define jpeg_idct_10x10 jRD10x10
142#define jpeg_idct_11x11 jRD11x11
143#define jpeg_idct_12x12 jRD12x12
144#define jpeg_idct_13x13 jRD13x13
145#define jpeg_idct_14x14 jRD14x14
146#define jpeg_idct_15x15 jRD15x15
147#define jpeg_idct_16x16 jRD16x16
148#define jpeg_idct_16x8 jRD16x8
149#define jpeg_idct_14x7 jRD14x7
150#define jpeg_idct_12x6 jRD12x6
151#define jpeg_idct_10x5 jRD10x5
152#define jpeg_idct_8x4 jRD8x4
153#define jpeg_idct_6x3 jRD6x3
154#define jpeg_idct_4x2 jRD4x2
155#define jpeg_idct_2x1 jRD2x1
156#define jpeg_idct_8x16 jRD8x16
157#define jpeg_idct_7x14 jRD7x14
158#define jpeg_idct_6x12 jRD6x12
159#define jpeg_idct_5x10 jRD5x10
160#define jpeg_idct_4x8 jRD4x8
161#define jpeg_idct_3x6 jRD3x8
162#define jpeg_idct_2x4 jRD2x4
163#define jpeg_idct_1x2 jRD1x2
168EXTERN(
void) jpeg_fdct_islow
169 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
170EXTERN(
void) jpeg_fdct_ifast
171 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
172EXTERN(
void) jpeg_fdct_float
173 JPP((FAST_FLOAT * data, JSAMPARRAY sample_data, JDIMENSION start_col));
174EXTERN(
void) jpeg_fdct_7x7
175 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
176EXTERN(
void) jpeg_fdct_6x6
177 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
178EXTERN(
void) jpeg_fdct_5x5
179 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
180EXTERN(
void) jpeg_fdct_4x4
181 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
182EXTERN(
void) jpeg_fdct_3x3
183 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
184EXTERN(
void) jpeg_fdct_2x2
185 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
186EXTERN(
void) jpeg_fdct_1x1
187 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
188EXTERN(
void) jpeg_fdct_9x9
189 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
190EXTERN(
void) jpeg_fdct_10x10
191 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
192EXTERN(
void) jpeg_fdct_11x11
193 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
194EXTERN(
void) jpeg_fdct_12x12
195 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
196EXTERN(
void) jpeg_fdct_13x13
197 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
198EXTERN(
void) jpeg_fdct_14x14
199 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
200EXTERN(
void) jpeg_fdct_15x15
201 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
202EXTERN(
void) jpeg_fdct_16x16
203 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
204EXTERN(
void) jpeg_fdct_16x8
205 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
206EXTERN(
void) jpeg_fdct_14x7
207 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
208EXTERN(
void) jpeg_fdct_12x6
209 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
210EXTERN(
void) jpeg_fdct_10x5
211 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
212EXTERN(
void) jpeg_fdct_8x4
213 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
214EXTERN(
void) jpeg_fdct_6x3
215 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
216EXTERN(
void) jpeg_fdct_4x2
217 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
218EXTERN(
void) jpeg_fdct_2x1
219 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
220EXTERN(
void) jpeg_fdct_8x16
221 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
222EXTERN(
void) jpeg_fdct_7x14
223 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
224EXTERN(
void) jpeg_fdct_6x12
225 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
226EXTERN(
void) jpeg_fdct_5x10
227 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
228EXTERN(
void) jpeg_fdct_4x8
229 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
230EXTERN(
void) jpeg_fdct_3x6
231 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
232EXTERN(
void) jpeg_fdct_2x4
233 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
234EXTERN(
void) jpeg_fdct_1x2
235 JPP((DCTELEM * data, JSAMPARRAY sample_data, JDIMENSION start_col));
237EXTERN(
void) jpeg_idct_islow
239 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
240EXTERN(
void) jpeg_idct_ifast
242 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
243EXTERN(
void) jpeg_idct_float
245 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
246EXTERN(
void) jpeg_idct_7x7
248 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
249EXTERN(
void) jpeg_idct_6x6
251 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
252EXTERN(
void) jpeg_idct_5x5
254 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
255EXTERN(
void) jpeg_idct_4x4
257 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
258EXTERN(
void) jpeg_idct_3x3
260 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
261EXTERN(
void) jpeg_idct_2x2
263 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
264EXTERN(
void) jpeg_idct_1x1
266 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
267EXTERN(
void) jpeg_idct_9x9
269 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
270EXTERN(
void) jpeg_idct_10x10
272 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
273EXTERN(
void) jpeg_idct_11x11
275 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
276EXTERN(
void) jpeg_idct_12x12
278 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
279EXTERN(
void) jpeg_idct_13x13
281 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
282EXTERN(
void) jpeg_idct_14x14
284 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
285EXTERN(
void) jpeg_idct_15x15
287 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
288EXTERN(
void) jpeg_idct_16x16
290 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
291EXTERN(
void) jpeg_idct_16x8
293 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
294EXTERN(
void) jpeg_idct_14x7
296 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
297EXTERN(
void) jpeg_idct_12x6
299 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
300EXTERN(
void) jpeg_idct_10x5
302 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
303EXTERN(
void) jpeg_idct_8x4
305 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
306EXTERN(
void) jpeg_idct_6x3
308 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
309EXTERN(
void) jpeg_idct_4x2
311 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
312EXTERN(
void) jpeg_idct_2x1
314 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
315EXTERN(
void) jpeg_idct_8x16
317 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
318EXTERN(
void) jpeg_idct_7x14
320 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
321EXTERN(
void) jpeg_idct_6x12
323 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
324EXTERN(
void) jpeg_idct_5x10
326 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
327EXTERN(
void) jpeg_idct_4x8
329 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
330EXTERN(
void) jpeg_idct_3x6
332 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
333EXTERN(
void) jpeg_idct_2x4
335 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
336EXTERN(
void) jpeg_idct_1x2
338 JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col));
351#define ONE ((INT32) 1)
352#define CONST_SCALE (ONE << CONST_BITS)
359#define FIX(x) ((INT32) ((x) * CONST_SCALE + 0.5))
371#define MULTIPLY16C16(var,const) (((INT16) (var)) * ((INT16) (const)))
373#ifdef SHORTxLCONST_32
374#define MULTIPLY16C16(var,const) (((INT16) (var)) * ((INT32) (const)))
378#define MULTIPLY16C16(var,const) ((var) * (const))
384#define MULTIPLY16V16(var1,var2) (((INT16) (var1)) * ((INT16) (var2)))
388#define MULTIPLY16V16(var1,var2) ((var1) * (var2))
395#ifdef RIGHT_SHIFT_IS_UNSIGNED
396#define ISHIFT_TEMPS DCTELEM ishift_temp;
397#if BITS_IN_JSAMPLE == 8
398#define DCTELEMBITS 16
400#define DCTELEMBITS 32
402#define IRIGHT_SHIFT(x,shft) \
403 ((ishift_temp = (x)) < 0 ? \
404 (ishift_temp >> (shft)) | ((~((DCTELEM) 0)) << (DCTELEMBITS-(shft))) : \
405 (ishift_temp >> (shft)))
408#define IRIGHT_SHIFT(x,shft) ((x) >> (shft))
Definition: jpeglib.h:145
Definition: jpeglib.h:480