fixed a bug in the computation of the mantissa (mu)

This commit is contained in:
Antonin Descampe 2006-10-31 17:11:15 +00:00
parent b565431251
commit 2d416a8017
2 changed files with 2 additions and 1 deletions

View File

@ -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

View 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]);
}