Lines Matching refs:sizeofobject
257 alloc_small (j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_small() argument
266 if (sizeofobject > (size_t) (MAX_ALLOC_CHUNK-SIZEOF(small_pool_hdr))) in alloc_small()
270 odd_bytes = sizeofobject % SIZEOF(ALIGN_TYPE); in alloc_small()
272 sizeofobject += SIZEOF(ALIGN_TYPE) - odd_bytes; in alloc_small()
280 if (hdr_ptr->hdr.bytes_left >= sizeofobject) in alloc_small()
289 min_request = sizeofobject + SIZEOF(small_pool_hdr); in alloc_small()
310 hdr_ptr->hdr.bytes_left = sizeofobject + slop; in alloc_small()
320 hdr_ptr->hdr.bytes_used += sizeofobject; in alloc_small()
321 hdr_ptr->hdr.bytes_left -= sizeofobject; in alloc_small()
342 alloc_large (j_common_ptr cinfo, int pool_id, size_t sizeofobject) in alloc_large() argument
350 if (sizeofobject > (size_t) (MAX_ALLOC_CHUNK-SIZEOF(large_pool_hdr))) in alloc_large()
354 odd_bytes = sizeofobject % SIZEOF(ALIGN_TYPE); in alloc_large()
356 sizeofobject += SIZEOF(ALIGN_TYPE) - odd_bytes; in alloc_large()
362 hdr_ptr = (large_pool_ptr) jpeg_get_large(cinfo, sizeofobject + in alloc_large()
366 mem->total_space_allocated += sizeofobject + SIZEOF(large_pool_hdr); in alloc_large()
373 hdr_ptr->hdr.bytes_used = sizeofobject; in alloc_large()