diff options
author | Guido Vollbeding <jpeg-info@uc.ag> | 2010-02-28 00:00:00 +0000 |
---|---|---|
committer | DRC <information@libjpeg-turbo.org> | 2015-07-27 13:46:36 -0500 |
commit | f18f81b7e20cf993786a3348960ab2428762deee (patch) | |
tree | 5931744282be16ee791b0ec43b9289aeb00b17e2 /jddctmgr.c | |
parent | 989630f70cf1af69ebfefca8910d1647bf189712 (diff) |
The Independent JPEG Group's JPEG software v8a
Diffstat (limited to 'jddctmgr.c')
-rw-r--r-- | jddctmgr.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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++; } } |