73 #ifdef DCT_ISLOW_SUPPORTED 78 if (fdct->
divisors[qtblno] == NULL) {
85 dtbl[
i] = ((
DCTELEM) qtbl->quantval[
i]) << 3;
89 #ifdef DCT_IFAST_SUPPORTED 99 static const int16_t aanscales[
DCTSIZE2] = {
101 16384, 22725, 21407, 19266, 16384, 12873, 8867, 4520,
102 22725, 31521, 29692, 26722, 22725, 17855, 12299, 6270,
103 21407, 29692, 27969, 25172, 21407, 16819, 11585, 5906,
104 19266, 26722, 25172, 22654, 19266, 15137, 10426, 5315,
105 16384, 22725, 21407, 19266, 16384, 12873, 8867, 4520,
106 12873, 17855, 16819, 15137, 12873, 10114, 6967, 3552,
107 8867, 12299, 11585, 10426, 8867, 6967, 4799, 2446,
108 4520, 6270, 5906, 5315, 4520, 3552, 2446, 1247
112 if (fdct->
divisors[qtblno] == NULL) {
121 (int32_t) aanscales[
i]),
127 #ifdef DCT_FLOAT_SUPPORTED 140 static const double aanscalefactor[
DCTSIZE] = {
141 1.0, 1.387039845, 1.306562965, 1.175875602,
142 1.0, 0.785694958, 0.541196100, 0.275899379
148 DCTSIZE2 *
SIZEOF(FAST_FLOAT));
152 for (row = 0; row <
DCTSIZE; row++) {
153 for (col = 0; col <
DCTSIZE; col++) {
154 fdtbl[
i] = (FAST_FLOAT)
155 (1.0 / (((
double) qtbl->quantval[
i] *
156 aanscalefactor[row] * aanscalefactor[col] * 8.0)));
#define DESCALE(x, n)
Definition: jdct.h:146
#define NUM_QUANT_TBLS
Definition: jpeglib.h:48
my_fdct_controller * my_fdct_ptr
Definition: jcdctmgr.cpp:41
struct jpeg_forward_dct * fdct
Definition: jpeglib.h:407
int i
Definition: rw_test.cpp:37
JQUANT_TBL * quant_tbl_ptrs[4]
Definition: jpeglib.h:307
struct jpeg_common_struct * j_common_ptr
Definition: jpeglib.h:266
void *(* alloc_small)()
Definition: jpeglib.h:764
#define ERREXIT(cinfo, code)
Definition: jerror.h:205
#define SIZEOF(object)
Definition: jinclude.h:80
#define SHIFT_TEMPS
Definition: jpegint.h:289
Definition: jpeglib.h:224
jpeg_component_info * compptr
Definition: jdct.h:102
#define JPOOL_IMAGE
Definition: jpeglib.h:754
int quant_tbl_no
Definition: jpeglib.h:129
struct jpeg_memory_mgr * mem
Definition: jpeglib.h:274
#define DCTSIZE2
Definition: jpeglib.h:47
Definition: jcdctmgr.cpp:22
#define ERREXIT1(cinfo, code, p1)
Definition: jerror.h:208
float * float_divisors[4]
Definition: jcdctmgr.cpp:37
int32_t DCTELEM
Definition: jdct.h:32
Definition: jpeglib.h:121
Definition: jpeglib.h:225
DCTELEM * divisors[4]
Definition: jcdctmgr.cpp:32
J_DCT_METHOD dct_method
Definition: jpeglib.h:330
#define DCTSIZE
Definition: jpeglib.h:46
jpeg_component_info * comp_info
Definition: jpeglib.h:304
Definition: jpeglib.h:223
#define MULTIPLY16V16(var1, var2)
Definition: jdct.h:175