Lines Matching refs:pool_id
186 print_mem_stats (j_common_ptr cinfo, int pool_id) in print_mem_stats() argument
197 pool_id, mem->total_space_allocated); in print_mem_stats()
199 for (lhdr_ptr = mem->large_list[pool_id]; lhdr_ptr != NULL; in print_mem_stats()
205 for (shdr_ptr = mem->small_list[pool_id]; shdr_ptr != NULL; in print_mem_stats()
257 alloc_small (j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_small() argument
275 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS) in alloc_small()
276 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in alloc_small()
278 hdr_ptr = mem->small_list[pool_id]; in alloc_small()
291 slop = first_pool_slop[pool_id]; in alloc_small()
293 slop = extra_pool_slop[pool_id]; in alloc_small()
312 mem->small_list[pool_id] = hdr_ptr; in alloc_small()
342 alloc_large (j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_large() argument
359 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS) in alloc_large()
360 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in alloc_large()
369 hdr_ptr->hdr.next = mem->large_list[pool_id]; in alloc_large()
375 mem->large_list[pool_id] = hdr_ptr; in alloc_large()
395 alloc_sarray (j_common_ptr cinfo, int pool_id, in alloc_sarray() argument
417 result = (JSAMPARRAY) alloc_small(cinfo, pool_id, in alloc_sarray()
424 workspace = (JSAMPROW) alloc_large(cinfo, pool_id, in alloc_sarray()
443 alloc_barray (j_common_ptr cinfo, int pool_id, in alloc_barray() argument
465 result = (JBLOCKARRAY) alloc_small(cinfo, pool_id, in alloc_barray()
472 workspace = (JBLOCKROW) alloc_large(cinfo, pool_id, in alloc_barray()
523 request_virt_sarray (j_common_ptr cinfo, int pool_id, boolean pre_zero, in request_virt_sarray() argument
532 if (pool_id != JPOOL_IMAGE) in request_virt_sarray()
533 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in request_virt_sarray()
536 result = (jvirt_sarray_ptr) alloc_small(cinfo, pool_id, in request_virt_sarray()
553 request_virt_barray (j_common_ptr cinfo, int pool_id, boolean pre_zero, in request_virt_barray() argument
562 if (pool_id != JPOOL_IMAGE) in request_virt_barray()
563 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in request_virt_barray()
566 result = (jvirt_barray_ptr) alloc_small(cinfo, pool_id, in request_virt_barray()
930 free_pool (j_common_ptr cinfo, int pool_id) in free_pool() argument
937 if (pool_id < 0 || pool_id >= JPOOL_NUMPOOLS) in free_pool()
938 ERREXIT1(cinfo, JERR_BAD_POOL_ID, pool_id); /* safety check */ in free_pool()
942 print_mem_stats(cinfo, pool_id); /* print pool's memory usage statistics */ in free_pool()
946 if (pool_id == JPOOL_IMAGE) { in free_pool()
967 lhdr_ptr = mem->large_list[pool_id]; in free_pool()
968 mem->large_list[pool_id] = NULL; in free_pool()
981 shdr_ptr = mem->small_list[pool_id]; in free_pool()
982 mem->small_list[pool_id] = NULL; in free_pool()