Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching refs:OPJ_INT32

95                                                  OPJ_INT32 p_tx0,
96 OPJ_INT32 p_tx1,
97 OPJ_INT32 p_ty0,
98 OPJ_INT32 p_ty1,
122 OPJ_INT32 p_tx0,
123 OPJ_INT32 p_tx1,
124 OPJ_INT32 p_ty0,
125 OPJ_INT32 p_ty1,
148 OPJ_INT32 * p_tx0,
149 OPJ_INT32 * p_tx1,
150 OPJ_INT32 * p_ty0,
151 OPJ_INT32 * p_ty1,
180 OPJ_INT32 * p_tx0,
181 OPJ_INT32 * p_tx1,
182 OPJ_INT32 * p_ty0,
183 OPJ_INT32 * p_ty1,
218 static OPJ_BOOL opj_pi_check_next_level( OPJ_INT32 pos,
344 for (pi->y = pi->poc.ty0; pi->y < pi->poc.ty1; pi->y += (OPJ_INT32)(pi->dy - (OPJ_UINT32)(pi->y % (OPJ_INT32)pi->dy))) {
345 for (pi->x = pi->poc.tx0; pi->x < pi->poc.tx1; pi->x += (OPJ_INT32)(pi->dx - (OPJ_UINT32)(pi->x % (OPJ_INT32)pi->dx))) {
348 OPJ_INT32 trx0, try0;
349 OPJ_INT32 trx1, try1;
351 OPJ_INT32 prci, prcj;
358 trx0 = opj_int_ceildiv(pi->tx0, (OPJ_INT32)(comp->dx << levelno));
359 try0 = opj_int_ceildiv(pi->ty0, (OPJ_INT32)(comp->dy << levelno));
360 trx1 = opj_int_ceildiv(pi->tx1, (OPJ_INT32)(comp->dx << levelno));
361 try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno));
364 if (!((pi->y % (OPJ_INT32)(comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
367 if (!((pi->x % (OPJ_INT32)(comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
375 prci = opj_int_floordivpow2(opj_int_ceildiv(pi->x, (OPJ_INT32)(comp->dx << levelno)), (OPJ_INT32)res->pdx)
376 - opj_int_floordivpow2(trx0, (OPJ_INT32)res->pdx);
377 prcj = opj_int_floordivpow2(opj_int_ceildiv(pi->y, (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy)
378 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy);
379 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
430 for (pi->y = pi->poc.ty0; pi->y < pi->poc.ty1; pi->y += (OPJ_INT32)(pi->dy - (OPJ_UINT32)(pi->y % (OPJ_INT32)pi->dy))) {
431 for (pi->x = pi->poc.tx0; pi->x < pi->poc.tx1; pi->x += (OPJ_INT32)(pi->dx - (OPJ_UINT32)(pi->x % (OPJ_INT32)pi->dx))) {
436 OPJ_INT32 trx0, try0;
437 OPJ_INT32 trx1, try1;
439 OPJ_INT32 prci, prcj;
442 trx0 = opj_int_ceildiv(pi->tx0, (OPJ_INT32)(comp->dx << levelno));
443 try0 = opj_int_ceildiv(pi->ty0, (OPJ_INT32)(comp->dy << levelno));
444 trx1 = opj_int_ceildiv(pi->tx1, (OPJ_INT32)(comp->dx << levelno));
445 try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno));
448 if (!((pi->y % (OPJ_INT32)(comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
451 if (!((pi->x % (OPJ_INT32)(comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
459 prci = opj_int_floordivpow2(opj_int_ceildiv(pi->x, (OPJ_INT32)(comp->dx << levelno)), (OPJ_INT32)res->pdx)
460 - opj_int_floordivpow2(trx0, (OPJ_INT32)res->pdx);
461 prcj = opj_int_floordivpow2(opj_int_ceildiv(pi->y, (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy)
462 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy);
463 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
514 for (pi->y = pi->poc.ty0; pi->y < pi->poc.ty1; pi->y += (OPJ_INT32)(pi->dy - (OPJ_UINT32)(pi->y % (OPJ_INT32)pi->dy))) {
515 for (pi->x = pi->poc.tx0; pi->x < pi->poc.tx1; pi->x += (OPJ_INT32)(pi->dx - (OPJ_UINT32)(pi->x % (OPJ_INT32)pi->dx))) {
518 OPJ_INT32 trx0, try0;
519 OPJ_INT32 trx1, try1;
521 OPJ_INT32 prci, prcj;
524 trx0 = opj_int_ceildiv(pi->tx0, (OPJ_INT32)(comp->dx << levelno));
525 try0 = opj_int_ceildiv(pi->ty0, (OPJ_INT32)(comp->dy << levelno));
526 trx1 = opj_int_ceildiv(pi->tx1, (OPJ_INT32)(comp->dx << levelno));
527 try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno));
530 if (!((pi->y % (OPJ_INT32)(comp->dy << rpy) == 0) || ((pi->y == pi->ty0) && ((try0 << levelno) % (1 << rpy))))){
533 if (!((pi->x % (OPJ_INT32)(comp->dx << rpx) == 0) || ((pi->x == pi->tx0) && ((trx0 << levelno) % (1 << rpx))))){
541 prci = opj_int_floordivpow2(opj_int_ceildiv(pi->x, (OPJ_INT32)(comp->dx << levelno)), (OPJ_INT32)res->pdx)
542 - opj_int_floordivpow2(trx0, (OPJ_INT32)res->pdx);
543 prcj = opj_int_floordivpow2(opj_int_ceildiv(pi->y, (OPJ_INT32)(comp->dy << levelno)), (OPJ_INT32)res->pdy)
544 - opj_int_floordivpow2(try0, (OPJ_INT32)res->pdy);
545 pi->precno = (OPJ_UINT32)(prci + prcj * (OPJ_INT32)res->pw);
568 OPJ_INT32 * p_tx0,
569 OPJ_INT32 * p_tx1,
570 OPJ_INT32 * p_ty0,
571 OPJ_INT32 * p_ty1,
602 *p_tx0 = opj_int_max((OPJ_INT32)(p_cp->tx0 + p * p_cp->tdx), (OPJ_INT32)p_image->x0);
603 *p_tx1 = opj_int_min((OPJ_INT32)(p_cp->tx0 + (p + 1) * p_cp->tdx), (OPJ_INT32)p_image->x1);
604 *p_ty0 = opj_int_max((OPJ_INT32)(p_cp->ty0 + q * p_cp->tdy), (OPJ_INT32)p_image->y0);
605 *p_ty1 = opj_int_min((OPJ_INT32)(p_cp->ty0 + (q + 1) * p_cp->tdy), (OPJ_INT32)p_image->y1);
618 OPJ_INT32 l_rx0, l_ry0, l_rx1, l_ry1;
619 OPJ_INT32 l_px0, l_py0, l_px1, py1;
623 OPJ_INT32 l_tcx0, l_tcy0, l_tcx1, l_tcy1;
625 l_tcx0 = opj_int_ceildiv(*p_tx0, (OPJ_INT32)l_img_comp->dx);
626 l_tcy0 = opj_int_ceildiv(*p_ty0, (OPJ_INT32)l_img_comp->dy);
627 l_tcx1 = opj_int_ceildiv(*p_tx1, (OPJ_INT32)l_img_comp->dx);
628 l_tcy1 = opj_int_ceildiv(*p_ty1, (OPJ_INT32)l_img_comp->dy);
652 l_rx0 = opj_int_ceildivpow2(l_tcx0, (OPJ_INT32)l_level_no);
653 l_ry0 = opj_int_ceildivpow2(l_tcy0, (OPJ_INT32)l_level_no);
654 l_rx1 = opj_int_ceildivpow2(l_tcx1, (OPJ_INT32)l_level_no);
655 l_ry1 = opj_int_ceildivpow2(l_tcy1, (OPJ_INT32)l_level_no);
657 l_px0 = opj_int_floordivpow2(l_rx0, (OPJ_INT32)l_pdx) << l_pdx;
658 l_py0 = opj_int_floordivpow2(l_ry0, (OPJ_INT32)l_pdy) << l_pdy;
659 l_px1 = opj_int_ceildivpow2(l_rx1, (OPJ_INT32)l_pdx) << l_pdx;
661 py1 = opj_int_ceildivpow2(l_ry1, (OPJ_INT32)l_pdy) << l_pdy;
682 OPJ_INT32 * p_tx0,
683 OPJ_INT32 * p_tx1,
684 OPJ_INT32 * p_ty0,
685 OPJ_INT32 * p_ty1,
725 *p_tx0 = (OPJ_INT32)opj_uint_max(l_tx0, p_image->x0);
726 *p_tx1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_tx0, p_cp->tdx), p_image->x1);
728 *p_ty0 = (OPJ_INT32)opj_uint_max(l_ty0, p_image->y0);
729 *p_ty1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_ty0, p_cp->tdy), p_image->y1);
742 OPJ_INT32 l_rx0, l_ry0, l_rx1, l_ry1;
743 OPJ_INT32 l_px0, l_py0, l_px1, py1;
745 OPJ_INT32 l_tcx0, l_tcy0, l_tcx1, l_tcy1;
750 l_tcx0 = opj_int_ceildiv(*p_tx0, (OPJ_INT32)l_img_comp->dx);
751 l_tcy0 = opj_int_ceildiv(*p_ty0, (OPJ_INT32)l_img_comp->dy);
752 l_tcx1 = opj_int_ceildiv(*p_tx1, (OPJ_INT32)l_img_comp->dx);
753 l_tcy1 = opj_int_ceildiv(*p_ty1, (OPJ_INT32)l_img_comp->dy);
772 *p_dx_min = (OPJ_UINT32)opj_int_min((OPJ_INT32)*p_dx_min, (OPJ_INT32)l_dx);
773 *p_dy_min = (OPJ_UINT32)opj_int_min((OPJ_INT32)*p_dy_min, (OPJ_INT32)l_dy);
776 l_rx0 = opj_int_ceildivpow2(l_tcx0, (OPJ_INT32)l_level_no);
777 l_ry0 = opj_int_ceildivpow2(l_tcy0, (OPJ_INT32)l_level_no);
778 l_rx1 = opj_int_ceildivpow2(l_tcx1, (OPJ_INT32)l_level_no);
779 l_ry1 = opj_int_ceildivpow2(l_tcy1, (OPJ_INT32)l_level_no);
780 l_px0 = opj_int_floordivpow2(l_rx0, (OPJ_INT32)l_pdx) << l_pdx;
781 l_py0 = opj_int_floordivpow2(l_ry0, (OPJ_INT32)l_pdy) << l_pdy;
782 l_px1 = opj_int_ceildivpow2(l_rx1, (OPJ_INT32)l_pdx) << l_pdx;
783 py1 = opj_int_ceildivpow2(l_ry1, (OPJ_INT32)l_pdy) << l_pdy;
865 OPJ_INT32 p_tx0,
866 OPJ_INT32 p_tx1,
867 OPJ_INT32 p_ty0,
868 OPJ_INT32 p_ty1,
944 OPJ_INT32 p_tx0,
945 OPJ_INT32 p_tx1,
946 OPJ_INT32 p_ty0,
947 OPJ_INT32 p_ty1,
1075 static OPJ_BOOL opj_pi_check_next_level( OPJ_INT32 pos,
1081 OPJ_INT32 i;
1179 OPJ_INT32 l_tx0,l_tx1,l_ty0,l_ty1;
1386 OPJ_INT32 l_tx0,l_tx1,l_ty0,l_ty1;
1560 OPJ_INT32 tppos,
1564 OPJ_INT32 i;
1583 pi[pino].poc.tx0 = (OPJ_INT32)tcp->txS;
1584 pi[pino].poc.ty0 = (OPJ_INT32)tcp->tyS;
1585 pi[pino].poc.tx1 = (OPJ_INT32)tcp->txE;
1586 pi[pino].poc.ty1 = (OPJ_INT32)tcp->tyE;
1610 pi[pino].poc.tx0 = (OPJ_INT32)tcp->txS;
1611 pi[pino].poc.ty0 = (OPJ_INT32)tcp->tyS;
1612 pi[pino].poc.tx1 = (OPJ_INT32)tcp->txE;
1613 pi[pino].poc.ty1 = (OPJ_INT32)tcp->tyE;
1653 pi[pino].poc.tx0 = (OPJ_INT32)tcp->tx0_t;
1654 pi[pino].poc.tx1 = (OPJ_INT32)(tcp->tx0_t + tcp->dx - (tcp->tx0_t % tcp->dx));
1655 pi[pino].poc.ty0 = (OPJ_INT32)tcp->ty0_t;
1656 pi[pino].poc.ty1 = (OPJ_INT32)(tcp->ty0_t + tcp->dy - (tcp->ty0_t % tcp->dy));
1688 pi[pino].poc.tx0 = (OPJ_INT32)(tcp->tx0_t - tcp->dx - (tcp->tx0_t % tcp->dx));
1689 pi[pino].poc.tx1 = (OPJ_INT32)tcp->tx0_t ;
1690 pi[pino].poc.ty0 = (OPJ_INT32)(tcp->ty0_t - tcp->dy - (tcp->ty0_t % tcp->dy));
1691 pi[pino].poc.ty1 = (OPJ_INT32)tcp->ty0_t ;
1778 pi[pino].poc.ty0 = (OPJ_INT32)tcp->ty0_t;
1779 pi[pino].poc.ty1 = (OPJ_INT32)(tcp->ty0_t + tcp->dy - (tcp->ty0_t % tcp->dy));
1786 pi[pino].poc.ty0 = (OPJ_INT32)tcp->ty0_t;
1787 pi[pino].poc.ty1 = (OPJ_INT32)(tcp->ty0_t + tcp->dy - (tcp->ty0_t % tcp->dy));
1793 pi[pino].poc.tx0 = (OPJ_INT32)tcp->tx0_t;
1794 pi[pino].poc.tx1 = (OPJ_INT32)(tcp->tx0_t + tcp->dx- (tcp->tx0_t % tcp->dx));
1798 pi[pino].poc.tx0 = (OPJ_INT32)tcp->tx0_t;
1799 pi[pino].poc.tx1 = (OPJ_INT32)(tcp->tx0_t + tcp->dx- (tcp->tx0_t % tcp->dx));
1852 OPJ_INT32 l_tx0,l_tx1,l_ty0,l_ty1;