Home | History | Annotate | Download | only in jpeg-6b

Lines Matching defs:mem

188   my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
197 pool_id, mem->total_space_allocated);
199 for (lhdr_ptr = mem->large_list[pool_id]; lhdr_ptr != NULL;
205 for (shdr_ptr = mem->small_list[pool_id]; shdr_ptr != NULL;
260 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
278 hdr_ptr = mem->small_list[pool_id];
306 mem->total_space_allocated += min_request + slop;
312 mem->small_list[pool_id] = hdr_ptr;
345 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
366 mem->total_space_allocated += sizeofobject + SIZEOF(large_pool_hdr);
369 hdr_ptr->hdr.next = mem->large_list[pool_id];
375 mem->large_list[pool_id] = hdr_ptr;
389 * this chunking of rows. The rowsperchunk value is left in the mem manager
399 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
414 mem->last_rowsperchunk = rowsperchunk;
447 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
462 mem->last_rowsperchunk = rowsperchunk;
528 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
545 result->next = mem->virt_sarray_list; /* add to list of virtual arrays */
546 mem->virt_sarray_list = result;
558 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
575 result->next = mem->virt_barray_list; /* add to list of virtual arrays */
576 mem->virt_barray_list = result;
586 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
598 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) {
606 for (bptr = mem->virt_barray_list; bptr != NULL; bptr = bptr->next) {
620 mem->total_space_allocated);
639 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) {
656 sptr->rowsperchunk = mem->last_rowsperchunk;
663 for (bptr = mem->virt_barray_list; bptr != NULL; bptr = bptr->next) {
680 bptr->rowsperchunk = mem->last_rowsperchunk;
932 my_mem_ptr mem = (my_mem_ptr) cinfo->mem;
950 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) {
956 mem->virt_sarray_list = NULL;
957 for (bptr = mem->virt_barray_list; bptr != NULL; bptr = bptr->next) {
963 mem->virt_barray_list = NULL;
967 lhdr_ptr = mem->large_list[pool_id];
968 mem->large_list[pool_id] = NULL;
976 mem->total_space_allocated -= space_freed;
981 shdr_ptr = mem->small_list[pool_id];
982 mem->small_list[pool_id] = NULL;
990 mem->total_space_allocated -= space_freed;
998 * Note that this cannot be called unless cinfo->mem is non-NULL.
1015 jpeg_free_small(cinfo, (void *) cinfo->mem, SIZEOF(my_memory_mgr));
1016 cinfo->mem = NULL; /* ensures I will be called only once */
1030 my_mem_ptr mem;
1035 cinfo->mem = NULL; /* for safety if init fails */
1059 mem = (my_mem_ptr) jpeg_get_small(cinfo, SIZEOF(my_memory_mgr));
1061 if (mem == NULL) {
1067 mem->pub.alloc_small = alloc_small;
1068 mem->pub.alloc_large = alloc_large;
1069 mem->pub.alloc_sarray = alloc_sarray;
1070 mem->pub.alloc_barray = alloc_barray;
1071 mem->pub.request_virt_sarray = request_virt_sarray;
1072 mem->pub.request_virt_barray = request_virt_barray;
1073 mem->pub.realize_virt_arrays = realize_virt_arrays;
1074 mem->pub.access_virt_sarray = access_virt_sarray;
1075 mem->pub.access_virt_barray = access_virt_barray;
1076 mem->pub.free_pool = free_pool;
1077 mem->pub.self_destruct = self_destruct;
1080 mem->pub.max_alloc_chunk = MAX_ALLOC_CHUNK;
1083 mem->pub.max_memory_to_use = max_to_use;
1086 mem->small_list[pool] = NULL;
1087 mem->large_list[pool] = NULL;
1089 mem->virt_sarray_list = NULL;
1090 mem->virt_barray_list = NULL;
1092 mem->total_space_allocated = SIZEOF(my_memory_mgr);
1095 cinfo->mem = & mem->pub;
1112 mem->pub.max_memory_to_use = max_to_use * 1000L;