Lines Matching defs:buffer
40 unsigned char **outbuffer; /* target buffer */
42 unsigned char *newbuffer; /* newly allocated buffer */
43 JOCTET *buffer; /* start of buffer */
64 * Empty the output buffer --- called whenever buffer fills up.
66 * In typical applications, this should write the entire output buffer
68 * reset the pointer & count to the start of the buffer, and return TRUE
69 * indicating that the buffer has been dumped.
72 * overrun, a FALSE return indicates that the buffer cannot be emptied now.
76 * output buffer. Note that there are substantial restrictions on the use of
83 * write it out when emptying the buffer externally.
95 /* Try to allocate new buffer with double size */
102 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
112 dest->buffer = nextbuffer;
121 * after all data has been written. Usually needs to flush buffer.
133 if (dest->alloc) *dest->outbuffer = dest->buffer;
139 * Prepare for output to a memory buffer.
140 * The caller may supply an own initial buffer with appropriate size.
142 * the library adapts the buffer size as necessary.
144 * larger memory, so the buffer is available to the application after
161 * can be written to the same buffer without re-executing jpeg_mem_dest.
169 dest->buffer = NULL;
181 if (dest->buffer == *outbuffer && *outbuffer != NULL && alloc)
189 /* Allocate initial buffer */
198 dest->pub.next_output_byte = dest->buffer = *outbuffer;