24 struct jpeg_destination_mgr pub;
29 #define OUTPUT_BUF_SIZE 4096 37 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
OUTPUT_BUF_SIZE *
sizeof(JOCTET));
39 dest->
pub.next_output_byte = dest->
buffer;
48 dest->
pub.next_output_byte = dest->
buffer;
74 if (cinfo->dest == NULL)
75 cinfo->dest = (
struct jpeg_destination_mgr *) malloc (
sizeof(
cpp_dest_mgr));
void jpeg_cpp_stream_dest(jpeg_compress_struct *cinfo, std::ostream &stream)
Method which uses memory instead of a FILE* to write to.
void init_destination(j_compress_ptr cinfo)
struct jpeg_destination_mgr pub
boolean empty_output_buffer(j_compress_ptr cinfo)
void term_destination(j_compress_ptr cinfo)
std::basic_ostream< char > ostream
Base class for char output streams.