Lines Matching refs:comp

241     opj_pi_comp_t *comp = NULL;  in opj_pi_next_lrcp()  local
246 comp = &pi->comps[pi->compno]; in opj_pi_next_lrcp()
247 res = &comp->resolutions[pi->resno]; in opj_pi_next_lrcp()
257 comp = &pi->comps[pi->compno]; in opj_pi_next_lrcp()
258 if (pi->resno >= comp->numresolutions) { in opj_pi_next_lrcp()
261 res = &comp->resolutions[pi->resno]; in opj_pi_next_lrcp()
294 opj_pi_comp_t *comp = NULL; in opj_pi_next_rlcp() local
299 comp = &pi->comps[pi->compno]; in opj_pi_next_rlcp()
300 res = &comp->resolutions[pi->resno]; in opj_pi_next_rlcp()
309 comp = &pi->comps[pi->compno]; in opj_pi_next_rlcp()
310 if (pi->resno >= comp->numresolutions) { in opj_pi_next_rlcp()
313 res = &comp->resolutions[pi->resno]; in opj_pi_next_rlcp()
340 opj_pi_comp_t *comp = NULL; in opj_pi_next_rpcl() local
352 comp = &pi->comps[compno]; in opj_pi_next_rpcl()
353 for (resno = 0; resno < comp->numresolutions; resno++) { in opj_pi_next_rpcl()
355 res = &comp->resolutions[resno]; in opj_pi_next_rpcl()
356 if (res->pdx + comp->numresolutions - 1 - resno < 32 && in opj_pi_next_rpcl()
357comp->dx <= UINT_MAX / (1u << (res->pdx + comp->numresolutions - 1 - resno))) { in opj_pi_next_rpcl()
358 dx = comp->dx * (1u << (res->pdx + comp->numresolutions - 1 - resno)); in opj_pi_next_rpcl()
361 if (res->pdy + comp->numresolutions - 1 - resno < 32 && in opj_pi_next_rpcl()
362comp->dy <= UINT_MAX / (1u << (res->pdy + comp->numresolutions - 1 - resno))) { in opj_pi_next_rpcl()
363 dy = comp->dy * (1u << (res->pdy + comp->numresolutions - 1 - resno)); in opj_pi_next_rpcl()
389 comp = &pi->comps[pi->compno]; in opj_pi_next_rpcl()
390 if (pi->resno >= comp->numresolutions) { in opj_pi_next_rpcl()
393 res = &comp->resolutions[pi->resno]; in opj_pi_next_rpcl()
394 levelno = comp->numresolutions - 1 - pi->resno; in opj_pi_next_rpcl()
399 ((comp->dx << levelno) >> levelno) != comp->dx || in opj_pi_next_rpcl()
400 ((comp->dy << levelno) >> levelno) != comp->dy) { in opj_pi_next_rpcl()
403 if ((comp->dx << levelno) > INT_MAX || in opj_pi_next_rpcl()
404 (comp->dy << levelno) > INT_MAX) { in opj_pi_next_rpcl()
407 trx0 = opj_int_ceildiv(pi->tx0, (OPJ_INT32)(comp->dx << levelno)); in opj_pi_next_rpcl()
408 try0 = opj_int_ceildiv(pi->ty0, (OPJ_INT32)(comp->dy << levelno)); in opj_pi_next_rpcl()
409 trx1 = opj_int_ceildiv(pi->tx1, (OPJ_INT32)(comp->dx << levelno)); in opj_pi_next_rpcl()
410 try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno)); in opj_pi_next_rpcl()
418 if (rpx >= 31 || ((comp->dx << rpx) >> rpx) != comp->dx || in opj_pi_next_rpcl()
419 rpy >= 31 || ((comp->dy << rpy) >> rpy) != comp->dy) { in opj_pi_next_rpcl()
424 if (!((pi->y % (OPJ_INT32)(comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && in opj_pi_next_rpcl()
428 if (!((pi->x % (OPJ_INT32)(comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && in opj_pi_next_rpcl()
442 … (OPJ_INT32)(comp->dx << levelno)), (OPJ_INT32)res->pdx) in opj_pi_next_rpcl()
445 … (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy) in opj_pi_next_rpcl()
475 opj_pi_comp_t *comp = NULL; in opj_pi_next_pcrl() local
480 comp = &pi->comps[pi->compno]; in opj_pi_next_pcrl()
488 comp = &pi->comps[compno]; in opj_pi_next_pcrl()
489 for (resno = 0; resno < comp->numresolutions; resno++) { in opj_pi_next_pcrl()
491 res = &comp->resolutions[resno]; in opj_pi_next_pcrl()
492 if (res->pdx + comp->numresolutions - 1 - resno < 32 && in opj_pi_next_pcrl()
493comp->dx <= UINT_MAX / (1u << (res->pdx + comp->numresolutions - 1 - resno))) { in opj_pi_next_pcrl()
494 dx = comp->dx * (1u << (res->pdx + comp->numresolutions - 1 - resno)); in opj_pi_next_pcrl()
497 if (res->pdy + comp->numresolutions - 1 - resno < 32 && in opj_pi_next_pcrl()
498comp->dy <= UINT_MAX / (1u << (res->pdy + comp->numresolutions - 1 - resno))) { in opj_pi_next_pcrl()
499 dy = comp->dy * (1u << (res->pdy + comp->numresolutions - 1 - resno)); in opj_pi_next_pcrl()
519 comp = &pi->comps[pi->compno]; in opj_pi_next_pcrl()
521 … pi->resno < opj_uint_min(pi->poc.resno1, comp->numresolutions); pi->resno++) { in opj_pi_next_pcrl()
527 res = &comp->resolutions[pi->resno]; in opj_pi_next_pcrl()
528 levelno = comp->numresolutions - 1 - pi->resno; in opj_pi_next_pcrl()
533 ((comp->dx << levelno) >> levelno) != comp->dx || in opj_pi_next_pcrl()
534 ((comp->dy << levelno) >> levelno) != comp->dy) { in opj_pi_next_pcrl()
537 if ((comp->dx << levelno) > INT_MAX || in opj_pi_next_pcrl()
538 (comp->dy << levelno) > INT_MAX) { in opj_pi_next_pcrl()
541 trx0 = opj_int_ceildiv(pi->tx0, (OPJ_INT32)(comp->dx << levelno)); in opj_pi_next_pcrl()
542 try0 = opj_int_ceildiv(pi->ty0, (OPJ_INT32)(comp->dy << levelno)); in opj_pi_next_pcrl()
543 trx1 = opj_int_ceildiv(pi->tx1, (OPJ_INT32)(comp->dx << levelno)); in opj_pi_next_pcrl()
544 try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno)); in opj_pi_next_pcrl()
552 if (rpx >= 31 || ((comp->dx << rpx) >> rpx) != comp->dx || in opj_pi_next_pcrl()
553 rpy >= 31 || ((comp->dy << rpy) >> rpy) != comp->dy) { in opj_pi_next_pcrl()
558 if (!((pi->y % (OPJ_INT32)(comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && in opj_pi_next_pcrl()
562 if (!((pi->x % (OPJ_INT32)(comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && in opj_pi_next_pcrl()
576 … (OPJ_INT32)(comp->dx << levelno)), (OPJ_INT32)res->pdx) in opj_pi_next_pcrl()
579 … (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy) in opj_pi_next_pcrl()
609 opj_pi_comp_t *comp = NULL; in opj_pi_next_cprl() local
614 comp = &pi->comps[pi->compno]; in opj_pi_next_cprl()
622 comp = &pi->comps[pi->compno]; in opj_pi_next_cprl()
625 for (resno = 0; resno < comp->numresolutions; resno++) { in opj_pi_next_cprl()
627 res = &comp->resolutions[resno]; in opj_pi_next_cprl()
628 if (res->pdx + comp->numresolutions - 1 - resno < 32 && in opj_pi_next_cprl()
629 comp->dx <= UINT_MAX / (1u << (res->pdx + comp->numresolutions - 1 - resno))) { in opj_pi_next_cprl()
630 dx = comp->dx * (1u << (res->pdx + comp->numresolutions - 1 - resno)); in opj_pi_next_cprl()
633 if (res->pdy + comp->numresolutions - 1 - resno < 32 && in opj_pi_next_cprl()
634 comp->dy <= UINT_MAX / (1u << (res->pdy + comp->numresolutions - 1 - resno))) { in opj_pi_next_cprl()
635 dy = comp->dy * (1u << (res->pdy + comp->numresolutions - 1 - resno)); in opj_pi_next_cprl()
653 … pi->resno < opj_uint_min(pi->poc.resno1, comp->numresolutions); pi->resno++) { in opj_pi_next_cprl()
659 res = &comp->resolutions[pi->resno]; in opj_pi_next_cprl()
660 levelno = comp->numresolutions - 1 - pi->resno; in opj_pi_next_cprl()
664 ((comp->dx << levelno) >> levelno) != comp->dx || in opj_pi_next_cprl()
665 ((comp->dy << levelno) >> levelno) != comp->dy) { in opj_pi_next_cprl()
668 if ((comp->dx << levelno) > INT_MAX || in opj_pi_next_cprl()
669 (comp->dy << levelno) > INT_MAX) { in opj_pi_next_cprl()
672 trx0 = opj_int_ceildiv(pi->tx0, (OPJ_INT32)(comp->dx << levelno)); in opj_pi_next_cprl()
673 try0 = opj_int_ceildiv(pi->ty0, (OPJ_INT32)(comp->dy << levelno)); in opj_pi_next_cprl()
674 trx1 = opj_int_ceildiv(pi->tx1, (OPJ_INT32)(comp->dx << levelno)); in opj_pi_next_cprl()
675 try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno)); in opj_pi_next_cprl()
683 if (rpx >= 31 || ((comp->dx << rpx) >> rpx) != comp->dx || in opj_pi_next_cprl()
684 rpy >= 31 || ((comp->dy << rpy) >> rpy) != comp->dy) { in opj_pi_next_cprl()
689 if (!((pi->y % (OPJ_INT32)(comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && in opj_pi_next_cprl()
693 if (!((pi->x % (OPJ_INT32)(comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && in opj_pi_next_cprl()
707 … (OPJ_INT32)(comp->dx << levelno)), (OPJ_INT32)res->pdx) in opj_pi_next_cprl()
710 … (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy) in opj_pi_next_cprl()
1034 opj_pi_comp_t *comp = &l_current_pi->comps[compno]; in opj_pi_create() local
1038 comp->resolutions = (opj_pi_resolution_t*) opj_calloc(tccp->numresolutions, in opj_pi_create()
1040 if (!comp->resolutions) { in opj_pi_create()
1045 comp->numresolutions = tccp->numresolutions; in opj_pi_create()