Home
last modified time | relevance | path

Searched refs:h_mem_size (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/third_party/libopenjpeg20/
D0003-dwt-decode.patch195 - h_mem_size = opj_dwt_max_resolution(tr, numres);
198 - if (h_mem_size > (SIZE_MAX / PARALLEL_COLS_53 / sizeof(OPJ_INT32))) {
206 - h_mem_size *= PARALLEL_COLS_53 * sizeof(OPJ_INT32);
207 + h_mem_size = h.mem_count * PARALLEL_COLS_53 * sizeof(OPJ_INT32);
208 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size);
232 - h_mem_size = opj_dwt_max_resolution(tr, numres);
236 - if (h_mem_size > (SIZE_MAX / (4 * sizeof(OPJ_INT32)))) {
243 - h_mem_size *= 4 * sizeof(OPJ_INT32);
244 + h_mem_size = h.mem_count * 4 * sizeof(OPJ_INT32);
245 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size);
Ddwt.c1403 OPJ_SIZE_T h_mem_size; in opj_dwt_decode_tile() local
1419 h_mem_size = h.mem_count * PARALLEL_COLS_53 * sizeof(OPJ_INT32); in opj_dwt_decode_tile()
1420 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size); in opj_dwt_decode_tile()
1478 job->h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size); in opj_dwt_decode_tile()
1533 job->v.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size); in opj_dwt_decode_tile()
1953 OPJ_SIZE_T h_mem_size; in opj_dwt_decode_partial_tile() local
1994 h_mem_size = h.mem_count * 4 * sizeof(OPJ_INT32); in opj_dwt_decode_partial_tile()
1995 h.mem = (OPJ_INT32*)opj_aligned_32_malloc(h_mem_size); in opj_dwt_decode_partial_tile()