• Home
  • Raw
  • Download

Lines Matching refs:pool_id

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