Home
last modified time | relevance | path

Searched refs:numcomps (Results 1 – 22 of 22) sorted by relevance

/external/pdfium/third_party/libopenjpeg20/
Dimage.c49 image->numcomps = numcmpts; in opj_image_create()
52 image->numcomps * sizeof(opj_image_comp_t)); in opj_image_create()
99 for (compno = 0; compno < image->numcomps; compno++) { in opj_image_destroy()
141 for (i = 0; i < p_image_header->numcomps; ++i) { in opj_image_comp_header_update()
180 for (compno = 0; compno < p_image_dest->numcomps; compno++) { in opj_copy_image_header()
190 p_image_dest->numcomps = p_image_src->numcomps; in opj_copy_image_header()
192 p_image_dest->comps = (opj_image_comp_t*) opj_malloc(p_image_dest->numcomps * in opj_copy_image_header()
196 p_image_dest->numcomps = 0; in opj_copy_image_header()
200 for (compno = 0; compno < p_image_dest->numcomps; compno++) { in opj_copy_image_header()
238 image->numcomps = numcmpts; in opj_image_tile_create()
[all …]
D0025-opj_j2k_add_mct_null_data.patch7 l_data_size = MCT_ELEMENT_SIZE[l_deco_array->m_element_type] * p_image->numcomps
8 * p_image->numcomps;
17 p_image->numcomps;
Dj2k.c1233 OPJ_UINT32 numcomps,
1958 l_size_len = 40 + 3 * l_image->numcomps; in opj_j2k_write_siz()
2012 opj_write_bytes(l_current_ptr, l_image->numcomps, 2); /* Csiz */ in opj_j2k_write_siz()
2015 for (i = 0; i < l_image->numcomps; ++i) { in opj_j2k_write_siz()
2114 l_image->numcomps = (OPJ_UINT16) l_tmp; in opj_j2k_read_siz()
2121 if (l_image->numcomps != l_nb_comp) { in opj_j2k_read_siz()
2124 l_image->numcomps, l_nb_comp); in opj_j2k_read_siz()
2206 l_cp->exp_comps = l_image->numcomps; in opj_j2k_read_siz()
2211 l_image->comps = (opj_image_comp_t*) opj_calloc(l_image->numcomps, in opj_j2k_read_siz()
2214 l_image->numcomps = 0; in opj_j2k_read_siz()
[all …]
Dtcd.c62 tile->x0, tile->y0, tile->x1, tile->y1, tile->numcomps); in tcd_dump()
63 for (compno = 0; compno < tile->numcomps; compno++) { in tcd_dump()
248 for (compno = 0; compno < tcd_tile->numcomps; compno++) { in opj_tcd_makelayer()
349 for (compno = 0; compno < tcd_tile->numcomps; compno++) { in opj_tcd_makelayer_fixed()
465 for (compno = 0; compno < tcd_tile->numcomps; compno++) { in opj_tcd_rateallocate()
658 p_image->numcomps, sizeof(opj_tcd_tilecomp_t)); in opj_tcd_init()
663 p_tcd->tcd_image->tiles->numcomps = p_image->numcomps; in opj_tcd_init()
799 for (compno = 0; compno < l_tile->numcomps; ++compno) { in opj_tcd_init_tile()
1315 for (i = 0; i < p_tcd->image->numcomps; ++i) { in opj_tcd_get_decoded_tile_size()
1389 OPJ_SIZE_T)p_cstr_info->numcomps * (OPJ_SIZE_T)p_cstr_info->numlayers * in opj_tcd_encode_tile()
[all …]
Djp2.c586 opj_read_bytes(p_image_header_data, &(jp2->numcomps), 2); /* NC */ in opj_jp2_read_ihdr()
589 if ((jp2->numcomps - 1U) >= in opj_jp2_read_ihdr()
597 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps, in opj_jp2_read_ihdr()
661 opj_write_bytes(l_current_ihdr_ptr, jp2->numcomps, 2); /* NC */ in opj_jp2_write_ihdr()
695 l_bpcc_size = 8 + jp2->numcomps; in opj_jp2_write_bpcc()
711 for (i = 0; i < jp2->numcomps; ++i) { in opj_jp2_write_bpcc()
743 if (p_bpc_header_size != jp2->numcomps) { in opj_jp2_read_bpcc()
749 for (i = 0; i < jp2->numcomps; ++i) { in opj_jp2_read_bpcc()
899 … image->numcomps; /* FIXME image->numcomps == jp2->numcomps before color is applied ??? */ in opj_jp2_check_color()
948 if (cmap[i].cmp >= image->numcomps) { in opj_jp2_check_color()
[all …]
Dpi.c351 for (compno = 0; compno < pi->numcomps; compno++) { in opj_pi_next_rpcl()
487 for (compno = 0; compno < pi->numcomps; compno++) { in opj_pi_next_pcrl()
792 for (compno = 0; compno < p_image->numcomps; ++compno) { in opj_get_encoding_parameters()
918 for (compno = 0; compno < p_image->numcomps; ++compno) { in opj_get_all_encoding_parameters()
1024 l_current_pi->comps = (opj_pi_comp_t*) opj_calloc(image->numcomps, in opj_pi_create()
1031 l_current_pi->numcomps = image->numcomps; in opj_pi_create()
1033 for (compno = 0; compno < image->numcomps; ++compno) { in opj_pi_create()
1261 l_current_pi->poc.compno1 = l_current_pi->numcomps; in opj_pi_update_decode_not_poc()
1363 OPJ_UINT32 numcomps = p_image->numcomps; in opj_pi_create_decode() local
1402 l_data_stride * numcomps * sizeof(OPJ_UINT32)); in opj_pi_create_decode()
[all …]
D0015-read_SPCod_SPCoc_overflow.patch9 + if (compno >= p_j2k->m_private_image->numcomps) {
13 assert(compno < p_j2k->m_private_image->numcomps);
D0016-read_SQcd_SQcc_overflow.patch9 - assert(p_comp_no < p_j2k->m_private_image->numcomps);
10 + if (p_comp_no >= p_j2k->m_private_image->numcomps) {
Djp2.h162 OPJ_UINT32 numcomps; member
347 OPJ_UINT32 numcomps,
D0014-opj_jp2_read_ihdr_leak.patch10 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps,
Dpi.h101 OPJ_UINT32 numcomps; member
Dopenjpeg.c250 OPJ_UINT32 numcomps, in opj_create_decompress()
338 OPJ_UINT32 numcomps, in opj_create_decompress()
443 OPJ_UINT32 numcomps, in opj_set_decoded_components() argument
464 numcomps, in opj_set_decoded_components()
Dopenjpeg.h679 OPJ_UINT32 numcomps; member
841 int numcomps; member
1370 OPJ_UINT32 numcomps,
D0035-opj_j2k_update_image_dimensions.patch8 for (it_comp = 0; it_comp < p_image->numcomps; ++it_comp) {
Dt1.c176 OPJ_UINT32 numcomps,
188 OPJ_UINT32 numcomps,
1415 OPJ_UINT32 numcomps, in opj_t1_getwmsedec() argument
1420 OPJ_ARG_NOT_USED(numcomps); in opj_t1_getwmsedec()
2116 for (compno = 0; compno < tile->numcomps; ++compno) { in opj_t1_encode_cblks()
2201 tile->numcomps, in opj_t1_encode_cblks()
2254 OPJ_UINT32 numcomps, in opj_t1_encode_cblk() argument
2335 stepsize, numcomps, mct_norms, mct_numcomps) ; in opj_t1_encode_cblk()
Dtcd.h231 OPJ_UINT32 numcomps; /* number of components in tile */ member
D0026-use_opj_uint_ceildiv.patch49 for (it_comp = 0; it_comp < p_image->numcomps; ++it_comp) {
Dt2.c244 l_image->numcomps : 1; in opj_t2_encode_packets()
431 first_pass_failed = (OPJ_BOOL*)opj_malloc(l_image->numcomps * sizeof(OPJ_BOOL)); in opj_t2_decode_packets()
436 memset(first_pass_failed, OPJ_TRUE, l_image->numcomps * sizeof(OPJ_BOOL)); in opj_t2_decode_packets()
Dj2k.h725 OPJ_UINT32 numcomps,
/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpx_opj.cpp196 if (img->numcomps < 3) { in color_sycc_to_rgb()
510 if (m_Image->color_space != OPJ_CLRSPC_SYCC && m_Image->numcomps == 3 && in Init()
514 } else if (m_Image->numcomps <= 2) { in Init()
537 *components = m_Image->numcomps; in GetInfo()
546 if (pitch<static_cast<int>(m_Image->comps[0].w * 8 * m_Image->numcomps + 31)>> in Decode()
552 std::vector<uint8_t*> channel_bufs(m_Image->numcomps); in Decode()
553 std::vector<int> adjust_comps(m_Image->numcomps); in Decode()
554 for (uint32_t i = 0; i < m_Image->numcomps; i++) { in Decode()
567 for (uint32_t channel = 0; channel < m_Image->numcomps; ++channel) { in Decode()
573 uint8_t* pPixel = pScanline + col * m_Image->numcomps; in Decode()
[all …]
Dfx_codec_jpx_unittest.cpp427 img.numcomps = 3; in TEST()
/external/ImageMagick/coders/
Djp2.c387 for (i=0; i < (ssize_t) jp2_image->numcomps; i++) in ReadJP2Image()
406 if (jp2_image->numcomps <= 2) in ReadJP2Image()
409 if (jp2_image->numcomps > 1) in ReadJP2Image()
412 if (jp2_image->numcomps > 3) in ReadJP2Image()
414 for (i=0; i < (ssize_t) jp2_image->numcomps; i++) in ReadJP2Image()
450 for (i=0; i < (ssize_t) jp2_image->numcomps; i++) in ReadJP2Image()
472 if (jp2_image->numcomps == 2) in ReadJP2Image()
741 parameters->tcp_rates[0]=((float) (jp2_image->numcomps*jp2_image->comps[0].w* in CinemaProfileCompliance()