Lines Matching refs:sptr
589 jvirt_sarray_ptr sptr;
598 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) {
599 if (sptr->mem_buffer == NULL) { /* if not realized yet */
600 space_per_minheight += (long) sptr->maxaccess *
601 (long) sptr->samplesperrow * SIZEOF(JSAMPLE);
602 maximum_space += (long) sptr->rows_in_array *
603 (long) sptr->samplesperrow * SIZEOF(JSAMPLE);
639 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) {
640 if (sptr->mem_buffer == NULL) { /* if not realized yet */
641 minheights = ((long) sptr->rows_in_array - 1L) / sptr->maxaccess + 1L;
644 sptr->rows_in_mem = sptr->rows_in_array;
647 sptr->rows_in_mem = (JDIMENSION) (max_minheights * sptr->maxaccess);
648 jpeg_open_backing_store(cinfo, & sptr->b_s_info,
649 (long) sptr->rows_in_array *
650 (long) sptr->samplesperrow *
652 sptr->b_s_open = TRUE;
654 sptr->mem_buffer = alloc_sarray(cinfo, JPOOL_IMAGE,
655 sptr->samplesperrow, sptr->rows_in_mem);
656 sptr->rowsperchunk = mem->last_rowsperchunk;
657 sptr->cur_start_row = 0;
658 sptr->first_undef_row = 0;
659 sptr->dirty = FALSE;
947 jvirt_sarray_ptr sptr;
950 for (sptr = mem->virt_sarray_list; sptr != NULL; sptr = sptr->next) {
951 if (sptr->b_s_open) { /* there may be no backing store */
952 sptr->b_s_open = FALSE; /* prevent recursive close if error */
953 (*sptr->b_s_info.close_backing_store) (cinfo, & sptr->b_s_info);