Lines Matching refs:sizeofobject
267 alloc_small(j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_small() argument
281 if (sizeofobject > MAX_ALLOC_CHUNK) { in alloc_small()
286 sizeofobject = round_up_pow2(sizeofobject, ALIGN_SIZE); in alloc_small()
289 if ((sizeof(small_pool_hdr) + sizeofobject + ALIGN_SIZE - 1) > in alloc_small()
299 if (hdr_ptr->bytes_left >= sizeofobject) in alloc_small()
308 min_request = sizeof(small_pool_hdr) + sizeofobject + ALIGN_SIZE - 1; in alloc_small()
329 hdr_ptr->bytes_left = sizeofobject + slop; in alloc_small()
342 hdr_ptr->bytes_used += sizeofobject; in alloc_small()
343 hdr_ptr->bytes_left -= sizeofobject; in alloc_small()
363 alloc_large(j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_large() argument
375 if (sizeofobject > MAX_ALLOC_CHUNK) { in alloc_large()
380 sizeofobject = round_up_pow2(sizeofobject, ALIGN_SIZE); in alloc_large()
383 if ((sizeof(large_pool_hdr) + sizeofobject + ALIGN_SIZE - 1) > in alloc_large()
391 hdr_ptr = (large_pool_ptr)jpeg_get_large(cinfo, sizeofobject + in alloc_large()
396 mem->total_space_allocated += sizeofobject + sizeof(large_pool_hdr) + in alloc_large()
404 hdr_ptr->bytes_used = sizeofobject; in alloc_large()