Lines Matching refs:pool_id

196 print_mem_stats(j_common_ptr cinfo, int pool_id)  in print_mem_stats()  argument
207 pool_id, mem->total_space_allocated); in print_mem_stats()
209 for (lhdr_ptr = mem->large_list[pool_id]; lhdr_ptr != NULL; in print_mem_stats()
214 for (shdr_ptr = mem->small_list[pool_id]; shdr_ptr != NULL; in print_mem_stats()
267 alloc_small(j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_small() argument
294 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS) in alloc_small()
295 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in alloc_small()
297 hdr_ptr = mem->small_list[pool_id]; in alloc_small()
310 slop = first_pool_slop[pool_id]; in alloc_small()
312 slop = extra_pool_slop[pool_id]; in alloc_small()
331 mem->small_list[pool_id] = hdr_ptr; in alloc_small()
363 alloc_large(j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_large() argument
388 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS) in alloc_large()
389 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in alloc_large()
400 hdr_ptr->next = mem->large_list[pool_id]; in alloc_large()
406 mem->large_list[pool_id] = hdr_ptr; in alloc_large()
434 alloc_sarray(j_common_ptr cinfo, int pool_id, JDIMENSION samplesperrow, in alloc_sarray() argument
468 result = (JSAMPARRAY)alloc_small(cinfo, pool_id, in alloc_sarray()
475 workspace = (JSAMPROW)alloc_large(cinfo, pool_id, in alloc_sarray()
494 alloc_barray(j_common_ptr cinfo, int pool_id, JDIMENSION blocksperrow, in alloc_barray() argument
520 result = (JBLOCKARRAY)alloc_small(cinfo, pool_id, in alloc_barray()
527 workspace = (JBLOCKROW)alloc_large(cinfo, pool_id, in alloc_barray()
578 request_virt_sarray(j_common_ptr cinfo, int pool_id, boolean pre_zero, in request_virt_sarray() argument
587 if (pool_id != JPOOL_IMAGE) in request_virt_sarray()
588 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in request_virt_sarray()
591 result = (jvirt_sarray_ptr)alloc_small(cinfo, pool_id, in request_virt_sarray()
608 request_virt_barray(j_common_ptr cinfo, int pool_id, boolean pre_zero, in request_virt_barray() argument
617 if (pool_id != JPOOL_IMAGE) in request_virt_barray()
618 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in request_virt_barray()
621 result = (jvirt_barray_ptr)alloc_small(cinfo, pool_id, in request_virt_barray()
991 free_pool(j_common_ptr cinfo, int pool_id) in free_pool() argument
998 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS) in free_pool()
999 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in free_pool()
1003 print_mem_stats(cinfo, pool_id); /* print pool's memory usage statistics */ in free_pool()
1007 if (pool_id == JPOOL_IMAGE) { in free_pool()
1028 lhdr_ptr = mem->large_list[pool_id]; in free_pool()
1029 mem->large_list[pool_id] = NULL; in free_pool()
1042 shdr_ptr = mem->small_list[pool_id]; in free_pool()
1043 mem->small_list[pool_id] = NULL; in free_pool()