summaryrefslogtreecommitdiff
path: root/jddctmgr.c
diff options
context:
space:
mode:
authorGuido Vollbeding <jpeg-info@uc.ag>2010-02-28 00:00:00 +0000
committerDRC <information@libjpeg-turbo.org>2015-07-27 13:46:36 -0500
commitf18f81b7e20cf993786a3348960ab2428762deee (patch)
tree5931744282be16ee791b0ec43b9289aeb00b17e2 /jddctmgr.c
parent989630f70cf1af69ebfefca8910d1647bf189712 (diff)
The Independent JPEG Group's JPEG software v8a
Diffstat (limited to 'jddctmgr.c')
-rw-r--r--jddctmgr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/jddctmgr.c b/jddctmgr.c
index bdbde34..0ded9d5 100644
--- a/jddctmgr.c
+++ b/jddctmgr.c
@@ -2,6 +2,7 @@
* jddctmgr.c
*
* Copyright (C) 1994-1996, Thomas G. Lane.
+ * Modified 2002-2010 by Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -324,6 +325,7 @@ start_pass (j_decompress_ptr cinfo)
* coefficients scaled by scalefactor[row]*scalefactor[col], where
* scalefactor[0] = 1
* scalefactor[k] = cos(k*PI/16) * sqrt(2) for k=1..7
+ * We apply a further scale factor of 1/8.
*/
FLOAT_MULT_TYPE * fmtbl = (FLOAT_MULT_TYPE *) compptr->dct_table;
int row, col;
@@ -337,7 +339,7 @@ start_pass (j_decompress_ptr cinfo)
for (col = 0; col < DCTSIZE; col++) {
fmtbl[i] = (FLOAT_MULT_TYPE)
((double) qtbl->quantval[i] *
- aanscalefactor[row] * aanscalefactor[col]);
+ aanscalefactor[row] * aanscalefactor[col] * 0.125);
i++;
}
}