Lines Matching refs:picomp
157 for (pi->compno = pchg->compnostart, pi->picomp = in jpc_pi_nextlrcp()
160 ++pi->picomp) { in jpc_pi_nextlrcp()
161 if (pi->rlvlno >= pi->picomp->numrlvls) { in jpc_pi_nextlrcp()
164 pi->pirlvl = &pi->picomp->pirlvls[pi->rlvlno]; in jpc_pi_nextlrcp()
201 for (pi->compno = pchg->compnostart, pi->picomp = in jpc_pi_nextrlcp()
203 pi->compno < JAS_CAST(int, pchg->compnoend); ++pi->compno, ++pi->picomp) { in jpc_pi_nextrlcp()
204 if (pi->rlvlno >= pi->picomp->numrlvls) { in jpc_pi_nextrlcp()
207 pi->pirlvl = &pi->picomp->pirlvls[pi->rlvlno]; in jpc_pi_nextrlcp()
233 jpc_picomp_t *picomp; in jpc_pi_nextrpcl() local
248 for (compno = 0, picomp = pi->picomps; compno < pi->numcomps; in jpc_pi_nextrpcl()
249 ++compno, ++picomp) { in jpc_pi_nextrpcl()
250 for (rlvlno = 0, pirlvl = picomp->pirlvls; rlvlno < in jpc_pi_nextrpcl()
251 picomp->numrlvls; ++rlvlno, ++pirlvl) { in jpc_pi_nextrpcl()
252 xstep = picomp->hsamp * (1 << (pirlvl->prcwidthexpn + in jpc_pi_nextrpcl()
253 picomp->numrlvls - rlvlno - 1)); in jpc_pi_nextrpcl()
254 ystep = picomp->vsamp * (1 << (pirlvl->prcheightexpn + in jpc_pi_nextrpcl()
255 picomp->numrlvls - rlvlno - 1)); in jpc_pi_nextrpcl()
270 pi->picomp = &pi->picomps[pi->compno]; in jpc_pi_nextrpcl()
272 pi->numcomps; ++pi->compno, ++pi->picomp) { in jpc_pi_nextrpcl()
273 if (pi->rlvlno >= pi->picomp->numrlvls) { in jpc_pi_nextrpcl()
276 pi->pirlvl = &pi->picomp->pirlvls[pi->rlvlno]; in jpc_pi_nextrpcl()
280 r = pi->picomp->numrlvls - 1 - pi->rlvlno; in jpc_pi_nextrpcl()
283 trx0 = JPC_CEILDIV(pi->xstart, pi->picomp->hsamp << r); in jpc_pi_nextrpcl()
284 try0 = JPC_CEILDIV(pi->ystart, pi->picomp->vsamp << r); in jpc_pi_nextrpcl()
289 prchind = JPC_FLOORDIVPOW2(JPC_CEILDIV(pi->x, pi->picomp->hsamp in jpc_pi_nextrpcl()
292 prcvind = JPC_FLOORDIVPOW2(JPC_CEILDIV(pi->y, pi->picomp->vsamp in jpc_pi_nextrpcl()
325 jpc_picomp_t *picomp; in jpc_pi_nextpcrl() local
340 for (compno = 0, picomp = pi->picomps; compno < pi->numcomps; in jpc_pi_nextpcrl()
341 ++compno, ++picomp) { in jpc_pi_nextpcrl()
342 for (rlvlno = 0, pirlvl = picomp->pirlvls; rlvlno < in jpc_pi_nextpcrl()
343 picomp->numrlvls; ++rlvlno, ++pirlvl) { in jpc_pi_nextpcrl()
344 xstep = picomp->hsamp * (1 << in jpc_pi_nextpcrl()
345 (pirlvl->prcwidthexpn + picomp->numrlvls - in jpc_pi_nextpcrl()
347 ystep = picomp->vsamp * (1 << in jpc_pi_nextpcrl()
348 (pirlvl->prcheightexpn + picomp->numrlvls - in jpc_pi_nextpcrl()
363 for (pi->compno = pchg->compnostart, pi->picomp = in jpc_pi_nextpcrl()
366 ++pi->picomp) { in jpc_pi_nextpcrl()
368 pi->pirlvl = &pi->picomp->pirlvls[pi->rlvlno]; in jpc_pi_nextpcrl()
369 pi->rlvlno < pi->picomp->numrlvls && in jpc_pi_nextpcrl()
375 r = pi->picomp->numrlvls - 1 - pi->rlvlno; in jpc_pi_nextpcrl()
376 trx0 = JPC_CEILDIV(pi->xstart, pi->picomp->hsamp << r); in jpc_pi_nextpcrl()
377 try0 = JPC_CEILDIV(pi->ystart, pi->picomp->vsamp << r); in jpc_pi_nextpcrl()
381 !(pi->x % (pi->picomp->hsamp << rpx))) && in jpc_pi_nextpcrl()
383 !(pi->y % (pi->picomp->vsamp << rpy)))) { in jpc_pi_nextpcrl()
384 prchind = JPC_FLOORDIVPOW2(JPC_CEILDIV(pi->x, pi->picomp->hsamp in jpc_pi_nextpcrl()
387 prcvind = JPC_FLOORDIVPOW2(JPC_CEILDIV(pi->y, pi->picomp->vsamp in jpc_pi_nextpcrl()
431 for (pi->compno = pchg->compnostart, pi->picomp = in jpc_pi_nextcprl()
433 ++pi->picomp) { in jpc_pi_nextcprl()
434 pirlvl = pi->picomp->pirlvls; in jpc_pi_nextcprl()
435 pi->xstep = pi->picomp->hsamp * (1 << (pirlvl->prcwidthexpn + in jpc_pi_nextcprl()
436 pi->picomp->numrlvls - 1)); in jpc_pi_nextcprl()
437 pi->ystep = pi->picomp->vsamp * (1 << (pirlvl->prcheightexpn + in jpc_pi_nextcprl()
438 pi->picomp->numrlvls - 1)); in jpc_pi_nextcprl()
439 for (rlvlno = 1, pirlvl = &pi->picomp->pirlvls[1]; in jpc_pi_nextcprl()
440 rlvlno < pi->picomp->numrlvls; ++rlvlno, ++pirlvl) { in jpc_pi_nextcprl()
441 pi->xstep = JAS_MIN(pi->xstep, pi->picomp->hsamp * (1 << in jpc_pi_nextcprl()
442 (pirlvl->prcwidthexpn + pi->picomp->numrlvls - in jpc_pi_nextcprl()
444 pi->ystep = JAS_MIN(pi->ystep, pi->picomp->vsamp * (1 << in jpc_pi_nextcprl()
445 (pirlvl->prcheightexpn + pi->picomp->numrlvls - in jpc_pi_nextcprl()
453 pi->pirlvl = &pi->picomp->pirlvls[pi->rlvlno]; in jpc_pi_nextcprl()
454 pi->rlvlno < pi->picomp->numrlvls && pi->rlvlno < in jpc_pi_nextcprl()
459 r = pi->picomp->numrlvls - 1 - pi->rlvlno; in jpc_pi_nextcprl()
460 trx0 = JPC_CEILDIV(pi->xstart, pi->picomp->hsamp << r); in jpc_pi_nextcprl()
461 try0 = JPC_CEILDIV(pi->ystart, pi->picomp->vsamp << r); in jpc_pi_nextcprl()
465 !(pi->x % (pi->picomp->hsamp << rpx))) && in jpc_pi_nextcprl()
467 !(pi->y % (pi->picomp->vsamp << rpy)))) { in jpc_pi_nextcprl()
468 prchind = JPC_FLOORDIVPOW2(JPC_CEILDIV(pi->x, pi->picomp->hsamp in jpc_pi_nextcprl()
471 prcvind = JPC_FLOORDIVPOW2(JPC_CEILDIV(pi->y, pi->picomp->vsamp in jpc_pi_nextcprl()
504 static void jpc_picomp_destroy(jpc_picomp_t *picomp) in jpc_picomp_destroy() argument
508 if (picomp->pirlvls) { in jpc_picomp_destroy()
509 for (rlvlno = 0, pirlvl = picomp->pirlvls; rlvlno < in jpc_picomp_destroy()
510 picomp->numrlvls; ++rlvlno, ++pirlvl) { in jpc_picomp_destroy()
513 jas_free(picomp->pirlvls); in jpc_picomp_destroy()
519 jpc_picomp_t *picomp; in jpc_pi_destroy() local
522 for (compno = 0, picomp = pi->picomps; compno < pi->numcomps; in jpc_pi_destroy()
523 ++compno, ++picomp) { in jpc_pi_destroy()
524 jpc_picomp_destroy(picomp); in jpc_pi_destroy()
663 jpc_picomp_t *picomp; in jpc_pi_init() local
673 for (compno = 0, picomp = pi->picomps; compno < pi->numcomps; in jpc_pi_init()
674 ++compno, ++picomp) { in jpc_pi_init()
675 for (rlvlno = 0, pirlvl = picomp->pirlvls; rlvlno < in jpc_pi_init()
676 picomp->numrlvls; ++rlvlno, ++pirlvl) { in jpc_pi_init()