• Home
  • Raw
  • Download

Lines Matching refs:dest

93   my_mem_dest_ptr dest = (my_mem_dest_ptr)cinfo->dest;  in empty_mem_output_buffer()  local
95 if (!dest->alloc) ERREXIT(cinfo, JERR_BUFFER_SIZE); in empty_mem_output_buffer()
98 nextsize = dest->bufsize * 2; in empty_mem_output_buffer()
104 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer()
106 free(dest->newbuffer); in empty_mem_output_buffer()
108 dest->newbuffer = nextbuffer; in empty_mem_output_buffer()
110 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer()
111 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer()
113 dest->buffer = nextbuffer; in empty_mem_output_buffer()
114 dest->bufsize = nextsize; in empty_mem_output_buffer()
132 my_mem_dest_ptr dest = (my_mem_dest_ptr)cinfo->dest; in term_mem_destination() local
134 if (dest->alloc) *dest->outbuffer = dest->buffer; in term_mem_destination()
135 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination()
155 my_mem_dest_ptr dest; in jpeg_mem_dest_tj() local
163 if (cinfo->dest == NULL) { /* first time for this JPEG object? */ in jpeg_mem_dest_tj()
164 cinfo->dest = (struct jpeg_destination_mgr *) in jpeg_mem_dest_tj()
167 dest = (my_mem_dest_ptr)cinfo->dest; in jpeg_mem_dest_tj()
168 dest->newbuffer = NULL; in jpeg_mem_dest_tj()
169 dest->buffer = NULL; in jpeg_mem_dest_tj()
170 } else if (cinfo->dest->init_destination != init_mem_destination) { in jpeg_mem_dest_tj()
177 dest = (my_mem_dest_ptr)cinfo->dest; in jpeg_mem_dest_tj()
178 dest->pub.init_destination = init_mem_destination; in jpeg_mem_dest_tj()
179 dest->pub.empty_output_buffer = empty_mem_output_buffer; in jpeg_mem_dest_tj()
180 dest->pub.term_destination = term_mem_destination; in jpeg_mem_dest_tj()
181 if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc) in jpeg_mem_dest_tj()
183 dest->outbuffer = outbuffer; in jpeg_mem_dest_tj()
184 dest->outsize = outsize; in jpeg_mem_dest_tj()
185 dest->alloc = alloc; in jpeg_mem_dest_tj()
190 dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest_tj()
191 if (dest->newbuffer == NULL) in jpeg_mem_dest_tj()
198 dest->pub.next_output_byte = dest->buffer = *outbuffer; in jpeg_mem_dest_tj()
200 dest->bufsize = *outsize; in jpeg_mem_dest_tj()
201 dest->pub.free_in_buffer = dest->bufsize; in jpeg_mem_dest_tj()