Lines Matching refs:pi
1 diff --git a/third_party/libopenjpeg20/pi.c b/third_party/libopenjpeg20/pi.c
3 --- a/third_party/libopenjpeg20/pi.c
4 +++ b/third_party/libopenjpeg20/pi.c
5 @@ -445,6 +445,9 @@ static OPJ_BOOL opj_pi_next_rpcl(opj_pi_iterator_t * pi)
8 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
9 + if (pi->precno >= res->pw * res->ph) {
12 for (pi->layno = pi->poc.layno0; pi->layno < pi->poc.layno1; pi->layno++) {
13 index = pi->layno * pi->step_l + pi->resno * pi->step_r + pi->compno *
14 pi->step_c + pi->precno * pi->step_p;
15 @@ -576,6 +579,9 @@ static OPJ_BOOL opj_pi_next_pcrl(opj_pi_iterator_t * pi)
18 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
19 + if (pi->precno >= res->pw * res->ph) {
22 for (pi->layno = pi->poc.layno0; pi->layno < pi->poc.layno1; pi->layno++) {
23 index = pi->layno * pi->step_l + pi->resno * pi->step_r + pi->compno *
24 pi->step_c + pi->precno * pi->step_p;
25 @@ -704,6 +710,9 @@ static OPJ_BOOL opj_pi_next_cprl(opj_pi_iterator_t * pi)
28 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
29 + if (pi->precno >= res->pw * res->ph) {
32 for (pi->layno = pi->poc.layno0; pi->layno < pi->poc.layno1; pi->layno++) {
33 index = pi->layno * pi->step_l + pi->resno * pi->step_r + pi->compno *
34 pi->step_c + pi->precno * pi->step_p;