Home
last modified time | relevance | path

Searched refs:opj_calloc (Results 1 – 16 of 16) sorted by relevance

/external/pdfium/third_party/libopenjpeg20/
Dimage.c36 opj_image_t *image = (opj_image_t*)opj_calloc(1, sizeof(opj_image_t)); in opj_image_create0()
46 image = (opj_image_t*) opj_calloc(1, sizeof(opj_image_t)); in opj_image_create()
51 image->comps = (opj_image_comp_t*)opj_calloc(1, in opj_image_create()
234 image = (opj_image_t*) opj_calloc(1, sizeof(opj_image_t)); in opj_image_tile_create()
241 image->comps = (opj_image_comp_t*)opj_calloc(image->numcomps, in opj_image_tile_create()
Dopj_malloc.h71 void * OPJ_CALLCONV opj_calloc(size_t _NumOfElements, size_t _SizeOfElements);
75 #define opj_calloc(num, size) ((size_t)(num) != 0 && (size_t)(num) >= (size_t)-0x100 / (size_t)(siz… macro
77 #define opj_calloc(num, size) calloc(num, size) macro
Dfunction_list.c42 opj_procedure_list_t * l_validation = (opj_procedure_list_t *) opj_calloc(1, in opj_procedure_list_create()
49 l_validation->m_procedures = (opj_procedure*)opj_calloc(OPJ_VALIDATION_SIZE, in opj_procedure_list_create()
D0034-opj_malloc.patch36 -void * opj_calloc(size_t numOfElements, size_t sizeOfElements);
38 +void * OPJ_CALLCONV opj_calloc(size_t _NumOfElements, size_t _SizeOfElements);
42 +#define opj_calloc(num, size) ((size_t)(num) != 0 && (size_t)(num) >= (size_t)-0x100 / (size_t)(si…
44 +#define opj_calloc(num, size) calloc(num, size)
Dsparse_array.c59 sa = (opj_sparse_array_int32_t*) opj_calloc(1, in opj_sparse_array_int32_create()
71 sa->data_blocks = (OPJ_INT32**) opj_calloc(sizeof(OPJ_INT32*), in opj_sparse_array_int32_create()
237 src_block = (OPJ_INT32*) opj_calloc(1, in opj_sparse_array_int32_read_or_write()
D0014-opj_jp2_read_ihdr_leak.patch10 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps,
Dthread.c315 opj_mutex_t* mutex = (opj_mutex_t*) opj_calloc(1U, sizeof(opj_mutex_t)); in opj_mutex_create()
511 return (opj_tls_t*) opj_calloc(1, sizeof(opj_tls_t)); in opj_tls_new()
629 tp = (opj_thread_pool_t*) opj_calloc(1, sizeof(opj_thread_pool_t)); in opj_thread_pool_create()
696 tp->worker_threads = (opj_worker_thread_t*) opj_calloc((size_t)num_threads, in opj_thread_pool_setup()
Dtgt.c62 tree = (opj_tgt_tree_t *) opj_calloc(1, sizeof(opj_tgt_tree_t)); in opj_tgt_create()
89 tree->nodes = (opj_tgt_node_t*) opj_calloc(tree->numnodes, in opj_tgt_create()
Djp2.c597 jp2->comps = (opj_jp2_comps_t*) opj_calloc(jp2->numcomps, in opj_jp2_read_ihdr()
642 l_ihdr_data = (OPJ_BYTE *) opj_calloc(1, 22); in opj_jp2_write_ihdr()
697 l_bpcc_data = (OPJ_BYTE *) opj_calloc(1, l_bpcc_size); in opj_jp2_write_bpcc()
833 l_colr_data = (OPJ_BYTE *) opj_calloc(1, l_colr_size); in opj_jp2_write_colr()
955 pcol_usage = (OPJ_BOOL *) opj_calloc(nr_channels, sizeof(OPJ_BOOL)); in opj_jp2_check_color()
1583 jp2->color.icc_profile_buf = (OPJ_BYTE*) opj_calloc(1, (size_t)icc_len); in opj_jp2_read_colr()
1798 l_ftyp_data = (OPJ_BYTE *) opj_calloc(1, l_ftyp_size); in opj_jp2_write_ftyp()
2292 l_current_data = (OPJ_BYTE*)opj_calloc(1, l_last_data_size); in opj_jp2_read_header_procedure()
2640 jp2->cl = (OPJ_UINT32 *) opj_calloc(jp2->numcl, sizeof(OPJ_UINT32)); in opj_jp2_read_ftyp()
3189 opj_jp2_t *jp2 = (opj_jp2_t*)opj_calloc(1, sizeof(opj_jp2_t)); in opj_jp2_create()
Dtcd.c207 l_tcd = (opj_tcd_t*) opj_calloc(1, sizeof(opj_tcd_t)); in opj_tcd_create()
214 l_tcd->tcd_image = (opj_tcd_image_t*)opj_calloc(1, sizeof(opj_tcd_image_t)); in opj_tcd_create()
651 p_tcd->tcd_image->tiles = (opj_tcd_tile_t *) opj_calloc(1, in opj_tcd_init()
657 p_tcd->tcd_image->tiles->comps = (opj_tcd_tilecomp_t *) opj_calloc( in opj_tcd_init()
1201 p_code_block->layers = (opj_tcd_layer_t*) opj_calloc(100, in opj_tcd_code_block_enc_allocate()
1208 p_code_block->passes = (opj_tcd_pass_t*) opj_calloc(100, in opj_tcd_code_block_enc_allocate()
1268 p_code_block->segs = (opj_tcd_seg_t *) opj_calloc(OPJ_J2K_DEFAULT_NB_SEGS, in opj_tcd_code_block_dec_allocate()
1388 p_cstr_info->tile[p_tile_no].packet = (opj_packet_info_t*) opj_calloc(( in opj_tcd_encode_tile()
1480 OPJ_BOOL* used_component = (OPJ_BOOL*) opj_calloc(sizeof(OPJ_BOOL), in opj_tcd_decode_tile()
Dj2k.c1633 packet_array = (OPJ_UINT32*) opj_calloc(step_l * p_num_layers, in opj_j2k_check_poc_val()
2211 l_image->comps = (opj_image_comp_t*) opj_calloc(l_image->numcomps, in opj_j2k_read_siz()
2383 l_cp->tcps = (opj_tcp_t*) opj_calloc(l_nb_tiles, sizeof(opj_tcp_t)); in opj_j2k_read_siz()
2404 (opj_tccp_t*) opj_calloc(l_image->numcomps, sizeof(opj_tccp_t)); in opj_j2k_read_siz()
2412 (opj_mct_data_t*)opj_calloc(OPJ_J2K_MCT_DEFAULT_NB_RECORDS, in opj_j2k_read_siz()
2425 opj_calloc(OPJ_J2K_MCC_DEFAULT_NB_RECORDS, in opj_j2k_read_siz()
2446 l_current_tile_param->tccps = (opj_tccp_t*) opj_calloc(l_image->numcomps, in opj_j2k_read_siz()
3811 l_cp->ppm_markers = (opj_ppx *) opj_calloc(l_newCount, sizeof(opj_ppx)); in opj_j2k_read_ppm()
4037 l_tcp->ppt_markers = (opj_ppx *) opj_calloc(l_newCount, sizeof(opj_ppx)); in opj_j2k_read_ppt()
4506 (opj_tp_index_t*)opj_calloc(l_num_parts, sizeof(opj_tp_index_t)); in opj_j2k_read_sot()
[all …]
Dopenjpeg.c172 l_codec = (opj_codec_private_t*) opj_calloc(1, sizeof(opj_codec_private_t)); in opj_create_decompress()
618 l_codec = (opj_codec_private_t*)opj_calloc(1, sizeof(opj_codec_private_t)); in opj_create_compress()
Dpi.c1015 l_pi = (opj_pi_iterator_t*) opj_calloc((l_poc_bound), in opj_pi_create()
1024 l_current_pi->comps = (opj_pi_comp_t*) opj_calloc(image->numcomps, in opj_pi_create()
1038 comp->resolutions = (opj_pi_resolution_t*) opj_calloc(tccp->numresolutions, in opj_pi_create()
1449 l_current_pi->include = (OPJ_INT16*) opj_calloc( in opj_pi_create_decode()
1645 l_current_pi->include = (OPJ_INT16*) opj_calloc(l_current_pi->include_size, in opj_pi_initialise_encode()
Dcio.c162 l_stream = (opj_stream_private_t*) opj_calloc(1, sizeof(opj_stream_private_t)); in opj_stream_create()
Dt1.c1541 l_t1 = (opj_t1_t*) opj_calloc(1, sizeof(opj_t1_t)); in opj_t1_create()
1884 job = (opj_t1_cblk_decode_processing_job_t*) opj_calloc(1, in opj_t1_decode_cblks()
Dt2.c583 opj_t2_t *l_t2 = (opj_t2_t*)opj_calloc(1, sizeof(opj_t2_t)); in opj_t2_create()