Lines Matching refs:dest

70   my_dest_ptr dest = (my_dest_ptr) cinfo->dest;  in init_destination()  local
73 dest->buffer = (JOCTET *) in init_destination()
77 dest->pub.next_output_byte = dest->buffer; in init_destination()
78 dest->pub.free_in_buffer = OUTPUT_BUF_SIZE; in init_destination()
116 my_dest_ptr dest = (my_dest_ptr) cinfo->dest; in empty_output_buffer() local
118 if (JFWRITE(dest->outfile, dest->buffer, OUTPUT_BUF_SIZE) != in empty_output_buffer()
122 dest->pub.next_output_byte = dest->buffer; in empty_output_buffer()
123 dest->pub.free_in_buffer = OUTPUT_BUF_SIZE; in empty_output_buffer()
134 my_mem_dest_ptr dest = (my_mem_dest_ptr) cinfo->dest; in empty_mem_output_buffer() local
137 nextsize = dest->bufsize * 2; in empty_mem_output_buffer()
143 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer()
145 if (dest->newbuffer != NULL) in empty_mem_output_buffer()
146 free(dest->newbuffer); in empty_mem_output_buffer()
148 dest->newbuffer = nextbuffer; in empty_mem_output_buffer()
150 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer()
151 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer()
153 dest->buffer = nextbuffer; in empty_mem_output_buffer()
154 dest->bufsize = nextsize; in empty_mem_output_buffer()
173 my_dest_ptr dest = (my_dest_ptr) cinfo->dest; in term_destination() local
174 size_t datacount = OUTPUT_BUF_SIZE - dest->pub.free_in_buffer; in term_destination()
178 if (JFWRITE(dest->outfile, dest->buffer, datacount) != datacount) in term_destination()
181 fflush(dest->outfile); in term_destination()
183 if (ferror(dest->outfile)) in term_destination()
191 my_mem_dest_ptr dest = (my_mem_dest_ptr) cinfo->dest; in term_mem_destination() local
193 *dest->outbuffer = dest->buffer; in term_mem_destination()
194 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination()
208 my_dest_ptr dest; in jpeg_stdio_dest() local
216 if (cinfo->dest == NULL) { /* first time for this JPEG object? */ in jpeg_stdio_dest()
217 cinfo->dest = (struct jpeg_destination_mgr *) in jpeg_stdio_dest()
222 dest = (my_dest_ptr) cinfo->dest; in jpeg_stdio_dest()
223 dest->pub.init_destination = init_destination; in jpeg_stdio_dest()
224 dest->pub.empty_output_buffer = empty_output_buffer; in jpeg_stdio_dest()
225 dest->pub.term_destination = term_destination; in jpeg_stdio_dest()
226 dest->outfile = outfile; in jpeg_stdio_dest()
246 my_mem_dest_ptr dest; in jpeg_mem_dest() local
254 if (cinfo->dest == NULL) { /* first time for this JPEG object? */ in jpeg_mem_dest()
255 cinfo->dest = (struct jpeg_destination_mgr *) in jpeg_mem_dest()
260 dest = (my_mem_dest_ptr) cinfo->dest; in jpeg_mem_dest()
261 dest->pub.init_destination = init_mem_destination; in jpeg_mem_dest()
262 dest->pub.empty_output_buffer = empty_mem_output_buffer; in jpeg_mem_dest()
263 dest->pub.term_destination = term_mem_destination; in jpeg_mem_dest()
264 dest->outbuffer = outbuffer; in jpeg_mem_dest()
265 dest->outsize = outsize; in jpeg_mem_dest()
266 dest->newbuffer = NULL; in jpeg_mem_dest()
270 dest->newbuffer = *outbuffer = (unsigned char *) malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest()
271 if (dest->newbuffer == NULL) in jpeg_mem_dest()
276 dest->pub.next_output_byte = dest->buffer = *outbuffer; in jpeg_mem_dest()
277 dest->pub.free_in_buffer = dest->bufsize = *outsize; in jpeg_mem_dest()