Lines Matching refs:sptr
644 jvirt_sarray_ptr sptr; in realize_virt_arrays() local
653 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in realize_virt_arrays()
654 if (sptr->mem_buffer == NULL) { /* if not realized yet */ in realize_virt_arrays()
655 size_t new_space = (long)sptr->rows_in_array * in realize_virt_arrays()
656 (long)sptr->samplesperrow * sizeof(JSAMPLE); in realize_virt_arrays()
658 space_per_minheight += (long)sptr->maxaccess * in realize_virt_arrays()
659 (long)sptr->samplesperrow * sizeof(JSAMPLE); in realize_virt_arrays()
702 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in realize_virt_arrays()
703 if (sptr->mem_buffer == NULL) { /* if not realized yet */ in realize_virt_arrays()
704 minheights = ((long)sptr->rows_in_array - 1L) / sptr->maxaccess + 1L; in realize_virt_arrays()
707 sptr->rows_in_mem = sptr->rows_in_array; in realize_virt_arrays()
710 sptr->rows_in_mem = (JDIMENSION)(max_minheights * sptr->maxaccess); in realize_virt_arrays()
711 jpeg_open_backing_store(cinfo, &sptr->b_s_info, in realize_virt_arrays()
712 (long)sptr->rows_in_array * in realize_virt_arrays()
713 (long)sptr->samplesperrow * in realize_virt_arrays()
715 sptr->b_s_open = TRUE; in realize_virt_arrays()
717 sptr->mem_buffer = alloc_sarray(cinfo, JPOOL_IMAGE, in realize_virt_arrays()
718 sptr->samplesperrow, sptr->rows_in_mem); in realize_virt_arrays()
719 sptr->rowsperchunk = mem->last_rowsperchunk; in realize_virt_arrays()
720 sptr->cur_start_row = 0; in realize_virt_arrays()
721 sptr->first_undef_row = 0; in realize_virt_arrays()
722 sptr->dirty = FALSE; in realize_virt_arrays()
1008 jvirt_sarray_ptr sptr; in free_pool() local
1011 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in free_pool()
1012 if (sptr->b_s_open) { /* there may be no backing store */ in free_pool()
1013 sptr->b_s_open = FALSE; /* prevent recursive close if error */ in free_pool()
1014 (*sptr->b_s_info.close_backing_store) (cinfo, &sptr->b_s_info); in free_pool()