3 { Orignal: jdct.h; Copyright (C) 1994-1996, Thomas G. Lane. }
5 { This include file contains common declarations for the forward and
6 inverse DCT modules. These declarations are private to the DCT managers
7 (jcdctmgr.c, jddctmgr.c) and the individual DCT algorithms.
8 The individual DCT algorithms are kept in separate files to ease
9 machine-dependent tuning (e.g., assembly coding). }
11 interface
13 {$I imjconfig.inc}
15 uses
16 imjmorecfg;
19 { A forward DCT routine is given a pointer to a work area of type DCTELEM[];
20 the DCT is to be performed in-place in that buffer. Type DCTELEM is int
21 for 8-bit samples, INT32 for 12-bit samples. (NOTE: Floating-point DCT
22 implementations use an array of type FAST_FLOAT, instead.)
23 The DCT inputs are expected to be signed (range +-CENTERJSAMPLE).
24 The DCT outputs are returned scaled up by a factor of 8; they therefore
25 have a range of +-8K for 8-bit data, +-128K for 12-bit data. This
26 convention improves accuracy in integer implementations and saves some
27 work in floating-point ones.
28 Quantization of the output coefficients is done by jcdctmgr.c. }
31 {$ifdef BITS_IN_JSAMPLE_IS_8}
32 type
34 {$else}
37 {$endif}
38 type
44 type
49 { An inverse DCT routine is given a pointer to the input JBLOCK and a pointer
50 to an output sample array. The routine must dequantize the input data as
51 well as perform the IDCT; for dequantization, it uses the multiplier table
52 pointed to by compptr->dct_table. The output data is to be placed into the
53 sample array starting at a specified column. (Any row offset needed will
54 be applied to the array pointer before it is passed to the IDCT code.)
55 Note that the number of samples emitted by the IDCT routine is
56 DCT_scaled_size * DCT_scaled_size. }
59 { typedef inverse_DCT_method_ptr is declared in jpegint.h }
62 { Each IDCT routine has its own ideas about the best dct_table element type. }
65 type
68 {$ifdef BITS_IN_JSAMPLE_IS_8}
69 type
71 const
73 {$else}
74 type
76 const
78 {$endif}
79 type
82 const
85 type
101 type
107 implementation