40#define OUTPUT_BUF_SIZE 4096
69 dest->buffer = (
JOCTET *) (*cinfo->mem->alloc_small)
72 dest->pub.next_output_byte =
dest->buffer;
113 ERREXIT(cinfo, JERR_FILE_WRITE);
115 dest->pub.next_output_byte =
dest->buffer;
129 nextsize =
dest->bufsize * 2;
132 if (nextbuffer ==
NULL)
133 ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 11);
140 dest->newbuffer = nextbuffer;
142 dest->pub.next_output_byte = nextbuffer +
dest->bufsize;
143 dest->pub.free_in_buffer =
dest->bufsize;
145 dest->buffer = nextbuffer;
146 dest->bufsize = nextsize;
170 ERREXIT(cinfo, JERR_FILE_WRITE);
175 ERREXIT(cinfo, JERR_FILE_WRITE);
184 *
dest->outsize =
dest->bufsize -
dest->pub.free_in_buffer;
205 if (cinfo->dest ==
NULL) {
239 ERREXIT(cinfo, JERR_BUFFER_SIZE);
244 if (cinfo->dest ==
NULL) {
261 ERREXIT1(cinfo, JERR_OUT_OF_MEMORY, 10);
term_mem_destination(j_compress_ptr cinfo)
term_destination(j_compress_ptr cinfo)
init_mem_destination(j_compress_ptr cinfo)
empty_mem_output_buffer(j_compress_ptr cinfo)
jpeg_mem_dest(j_compress_ptr cinfo, unsigned char **outbuffer, size_t *outsize)
my_destination_mgr * my_dest_ptr
init_destination(j_compress_ptr cinfo)
my_mem_destination_mgr * my_mem_dest_ptr
jpeg_stdio_dest(j_compress_ptr cinfo, FILE *outfile)
empty_output_buffer(j_compress_ptr cinfo)
#define ERREXIT1(cinfo, code, p1)
#define MEMCOPY(dest, src, size)
#define JFWRITE(file, buf, sizeofbuf)
struct jpeg_common_struct * j_common_ptr
unsigned char ** outbuffer
unsigned char size_t * outsize
unsigned char ** outbuffer
unsigned char * newbuffer