Lines Matching refs:sptr
621 jvirt_sarray_ptr sptr; in realize_virt_arrays() local
630 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in realize_virt_arrays()
631 if (sptr->mem_buffer == NULL) { /* if not realized yet */ in realize_virt_arrays()
632 space_per_minheight += (long) sptr->maxaccess * in realize_virt_arrays()
633 (long) sptr->samplesperrow * sizeof(JSAMPLE); in realize_virt_arrays()
634 maximum_space += (long) sptr->rows_in_array * in realize_virt_arrays()
635 (long) sptr->samplesperrow * sizeof(JSAMPLE); in realize_virt_arrays()
671 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in realize_virt_arrays()
672 if (sptr->mem_buffer == NULL) { /* if not realized yet */ in realize_virt_arrays()
673 minheights = ((long) sptr->rows_in_array - 1L) / sptr->maxaccess + 1L; in realize_virt_arrays()
676 sptr->rows_in_mem = sptr->rows_in_array; in realize_virt_arrays()
679 sptr->rows_in_mem = (JDIMENSION) (max_minheights * sptr->maxaccess); in realize_virt_arrays()
680 jpeg_open_backing_store(cinfo, & sptr->b_s_info, in realize_virt_arrays()
681 (long) sptr->rows_in_array * in realize_virt_arrays()
682 (long) sptr->samplesperrow * in realize_virt_arrays()
684 sptr->b_s_open = TRUE; in realize_virt_arrays()
686 sptr->mem_buffer = alloc_sarray(cinfo, JPOOL_IMAGE, in realize_virt_arrays()
687 sptr->samplesperrow, sptr->rows_in_mem); in realize_virt_arrays()
688 sptr->rowsperchunk = mem->last_rowsperchunk; in realize_virt_arrays()
689 sptr->cur_start_row = 0; in realize_virt_arrays()
690 sptr->first_undef_row = 0; in realize_virt_arrays()
691 sptr->dirty = FALSE; in realize_virt_arrays()
979 jvirt_sarray_ptr sptr; in free_pool() local
982 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) { in free_pool()
983 if (sptr->b_s_open) { /* there may be no backing store */ in free_pool()
984 sptr->b_s_open = FALSE; /* prevent recursive close if error */ in free_pool()
985 (*sptr->b_s_info.close_backing_store) (cinfo, & sptr->b_s_info); in free_pool()