Home
last modified time | relevance | path

Searched refs:l_cp (Results 1 – 6 of 6) sorted by relevance

/external/pdfium/third_party/libopenjpeg20/
D0026-use_opj_uint_ceildiv.patch9 - l_cp->tw = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(l_image->x1 - l_cp->tx0), (OPJ_INT32)l_…
10 - l_cp->th = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(l_image->y1 - l_cp->ty0), (OPJ_INT32)l_…
11 + l_cp->tw = opj_uint_ceildiv(l_image->x1 - l_cp->tx0, l_cp->tdx);
12 + l_cp->th = opj_uint_ceildiv(l_image->y1 - l_cp->ty0, l_cp->tdy);
15 if (l_cp->tw == 0 || l_cp->th == 0 || l_cp->tw > 65535 / l_cp->th) {
18 …ecoder.m_start_tile_x = (p_j2k->m_specific_param.m_decoder.m_start_tile_x - l_cp->tx0) / l_cp->tdx;
19 …ecoder.m_start_tile_y = (p_j2k->m_specific_param.m_decoder.m_start_tile_y - l_cp->ty0) / l_cp->tdy;
20 …div((OPJ_INT32)(p_j2k->m_specific_param.m_decoder.m_end_tile_x - l_cp->tx0), (OPJ_INT32)l_cp->tdx);
21 …div((OPJ_INT32)(p_j2k->m_specific_param.m_decoder.m_end_tile_y - l_cp->ty0), (OPJ_INT32)l_cp->tdy);
22 …d_tile_x = opj_uint_ceildiv(p_j2k->m_specific_param.m_decoder.m_end_tile_x - l_cp->tx0, l_cp->tdx);
[all …]
D0021-tcd_init_tile_negative.patch6 l_tx0 = l_cp->tx0 + p * l_cp->tdx; /* can't be greater than l_image->x1 so won't overflow */
8 l_tile->x1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_tx0, l_cp->tdx), l_image->x1);
13 l_ty0 = l_cp->ty0 + q * l_cp->tdy; /* can't be greater than l_image->y1 so won't overflow */
15 l_tile->y1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_ty0, l_cp->tdy), l_image->y1);
Dj2k.c1967 opj_cp_t *l_cp = 00; in opj_j2k_read_siz() local
1977 l_cp = &(p_j2k->m_cp); in opj_j2k_read_siz()
1995 l_cp->rsiz = (OPJ_UINT16) l_tmp; in opj_j2k_read_siz()
2004 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tdx, 4); /* XTsiz */ in opj_j2k_read_siz()
2006 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tdy, 4); /* YTsiz */ in opj_j2k_read_siz()
2008 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tx0, 4); /* XT0siz */ in opj_j2k_read_siz()
2010 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->ty0, 4); /* YT0siz */ in opj_j2k_read_siz()
2033 if (!(l_cp->tdx * l_cp->tdy)) { in opj_j2k_read_siz()
2034 … EVT_ERROR, "Error with SIZ marker: invalid tile size (tdx: %d, tdy: %d)\n", l_cp->tdx, l_cp->tdy); in opj_j2k_read_siz()
2045 l_tx1 = opj_uint_adds(l_cp->tx0, l_cp->tdx); /* manage overflow */ in opj_j2k_read_siz()
[all …]
Dt2.c224 opj_cp_t *l_cp = p_t2->cp; in opj_t2_encode_packets() local
225 opj_tcp_t *l_tcp = &l_cp->tcps[p_tile_no]; in opj_t2_encode_packets()
226 OPJ_UINT32 pocno = (l_cp->rsiz == OPJ_PROFILE_CINEMA_4K)? 2: 1; in opj_t2_encode_packets()
227 … OPJ_UINT32 l_max_comp = l_cp->m_specific_param.m_enc.m_max_comp_size > 0 ? l_image->numcomps : 1; in opj_t2_encode_packets()
230 l_pi = opj_pi_initialise_encode(l_image, l_cp, p_tile_no, p_t2_mode); in opj_t2_encode_packets()
248 … opj_pi_create_encode(l_pi, l_cp,p_tile_no,poc,l_tp_num,p_tp_pos,p_t2_mode); in opj_t2_encode_packets()
272 if (l_cp->m_specific_param.m_enc.m_max_comp_size) { in opj_t2_encode_packets()
273 … if (l_comp_len > l_cp->m_specific_param.m_enc.m_max_comp_size) { in opj_t2_encode_packets()
284 opj_pi_create_encode(l_pi, l_cp,p_tile_no,p_pino,p_tp_num,p_tp_pos,p_t2_mode); in opj_t2_encode_packets()
314 …info_PK->start_pos = ((l_cp->m_specific_param.m_enc.m_tp_on | l_tcp->POC)&& info_PK->start_pos) ? … in opj_t2_encode_packets()
[all …]
Dtcd.c664 opj_cp_t * l_cp = 00; in opj_tcd_init_tile() local
693 l_cp = p_tcd->cp; in opj_tcd_init_tile()
694 l_tcp = &(l_cp->tcps[p_tile_no]); in opj_tcd_init_tile()
701 p = p_tile_no % l_cp->tw; /* tile coordinates */ in opj_tcd_init_tile()
702 q = p_tile_no / l_cp->tw; in opj_tcd_init_tile()
706 l_tx0 = l_cp->tx0 + p * l_cp->tdx; /* can't be greater than l_image->x1 so won't overflow */ in opj_tcd_init_tile()
708 l_tile->x1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_tx0, l_cp->tdx), l_image->x1); in opj_tcd_init_tile()
713 l_ty0 = l_cp->ty0 + q * l_cp->tdy; /* can't be greater than l_image->y1 so won't overflow */ in opj_tcd_init_tile()
715 l_tile->y1 = (OPJ_INT32)opj_uint_min(opj_uint_adds(l_ty0, l_cp->tdy), l_image->y1); in opj_tcd_init_tile()
755 if (l_tccp->numresolutions < l_cp->m_specific_param.m_dec.m_reduce) { in opj_tcd_init_tile()
[all …]
D0028-upstream-check-size-in-opj_j2k_read_siz.patch22 if (l_cp->correct) {