Home | History | Annotate | Download | only in libjpeg

Lines Matching refs:pool_id

188 print_mem_stats (j_common_ptr cinfo, int pool_id)
199 pool_id, mem->total_space_allocated);
201 for (lhdr_ptr = mem->large_list[pool_id]; lhdr_ptr != NULL;
207 for (shdr_ptr = mem->small_list[pool_id]; shdr_ptr != NULL;
259 alloc_small (j_common_ptr cinfo, int pool_id, size_t sizeofobject)
277 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS)
278 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */
280 hdr_ptr = mem->small_list[pool_id];
293 slop = first_pool_slop[pool_id];
295 slop = extra_pool_slop[pool_id];
314 mem->small_list[pool_id] = hdr_ptr;
344 alloc_large (j_common_ptr cinfo, int pool_id, size_t sizeofobject)
361 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS)
362 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */
371 hdr_ptr->hdr.next = mem->large_list[pool_id];
377 mem->large_list[pool_id] = hdr_ptr;
397 alloc_sarray (j_common_ptr cinfo, int pool_id,
419 result = (JSAMPARRAY) alloc_small(cinfo, pool_id,
426 workspace = (JSAMPROW) alloc_large(cinfo, pool_id,
445 alloc_barray (j_common_ptr cinfo, int pool_id,
467 result = (JBLOCKARRAY) alloc_small(cinfo, pool_id,
474 workspace = (JBLOCKROW) alloc_large(cinfo, pool_id,
525 request_virt_sarray (j_common_ptr cinfo, int pool_id, boolean pre_zero,
534 if (pool_id != JPOOL_IMAGE)
535 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */
538 result = (jvirt_sarray_ptr) alloc_small(cinfo, pool_id,
555 request_virt_barray (j_common_ptr cinfo, int pool_id, boolean pre_zero,
564 if (pool_id != JPOOL_IMAGE)
565 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */
568 result = (jvirt_barray_ptr) alloc_small(cinfo, pool_id,
932 free_pool (j_common_ptr cinfo, int pool_id)
939 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS)
940 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */
944 print_mem_stats(cinfo, pool_id); /* print pool's memory usage statistics */
948 if (pool_id == JPOOL_IMAGE) {
969 lhdr_ptr = mem->large_list[pool_id];
970 mem->large_list[pool_id] = NULL;
983 shdr_ptr = mem->small_list[pool_id];
984 mem->small_list[pool_id] = NULL;