fixed a bug in t1_getwmsedec (stepsize was divided by 8192)
This commit is contained in:
parent
237bb54678
commit
fe33ebe83c
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue