Lines Matching refs:levelno

384                     OPJ_UINT32 levelno;  in opj_pi_next_rpcl()  local
394 levelno = comp->numresolutions - 1 - pi->resno; in opj_pi_next_rpcl()
398 if (levelno >= 32 || 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()
411 rpx = res->pdx + levelno; in opj_pi_next_rpcl()
412 rpy = res->pdy + levelno; in opj_pi_next_rpcl()
425 ((try0 << levelno) % (1 << rpy))))) { in opj_pi_next_rpcl()
429 ((trx0 << levelno) % (1 << rpx))))) { 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()
522 OPJ_UINT32 levelno; in opj_pi_next_pcrl() local
528 levelno = comp->numresolutions - 1 - pi->resno; in opj_pi_next_pcrl()
532 if (levelno >= 32 || 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()
545 rpx = res->pdx + levelno; in opj_pi_next_pcrl()
546 rpy = res->pdy + levelno; in opj_pi_next_pcrl()
559 ((try0 << levelno) % (1 << rpy))))) { in opj_pi_next_pcrl()
563 ((trx0 << levelno) % (1 << rpx))))) { 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()
654 OPJ_UINT32 levelno; in opj_pi_next_cprl() local
660 levelno = comp->numresolutions - 1 - pi->resno; in opj_pi_next_cprl()
663 if (levelno >= 32 || 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()
676 rpx = res->pdx + levelno; in opj_pi_next_cprl()
677 rpy = res->pdy + levelno; in opj_pi_next_cprl()
690 ((try0 << levelno) % (1 << rpy))))) { in opj_pi_next_cprl()
694 ((trx0 << levelno) % (1 << rpx))))) { 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()