• Home
  • Raw
  • Download

Lines Matching refs:dest

71   my_dest_ptr dest = (my_dest_ptr)cinfo->dest;  in init_destination()  local
74 dest->buffer = (JOCTET *) in init_destination()
78 dest->pub.next_output_byte = dest->buffer; in init_destination()
79 dest->pub.free_in_buffer = OUTPUT_BUF_SIZE; in init_destination()
117 my_dest_ptr dest = (my_dest_ptr)cinfo->dest; in empty_output_buffer() local
119 if (JFWRITE(dest->outfile, dest->buffer, OUTPUT_BUF_SIZE) != in empty_output_buffer()
123 dest->pub.next_output_byte = dest->buffer; in empty_output_buffer()
124 dest->pub.free_in_buffer = OUTPUT_BUF_SIZE; in empty_output_buffer()
135 my_mem_dest_ptr dest = (my_mem_dest_ptr)cinfo->dest; in empty_mem_output_buffer() local
138 nextsize = dest->bufsize * 2; in empty_mem_output_buffer()
144 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); 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
213 if (cinfo->dest == NULL) { /* first time for this JPEG object? */ in jpeg_stdio_dest()
214 cinfo->dest = (struct jpeg_destination_mgr *) in jpeg_stdio_dest()
217 } else if (cinfo->dest->init_destination != init_destination) { in jpeg_stdio_dest()
227 dest = (my_dest_ptr)cinfo->dest; in jpeg_stdio_dest()
228 dest->pub.init_destination = init_destination; in jpeg_stdio_dest()
229 dest->pub.empty_output_buffer = empty_output_buffer; in jpeg_stdio_dest()
230 dest->pub.term_destination = term_destination; in jpeg_stdio_dest()
231 dest->outfile = outfile; in jpeg_stdio_dest()
254 my_mem_dest_ptr dest; in jpeg_mem_dest() local
262 if (cinfo->dest == NULL) { /* first time for this JPEG object? */ in jpeg_mem_dest()
263 cinfo->dest = (struct jpeg_destination_mgr *) in jpeg_mem_dest()
266 } else if (cinfo->dest->init_destination != init_mem_destination) { in jpeg_mem_dest()
273 dest = (my_mem_dest_ptr)cinfo->dest; in jpeg_mem_dest()
274 dest->pub.init_destination = init_mem_destination; in jpeg_mem_dest()
275 dest->pub.empty_output_buffer = empty_mem_output_buffer; in jpeg_mem_dest()
276 dest->pub.term_destination = term_mem_destination; in jpeg_mem_dest()
277 dest->outbuffer = outbuffer; in jpeg_mem_dest()
278 dest->outsize = outsize; in jpeg_mem_dest()
279 dest->newbuffer = NULL; in jpeg_mem_dest()
283 dest->newbuffer = *outbuffer = (unsigned char *)malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest()
284 if (dest->newbuffer == NULL) in jpeg_mem_dest()
289 dest->pub.next_output_byte = dest->buffer = *outbuffer; in jpeg_mem_dest()
290 dest->pub.free_in_buffer = dest->bufsize = *outsize; in jpeg_mem_dest()