Home | History | Annotate | Download | only in jpeg

Lines Matching refs:hdr_ptr

261   small_pool_ptr hdr_ptr, prev_hdr_ptr;
278 hdr_ptr = mem->small_list[pool_id];
279 while (hdr_ptr != NULL) {
280 if (hdr_ptr->hdr.bytes_left >= sizeofobject)
282 prev_hdr_ptr = hdr_ptr;
283 hdr_ptr = hdr_ptr->hdr.next;
287 if (hdr_ptr == NULL) {
299 hdr_ptr = (small_pool_ptr) jpeg_get_small(cinfo, min_request + slop);
300 if (hdr_ptr != NULL)
308 hdr_ptr->hdr.next = NULL;
309 hdr_ptr->hdr.bytes_used = 0;
310 hdr_ptr->hdr.bytes_left = sizeofobject + slop;
312 mem->small_list[pool_id] = hdr_ptr;
314 prev_hdr_ptr->hdr.next = hdr_ptr;
318 data_ptr = (char *) (hdr_ptr + 1); /* point to first data byte in pool */
319 data_ptr += hdr_ptr->hdr.bytes_used; /* point to place for object */
320 hdr_ptr->hdr.bytes_used += sizeofobject;
321 hdr_ptr->hdr.bytes_left -= sizeofobject;
346 large_pool_ptr hdr_ptr;
362 hdr_ptr = (large_pool_ptr) jpeg_get_large(cinfo, sizeofobject +
364 if (hdr_ptr == NULL)
369 hdr_ptr->hdr.next = mem->large_list[pool_id];
373 hdr_ptr->hdr.bytes_used = sizeofobject;
374 hdr_ptr->hdr.bytes_left = 0;
375 mem->large_list[pool_id] = hdr_ptr;
377 return (void FAR *) (hdr_ptr + 1); /* point to first data byte in pool */