/external/pdfium/third_party/libopenjpeg20/ |
D | image.c | 46 image->numcomps = numcmpts; in opj_image_create() 48 image->comps = (opj_image_comp_t*)opj_calloc(1,image->numcomps * sizeof(opj_image_comp_t)); in opj_image_create() 86 for(compno = 0; compno < image->numcomps; compno++) { in opj_image_destroy() 124 for (i = 0; i < p_image_header->numcomps; ++i) { in opj_image_comp_header_update() 162 for(compno = 0; compno < p_image_dest->numcomps; compno++) { in opj_copy_image_header() 172 p_image_dest->numcomps = p_image_src->numcomps; in opj_copy_image_header() 174 …p_image_dest->comps = (opj_image_comp_t*) opj_malloc(p_image_dest->numcomps * sizeof(opj_image_com… in opj_copy_image_header() 177 p_image_dest->numcomps = 0; in opj_copy_image_header() 181 for (compno=0; compno < p_image_dest->numcomps; compno++){ in opj_copy_image_header() 217 image->numcomps = numcmpts; in opj_image_tile_create() [all …]
|
D | 0014-opj_jp2_read_ihdr_leak.patch | 10 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps, sizeof(opj_jp2_comps_t)); 22 jp2->numcomps = image->numcomps; /* NC */ 23 jp2->comps = (opj_jp2_comps_t*) opj_malloc(jp2->numcomps * sizeof(opj_jp2_comps_t));
|
D | 0025-opj_j2k_add_mct_null_data.patch | 8 …data_size = MCT_ELEMENT_SIZE[l_deco_array->m_element_type] * p_image->numcomps * p_image->numcomps; 17 l_data_size = MCT_ELEMENT_SIZE[l_offset_array->m_element_type] * p_image->numcomps;
|
D | tcd.c | 58 tile->x0, tile->y0, tile->x1, tile->y1, tile->numcomps); in tcd_dump() 59 for (compno = 0; compno < tile->numcomps; compno++) { in tcd_dump() 230 for (compno = 0; compno < tcd_tile->numcomps; compno++) { in opj_tcd_makelayer() 313 for (compno = 0; compno < tcd_tile->numcomps; compno++) { in opj_tcd_makelayer_fixed() 418 for (compno = 0; compno < tcd_tile->numcomps; compno++) { in opj_tcd_rateallocate() 600 …p_tcd->tcd_image->tiles->comps = (opj_tcd_tilecomp_t *) opj_calloc(p_image->numcomps,sizeof(opj_tc… in opj_tcd_init() 605 p_tcd->tcd_image->tiles->numcomps = p_image->numcomps; in opj_tcd_init() 728 for (compno = 0; compno < l_tile->numcomps; ++compno) { in opj_tcd_init_tile() 1172 for (i=0;i<p_tcd->image->numcomps;++i) { in opj_tcd_get_decoded_tile_size() 1234 …_tile_no].packet = (opj_packet_info_t*) opj_calloc((size_t)p_cstr_info->numcomps * (size_t)p_cstr_… in opj_tcd_encode_tile() [all …]
|
D | 0015-read_SPCod_SPCoc_overflow.patch | 9 - assert(compno < p_j2k->m_private_image->numcomps); 10 + if (compno >= p_j2k->m_private_image->numcomps) {
|
D | 0016-read_SQcd_SQcc_overflow.patch | 9 - assert(p_comp_no < p_j2k->m_private_image->numcomps); 10 + if (p_comp_no >= p_j2k->m_private_image->numcomps) {
|
D | j2k.c | 1164 OPJ_UINT32 numcomps, 1870 l_size_len = 40 + 3 * l_image->numcomps; in opj_j2k_write_siz() 1923 opj_write_bytes(l_current_ptr, l_image->numcomps, 2); /* Csiz */ in opj_j2k_write_siz() 1926 for (i = 0; i < l_image->numcomps; ++i) { in opj_j2k_write_siz() 2015 l_image->numcomps = (OPJ_UINT16) l_tmp; in opj_j2k_read_siz() 2021 if (l_image->numcomps != l_nb_comp) { in opj_j2k_read_siz() 2022 …t compatible with the remaining number of parameters ( %d vs %d)\n", l_image->numcomps, l_nb_comp); in opj_j2k_read_siz() 2090 l_cp->exp_comps = l_image->numcomps; in opj_j2k_read_siz() 2095 … l_image->comps = (opj_image_comp_t*) opj_calloc(l_image->numcomps, sizeof(opj_image_comp_t)); in opj_j2k_read_siz() 2097 l_image->numcomps = 0; in opj_j2k_read_siz() [all …]
|
D | jp2.c | 560 opj_read_bytes(p_image_header_data,&(jp2->numcomps),2); /* NC */ in opj_jp2_read_ihdr() 565 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps, sizeof(opj_jp2_comps_t)); in opj_jp2_read_ihdr() 620 opj_write_bytes(l_current_ihdr_ptr, jp2->numcomps, 2); /* NC */ in opj_jp2_write_ihdr() 646 OPJ_UINT32 l_bpcc_size = 8 + jp2->numcomps; in opj_jp2_write_bpcc() 666 for (i = 0; i < jp2->numcomps; ++i) { in opj_jp2_write_bpcc() 695 if (p_bpc_header_size != jp2->numcomps) { in opj_jp2_read_bpcc() 701 for (i = 0; i < jp2->numcomps; ++i) { in opj_jp2_read_bpcc() 841 …OPJ_UINT32 nr_channels = image->numcomps; /* FIXME image->numcomps == jp2->numcomps before color i… in opj_jp2_check_color() 887 if (cmap[i].cmp >= image->numcomps) { in opj_jp2_check_color() 888 …t_msg(p_manager, EVT_ERROR, "Invalid component index %d (>= %d).\n", cmap[i].cmp, image->numcomps); in opj_jp2_check_color() [all …]
|
D | pi.c | 325 for (compno = 0; compno < pi->numcomps; compno++) { in opj_pi_next_rpcl() 412 for (compno = 0; compno < pi->numcomps; compno++) { in opj_pi_next_pcrl() 615 for (compno = 0; compno < p_image->numcomps; ++compno) { in opj_get_encoding_parameters() 739 for (compno = 0; compno < p_image->numcomps; ++compno) { in opj_get_all_encoding_parameters() 837 l_current_pi->comps = (opj_pi_comp_t*) opj_calloc(image->numcomps, sizeof(opj_pi_comp_t)); in opj_pi_create() 843 l_current_pi->numcomps = image->numcomps; in opj_pi_create() 845 for (compno = 0; compno < image->numcomps; ++compno) { in opj_pi_create() 1066 l_current_pi->poc.compno1 = l_current_pi->numcomps; in opj_pi_update_decode_not_poc() 1205 l_data_stride * p_image->numcomps * sizeof(OPJ_UINT32)); in opj_pi_create_decode() 1212 p_image->numcomps * sizeof(OPJ_UINT32 *)); in opj_pi_create_decode() [all …]
|
D | pi.h | 99 OPJ_UINT32 numcomps; member
|
D | t1.c | 267 OPJ_UINT32 numcomps, 279 OPJ_UINT32 numcomps, 1141 OPJ_UINT32 numcomps, in opj_t1_getwmsedec() argument 1146 OPJ_ARG_NOT_USED(numcomps); in opj_t1_getwmsedec() 1472 for (compno = 0; compno < tile->numcomps; ++compno) { in opj_t1_encode_cblks() 1551 tile->numcomps, in opj_t1_encode_cblks() 1573 OPJ_UINT32 numcomps, in opj_t1_encode_cblk() argument 1631 …tempwmsedec = opj_t1_getwmsedec(nmsedec, compno, level, orient, bpno, qmfbid, stepsize, numcomps,m… in opj_t1_encode_cblk()
|
D | tcd.h | 178 OPJ_UINT32 numcomps; /* number of components in tile */ member
|
D | jp2.h | 170 OPJ_UINT32 numcomps; member
|
D | openjpeg.h | 671 OPJ_UINT32 numcomps; member 832 int numcomps; member
|
D | t2.c | 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() 404 first_pass_failed = (OPJ_BOOL*)opj_malloc(l_image->numcomps * sizeof(OPJ_BOOL)); in opj_t2_decode_packets() 410 memset(first_pass_failed, OPJ_TRUE, l_image->numcomps * sizeof(OPJ_BOOL)); in opj_t2_decode_packets()
|
/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_jpx_opj.cpp | 440 if (img->numcomps < 3) { in color_sycc_to_rgb() 516 if (image->numcomps > 2) { in color_apply_icc_profile() 576 image->comps, (image->numcomps + 2) * sizeof(opj_image_comp_t)); in color_apply_icc_profile() 577 if (image->numcomps == 2) { in color_apply_icc_profile() 586 image->numcomps += 2; in color_apply_icc_profile() 607 int enumcs, numcomps; in color_apply_conversion() local 608 numcomps = image->numcomps; in color_apply_conversion() 609 if (numcomps < 3) { in color_apply_conversion() 788 if (image->color_space != OPJ_CLRSPC_SYCC && image->numcomps == 3 && in Init() 791 } else if (image->numcomps <= 2) { in Init() [all …]
|
D | fx_codec_jpx_unittest.cpp | 516 img.numcomps = 3; in TEST()
|
/external/ImageMagick/coders/ |
D | jp2.c | 387 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()
|