summaryrefslogtreecommitdiff
path: root/wrapping/java/openjp2/JavaOpenJPEGDecoder.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-20 18:00:45 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-20 20:31:28 +0200
commit3cd1305596f191a01afdc11f9355f9c6590065dd (patch)
tree5aa7c46c81d6122f38100df2f590bc915b5275a9 /wrapping/java/openjp2/JavaOpenJPEGDecoder.c
parentf38c069547f1c41dc94ec4a273efb07997685c21 (diff)
Irreversible compression/decompression DWT: use 1/K constant as per standard
The previous constant opj_c13318 was mysteriously equal to 2/K , and in the DWT, we had to divide K and opj_c13318 by 2... The issue was that the band->stepsize computation in tcd.c didn't take into account the log2gain of the band. The effect of this change is expected to be mostly equivalent to the previous situation, except some difference in rounding. But it leads to a dramatic reduction of the mean square error and peak error in the irreversible encoding of issue141.tif !
Diffstat (limited to 'wrapping/java/openjp2/JavaOpenJPEGDecoder.c')
0 files changed, 0 insertions, 0 deletions