parent
959ebdab5e
commit
618e50954f
|
@ -340,12 +340,12 @@ static opj_bool pi_next_cprl(opj_pi_iterator_t * pi) {
|
||||||
pi->dx = 0;
|
pi->dx = 0;
|
||||||
pi->dy = 0;
|
pi->dy = 0;
|
||||||
for (resno = 0; resno < comp->numresolutions; resno++) {
|
for (resno = 0; resno < comp->numresolutions; resno++) {
|
||||||
int dx, dy;
|
int64 dx, dy;
|
||||||
res = &comp->resolutions[resno];
|
res = &comp->resolutions[resno];
|
||||||
dx = comp->dx * (1 << (res->pdx + comp->numresolutions - 1 - resno));
|
dx = comp->dx * (((int64) 1) << (res->pdx + comp->numresolutions - 1 - resno));
|
||||||
dy = comp->dy * (1 << (res->pdy + comp->numresolutions - 1 - resno));
|
dy = comp->dy * (((int64) 1) << (res->pdy + comp->numresolutions - 1 - resno));
|
||||||
pi->dx = !pi->dx ? dx : int_min(pi->dx, dx);
|
pi->dx = !pi->dx ? dx : pi->dx < dx ? pi->dx : dx;
|
||||||
pi->dy = !pi->dy ? dy : int_min(pi->dy, dy);
|
pi->dy = !pi->dy ? dy : pi->dy < dy ? pi->dy : dy;
|
||||||
}
|
}
|
||||||
if (!pi->tp_on){
|
if (!pi->tp_on){
|
||||||
pi->poc.ty0 = pi->ty0;
|
pi->poc.ty0 = pi->ty0;
|
||||||
|
|
|
@ -93,8 +93,8 @@ typedef struct opj_pi_iterator {
|
||||||
int numcomps;
|
int numcomps;
|
||||||
/** Components*/
|
/** Components*/
|
||||||
opj_pi_comp_t *comps;
|
opj_pi_comp_t *comps;
|
||||||
int tx0, ty0, tx1, ty1;
|
int tx0, ty0, tx1, ty1;
|
||||||
int x, y, dx, dy;
|
int64 x, y, dx, dy;
|
||||||
} opj_pi_iterator_t;
|
} opj_pi_iterator_t;
|
||||||
|
|
||||||
/** @name Exported functions */
|
/** @name Exported functions */
|
||||||
|
|
Loading…
Reference in New Issue