Lines Matching refs:dest

90   my_mem_dest_ptr dest = (my_mem_dest_ptr) cinfo->dest;  in empty_mem_output_buffer()  local
92 if (!dest->alloc) ERREXIT(cinfo, JERR_BUFFER_SIZE); in empty_mem_output_buffer()
95 nextsize = dest->bufsize * 2; in empty_mem_output_buffer()
101 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer()
103 if (dest->newbuffer != NULL) in empty_mem_output_buffer()
104 free(dest->newbuffer); in empty_mem_output_buffer()
106 dest->newbuffer = nextbuffer; in empty_mem_output_buffer()
108 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer()
109 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer()
111 dest->buffer = nextbuffer; in empty_mem_output_buffer()
112 dest->bufsize = nextsize; in empty_mem_output_buffer()
130 my_mem_dest_ptr dest = (my_mem_dest_ptr) cinfo->dest; in term_mem_destination() local
132 if(dest->alloc) *dest->outbuffer = dest->buffer; in term_mem_destination()
133 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination()
154 my_mem_dest_ptr dest; in jpeg_mem_dest_tj() local
162 if (cinfo->dest == NULL) { /* first time for this JPEG object? */ in jpeg_mem_dest_tj()
163 cinfo->dest = (struct jpeg_destination_mgr *) in jpeg_mem_dest_tj()
166 dest = (my_mem_dest_ptr) cinfo->dest; in jpeg_mem_dest_tj()
167 dest->newbuffer = NULL; in jpeg_mem_dest_tj()
168 dest->buffer = NULL; in jpeg_mem_dest_tj()
171 dest = (my_mem_dest_ptr) cinfo->dest; in jpeg_mem_dest_tj()
172 dest->pub.init_destination = init_mem_destination; in jpeg_mem_dest_tj()
173 dest->pub.empty_output_buffer = empty_mem_output_buffer; in jpeg_mem_dest_tj()
174 dest->pub.term_destination = term_mem_destination; in jpeg_mem_dest_tj()
175 if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc) in jpeg_mem_dest_tj()
177 dest->outbuffer = outbuffer; in jpeg_mem_dest_tj()
178 dest->outsize = outsize; in jpeg_mem_dest_tj()
179 dest->alloc = alloc; in jpeg_mem_dest_tj()
184 dest->newbuffer = *outbuffer = (unsigned char *) malloc(OUTPUT_BUF_SIZE); in jpeg_mem_dest_tj()
185 if (dest->newbuffer == NULL) in jpeg_mem_dest_tj()
192 dest->pub.next_output_byte = dest->buffer = *outbuffer; in jpeg_mem_dest_tj()
194 dest->bufsize = *outsize; in jpeg_mem_dest_tj()
195 dest->pub.free_in_buffer = dest->bufsize; in jpeg_mem_dest_tj()