fixed a bug in t1_getwmsedec (stepsize was divided by 8192)

This commit is contained in:
Antonin Descampe 2005-12-08 11:01:59 +00:00
parent 237bb54678
commit fe33ebe83c
2 changed files with 5 additions and 2 deletions

View File

@ -5,4 +5,7 @@ What's New for OpenJPEG
! : changed
+ : added
December 5, 2005 - 1.0.0
December 8, 2005 - 1.1.1
* [Antonin Descampe] fixed a bug in t1_getwmsedec (stepsize was divided by 8192)
December 5, 2005 - 1.1.0

View File

@ -511,7 +511,7 @@ static double t1_getwmsedec(int nmsedec, int compno, int level, int orient, int
w1 = (numcomps > 1) ? mct_getnorm_real(compno) : 1;
w2 = dwt_getnorm_real(level, orient);
}
wmsedec = w1 * w2 * (stepsize / 8192.0) * (1 << bpno);
wmsedec = w1 * w2 * stepsize * (1 << bpno);
wmsedec *= wmsedec * nmsedec / 8192.0;
return wmsedec;