fixed a bug in the computation of the mantissa (mu)
authorAntonin Descampe <antonin@gmail.com>
Tue, 31 Oct 2006 17:11:15 +0000 (17:11 +0000)
committerAntonin Descampe <antonin@gmail.com>
Tue, 31 Oct 2006 17:11:15 +0000 (17:11 +0000)
ChangeLog
libopenjpeg/dwt.c

index 7cbd72cd657ac2b3521f55dc6c3cb50b3f59f389..75bbc593d2fbccdad83792e897d4c57537b6bd80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ What's New for OpenJPEG
 + : added
 
 October 31, 2006
+* [Antonin] fixed a bug in the computation of the mantissa (mu)
 + [Antonin] added the ability to specify the rate as "float" (before : integer)
 
 August 18, 2006
index 702bf6cfe95045a413d07dbddc9e5f64bfe954dc..88527d6769905db87fdc909d93fde92bbd71d5a2 100644 (file)
@@ -603,7 +603,7 @@ void dwt_calc_explicit_stepsizes(opj_tccp_t * tccp, int prec) {
                        stepsize = 1.0;
                } else {
                        double norm = dwt_norms_real[orient][level];
-                       stepsize = (1 << (gain + 1)) / norm;
+                       stepsize = (1 << (gain)) / norm;
                }
                dwt_encode_stepsize((int) floor(stepsize * 8192.0), prec + gain, &tccp->stepsizes[bandno]);
        }