Lines Matching defs:buffer
38 JOCTET *buffer; /* start of buffer */
52 unsigned char **outbuffer; /* target buffer */
54 unsigned char *newbuffer; /* newly allocated buffer */
55 JOCTET *buffer; /* start of buffer */
73 /* Allocate the output buffer --- it will be released when done with image */
74 dest->buffer = (JOCTET *)
78 dest->pub.next_output_byte = dest->buffer;
92 * Empty the output buffer --- called whenever buffer fills up.
94 * In typical applications, this should write the entire output buffer
96 * reset the pointer & count to the start of the buffer, and return TRUE
97 * indicating that the buffer has been dumped.
100 * overrun, a FALSE return indicates that the buffer cannot be emptied now.
104 * output buffer. Note that there are substantial restrictions on the use of
111 * write it out when emptying the buffer externally.
119 if (JFWRITE(dest->outfile, dest->buffer, OUTPUT_BUF_SIZE) !=
123 dest->pub.next_output_byte = dest->buffer;
137 /* Try to allocate new buffer with double size */
144 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
154 dest->buffer = nextbuffer;
164 * after all data has been written. Usually needs to flush buffer.
177 /* Write any data remaining in the buffer */
179 if (JFWRITE(dest->outfile, dest->buffer, datacount) != datacount)
194 *dest->outbuffer = dest->buffer;
238 * Prepare for output to a memory buffer.
239 * The caller may supply an own initial buffer with appropriate size.
241 * the library adapts the buffer size as necessary.
243 * larger memory, so the buffer is available to the application after
246 * Note: An initial buffer supplied by the caller is expected to be
247 * managed by the application. The library does not free such buffer
248 * when allocating a larger buffer.
261 * can be written to the same buffer without re-executing jpeg_mem_dest.
283 /* Allocate initial buffer */
290 dest->pub.next_output_byte = dest->buffer = *outbuffer;