• Home
  • Raw
  • Download

Lines Matching refs:p_cp

92 static void opj_pi_update_encode_poc_and_final(opj_cp_t *p_cp,
118 static void opj_pi_update_encode_not_poc(opj_cp_t *p_cp,
145 const opj_cp_t *p_cp,
177 const opj_cp_t *p_cp,
197 const opj_cp_t *p_cp,
739 const opj_cp_t *p_cp, in opj_get_encoding_parameters() argument
764 assert(p_cp != 00); in opj_get_encoding_parameters()
766 assert(p_tileno < p_cp->tw * p_cp->th); in opj_get_encoding_parameters()
769 l_tcp = &p_cp->tcps [p_tileno]; in opj_get_encoding_parameters()
774 p = p_tileno % p_cp->tw; in opj_get_encoding_parameters()
775 q = p_tileno / p_cp->tw; in opj_get_encoding_parameters()
778 l_tx0 = p_cp->tx0 + p * in opj_get_encoding_parameters()
779 p_cp->tdx; /* can't be greater than p_image->x1 so won't overflow */ in opj_get_encoding_parameters()
781 *p_tx1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_tx0, p_cp->tdx), p_image->x1); in opj_get_encoding_parameters()
782 l_ty0 = p_cp->ty0 + q * in opj_get_encoding_parameters()
783 p_cp->tdy; /* can't be greater than p_image->y1 so won't overflow */ in opj_get_encoding_parameters()
785 *p_ty1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_ty0, p_cp->tdy), p_image->y1); in opj_get_encoding_parameters()
860 const opj_cp_t *p_cp, in opj_get_all_encoding_parameters() argument
890 assert(p_cp != 00); in opj_get_all_encoding_parameters()
892 assert(tileno < p_cp->tw * p_cp->th); in opj_get_all_encoding_parameters()
895 tcp = &p_cp->tcps [tileno]; in opj_get_all_encoding_parameters()
900 p = tileno % p_cp->tw; in opj_get_all_encoding_parameters()
901 q = tileno / p_cp->tw; in opj_get_all_encoding_parameters()
904 l_tx0 = p_cp->tx0 + p * in opj_get_all_encoding_parameters()
905 p_cp->tdx; /* can't be greater than p_image->x1 so won't overflow */ in opj_get_all_encoding_parameters()
907 *p_tx1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_tx0, p_cp->tdx), p_image->x1); in opj_get_all_encoding_parameters()
908 l_ty0 = p_cp->ty0 + q * in opj_get_all_encoding_parameters()
909 p_cp->tdy; /* can't be greater than p_image->y1 so won't overflow */ in opj_get_all_encoding_parameters()
911 *p_ty1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_ty0, p_cp->tdy), p_image->y1); in opj_get_all_encoding_parameters()
1055 static void opj_pi_update_encode_poc_and_final(opj_cp_t *p_cp, in opj_pi_update_encode_poc_and_final() argument
1079 assert(p_cp != 00); in opj_pi_update_encode_poc_and_final()
1080 assert(p_tileno < p_cp->tw * p_cp->th); in opj_pi_update_encode_poc_and_final()
1083 l_tcp = &p_cp->tcps [p_tileno]; in opj_pi_update_encode_poc_and_final()
1134 static void opj_pi_update_encode_not_poc(opj_cp_t *p_cp, in opj_pi_update_encode_not_poc() argument
1156 assert(p_cp != 00); in opj_pi_update_encode_not_poc()
1157 assert(p_tileno < p_cp->tw * p_cp->th); in opj_pi_update_encode_not_poc()
1160 l_tcp = &p_cp->tcps [p_tileno]; in opj_pi_update_encode_not_poc()
1363 opj_cp_t *p_cp, in opj_pi_create_decode() argument
1395 assert(p_cp != 00); in opj_pi_create_decode()
1397 assert(p_tile_no < p_cp->tw * p_cp->th); in opj_pi_create_decode()
1400 l_tcp = &p_cp->tcps[p_tile_no]; in opj_pi_create_decode()
1419 l_pi = opj_pi_create(p_image, p_cp, p_tile_no); in opj_pi_create_decode()
1434 opj_get_all_encoding_parameters(p_image, p_cp, p_tile_no, &l_tx0, &l_tx1, in opj_pi_create_decode()
1562 opj_cp_t *p_cp, in opj_pi_initialise_encode() argument
1595 assert(p_cp != 00); in opj_pi_initialise_encode()
1597 assert(p_tile_no < p_cp->tw * p_cp->th); in opj_pi_initialise_encode()
1600 l_tcp = &p_cp->tcps[p_tile_no]; in opj_pi_initialise_encode()
1618 l_pi = opj_pi_create(p_image, p_cp, p_tile_no); in opj_pi_initialise_encode()
1633 opj_get_all_encoding_parameters(p_image, p_cp, p_tile_no, &l_tx0, &l_tx1, in opj_pi_initialise_encode()
1643 l_pi->tp_on = (OPJ_BYTE)p_cp->m_specific_param.m_enc.m_tp_on; in opj_pi_initialise_encode()
1742 if (l_tcp->POC && (OPJ_IS_CINEMA(p_cp->rsiz) || p_t2_mode == FINAL_PASS)) { in opj_pi_initialise_encode()
1743 opj_pi_update_encode_poc_and_final(p_cp, p_tile_no, l_tx0, l_tx1, l_ty0, l_ty1, in opj_pi_initialise_encode()
1746 opj_pi_update_encode_not_poc(p_cp, numcomps, p_tile_no, l_tx0, l_tx1, in opj_pi_initialise_encode()
2048 opj_cp_t *p_cp, in opj_pi_update_encoding_parameters() argument
2061 assert(p_cp != 00); in opj_pi_update_encoding_parameters()
2063 assert(p_tile_no < p_cp->tw * p_cp->th); in opj_pi_update_encoding_parameters()
2065 l_tcp = &(p_cp->tcps[p_tile_no]); in opj_pi_update_encoding_parameters()
2068 opj_get_encoding_parameters(p_image, p_cp, p_tile_no, &l_tx0, &l_tx1, &l_ty0, in opj_pi_update_encoding_parameters()
2072 opj_pi_update_encode_poc_and_final(p_cp, p_tile_no, l_tx0, l_tx1, l_ty0, l_ty1, in opj_pi_update_encoding_parameters()
2075 opj_pi_update_encode_not_poc(p_cp, p_image->numcomps, p_tile_no, l_tx0, l_tx1, in opj_pi_update_encoding_parameters()