• Home
  • Raw
  • Download

Lines Matching refs:hdr_ptr

271   small_pool_ptr hdr_ptr, prev_hdr_ptr;  in alloc_small()  local
297 hdr_ptr = mem->small_list[pool_id]; in alloc_small()
298 while (hdr_ptr != NULL) { in alloc_small()
299 if (hdr_ptr->bytes_left >= sizeofobject) in alloc_small()
301 prev_hdr_ptr = hdr_ptr; in alloc_small()
302 hdr_ptr = hdr_ptr->next; in alloc_small()
306 if (hdr_ptr == NULL) { in alloc_small()
318 hdr_ptr = (small_pool_ptr) jpeg_get_small(cinfo, min_request + slop); in alloc_small()
319 if (hdr_ptr != NULL) in alloc_small()
327 hdr_ptr->next = NULL; in alloc_small()
328 hdr_ptr->bytes_used = 0; in alloc_small()
329 hdr_ptr->bytes_left = sizeofobject + slop; in alloc_small()
331 mem->small_list[pool_id] = hdr_ptr; in alloc_small()
333 prev_hdr_ptr->next = hdr_ptr; in alloc_small()
337 data_ptr = (char *) hdr_ptr; /* point to first data byte in pool... */ in alloc_small()
341 data_ptr += hdr_ptr->bytes_used; /* point to place for object */ in alloc_small()
342 hdr_ptr->bytes_used += sizeofobject; in alloc_small()
343 hdr_ptr->bytes_left -= sizeofobject; in alloc_small()
367 large_pool_ptr hdr_ptr; in alloc_large() local
391 hdr_ptr = (large_pool_ptr) jpeg_get_large(cinfo, sizeofobject + in alloc_large()
394 if (hdr_ptr == NULL) in alloc_large()
400 hdr_ptr->next = mem->large_list[pool_id]; in alloc_large()
404 hdr_ptr->bytes_used = sizeofobject; in alloc_large()
405 hdr_ptr->bytes_left = 0; in alloc_large()
406 mem->large_list[pool_id] = hdr_ptr; in alloc_large()
408 data_ptr = (char *) hdr_ptr; /* point to first data byte in pool... */ in alloc_large()