[v2.0] Fixed pi.c bug (issue 15 on google code). Thanks to Anton Lionel for catching this.
This commit is contained in:
parent
a346da0599
commit
f9e6b81176
|
@ -6,6 +6,7 @@ What's New for OpenJPEG
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
April 8, 2010
|
April 8, 2010
|
||||||
|
* [FOD] Fixed pi.c bug (issue 15 on google code). Thanks to Anton Lionel for catching this.
|
||||||
* [FOD] Fixed MJ2 codec bugs (issues 23-24 on google code). Thanks to Winfried for these patches.
|
* [FOD] Fixed MJ2 codec bugs (issues 23-24 on google code). Thanks to Winfried for these patches.
|
||||||
|
|
||||||
March 26, 2010
|
March 26, 2010
|
||||||
|
|
|
@ -345,7 +345,7 @@ if (!pi->tp_on){
|
||||||
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
|
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
|
||||||
rpx = res->pdx + levelno;
|
rpx = res->pdx + levelno;
|
||||||
rpy = res->pdy + levelno;
|
rpy = res->pdy + levelno;
|
||||||
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpx))))){
|
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
|
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
|
||||||
|
@ -427,7 +427,7 @@ static bool pi_next_pcrl(opj_pi_iterator_t * pi) {
|
||||||
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
|
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
|
||||||
rpx = res->pdx + levelno;
|
rpx = res->pdx + levelno;
|
||||||
rpy = res->pdy + levelno;
|
rpy = res->pdy + levelno;
|
||||||
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpx))))){
|
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
|
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
|
||||||
|
@ -507,14 +507,14 @@ static bool pi_next_cprl(opj_pi_iterator_t * pi) {
|
||||||
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
|
try1 = int_ceildiv(pi->ty1, comp->dy << levelno);
|
||||||
rpx = res->pdx + levelno;
|
rpx = res->pdx + levelno;
|
||||||
rpy = res->pdy + levelno;
|
rpy = res->pdy + levelno;
|
||||||
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpx))))){
|
if (!((pi->y % (comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
|
if (!((pi->x % (comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((res->pw==0)||(res->pw==0)) continue;
|
if ((res->pw==0)||(res->ph==0)) continue;
|
||||||
|
|
||||||
if ((trx0==trx1)||(try0==try1)) continue;
|
if ((trx0==trx1)||(try0==try1)) continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue