Searched refs:l_data_size (Results 1 – 6 of 6) sorted by relevance
7 l_data_size = MCT_ELEMENT_SIZE[l_deco_array->m_element_type] * p_image->numcomps9 - if (l_deco_array->m_data_size != l_data_size) {10 + if (l_deco_array->m_data_size != l_data_size || ! l_deco_array->m_data) {16 l_data_size = MCT_ELEMENT_SIZE[l_offset_array->m_element_type] *18 - if (l_offset_array->m_data_size != l_data_size) {19 + if (l_offset_array->m_data_size != l_data_size || ! l_offset_array->m_data) {
754 OPJ_UINT32 l_data_size; in opj_tcd_init_tile() local846 l_data_size = l_tilec->numresolutions * (OPJ_UINT32)sizeof( in opj_tcd_init_tile()857 l_tilec->resolutions = (opj_tcd_resolution_t *) opj_malloc(l_data_size); in opj_tcd_init_tile()862 l_tilec->resolutions_size = l_data_size; in opj_tcd_init_tile()863 memset(l_tilec->resolutions, 0, l_data_size); in opj_tcd_init_tile()864 } else if (l_data_size > l_tilec->resolutions_size) { in opj_tcd_init_tile()866 l_tilec->resolutions, l_data_size); in opj_tcd_init_tile()877 l_data_size - l_tilec->resolutions_size); in opj_tcd_init_tile()878 l_tilec->resolutions_size = l_data_size; in opj_tcd_init_tile()1223 OPJ_UINT32 l_data_size; in opj_tcd_code_block_enc_allocate_data() local[all …]
144 OPJ_SIZE_T l_data_size;151 - l_data_size = opj_dwt_max_resolution(tilec->resolutions, tilec->numresolutions);154 - if (l_data_size > (SIZE_MAX / sizeof(OPJ_INT32))) {159 - l_data_size *= sizeof(OPJ_INT32);160 + l_data_size = l_data_count * sizeof(OPJ_INT32);161 bj = (OPJ_INT32*)opj_malloc(l_data_size);162 /* l_data_size is equal to 0 when numresolutions == 1 but bj is not used */
14 /* compute l_data_size with overflow check */
1128 OPJ_SIZE_T l_data_size; in opj_dwt_encode_procedure() local1146 l_data_size = l_data_count * sizeof(OPJ_INT32); in opj_dwt_encode_procedure()1147 bj = (OPJ_INT32*)opj_malloc(l_data_size); in opj_dwt_encode_procedure()1150 if (l_data_size != 0 && ! bj) { in opj_dwt_encode_procedure()2538 OPJ_SIZE_T l_data_size; in opj_dwt_decode_tile_97() local2540 l_data_size = opj_dwt_max_resolution(res, numres); in opj_dwt_decode_tile_97()2542 if (l_data_size > (SIZE_MAX - 5U)) { in opj_dwt_decode_tile_97()2546 l_data_size += 5U; in opj_dwt_decode_tile_97()2548 if (l_data_size > (SIZE_MAX / sizeof(opj_v4_t))) { in opj_dwt_decode_tile_97()2552 h.wavelet = (opj_v4_t*) opj_aligned_malloc(l_data_size * sizeof(opj_v4_t)); in opj_dwt_decode_tile_97()[all …]
3876 OPJ_UINT32 l_data_size = p_cp->ppm_markers[i].m_data_size; in opj_j2k_merge_ppm() local3879 if (l_N_ppm_remaining >= l_data_size) { in opj_j2k_merge_ppm()3880 l_N_ppm_remaining -= l_data_size; in opj_j2k_merge_ppm()3881 l_data_size = 0U; in opj_j2k_merge_ppm()3884 l_data_size -= l_N_ppm_remaining; in opj_j2k_merge_ppm()3888 if (l_data_size > 0U) { in opj_j2k_merge_ppm()3891 if (l_data_size < 4U) { in opj_j2k_merge_ppm()3898 l_data_size -= 4; in opj_j2k_merge_ppm()3902 if (l_data_size >= l_N_ppm) { in opj_j2k_merge_ppm()3903 l_data_size -= l_N_ppm; in opj_j2k_merge_ppm()[all …]