jdatadst.c File Reference

#include "jinclude.h"
#include "jpeglib.h"
#include "jerror.h"

Go to the source code of this file.

Classes

struct  my_destination_mgr
struct  my_mem_destination_mgr

Defines

#define OUTPUT_BUF_SIZE   4096

Typedefs

typedef my_destination_mgrmy_dest_ptr
typedef my_mem_destination_mgrmy_mem_dest_ptr

Functions

 init_destination (j_compress_ptr cinfo)
 init_mem_destination (j_compress_ptr cinfo)
 empty_output_buffer (j_compress_ptr cinfo)
 empty_mem_output_buffer (j_compress_ptr cinfo)
 term_destination (j_compress_ptr cinfo)
 term_mem_destination (j_compress_ptr cinfo)
 jpeg_stdio_dest (j_compress_ptr cinfo, FILE *outfile)
 jpeg_mem_dest (j_compress_ptr cinfo, unsigned char **outbuffer, unsigned long *outsize)


Define Documentation

#define OUTPUT_BUF_SIZE   4096

Definition at line 40 of file jdatadst.c.

Referenced by empty_output_buffer(), init_destination(), jpeg_mem_dest(), and term_destination().


Typedef Documentation

typedef my_destination_mgr* my_dest_ptr

Definition at line 38 of file jdatadst.c.

typedef my_mem_destination_mgr* my_mem_dest_ptr

Definition at line 55 of file jdatadst.c.


Function Documentation

empty_mem_output_buffer ( j_compress_ptr  cinfo  ) 

Definition at line 123 of file jdatadst.c.

References my_mem_destination_mgr::buffer, my_mem_destination_mgr::bufsize, ERREXIT1, free(), jpeg_destination_mgr::free_in_buffer, JERR_OUT_OF_MEMORY, malloc(), MEMCOPY, my_mem_destination_mgr::newbuffer, jpeg_destination_mgr::next_output_byte, NULL, my_mem_destination_mgr::pub, size_t, and TRUE.

Referenced by jpeg_mem_dest().

empty_output_buffer ( j_compress_ptr  cinfo  ) 

Definition at line 108 of file jdatadst.c.

References my_destination_mgr::buffer, ERREXIT, jpeg_destination_mgr::free_in_buffer, if(), JFWRITE, jpeg_destination_mgr::next_output_byte, my_destination_mgr::outfile, OUTPUT_BUF_SIZE, my_destination_mgr::pub, size_t, and TRUE.

Referenced by jpeg_stdio_dest().

init_destination ( j_compress_ptr  cinfo  ) 

Definition at line 64 of file jdatadst.c.

References my_destination_mgr::buffer, jpeg_destination_mgr::free_in_buffer, JPOOL_IMAGE, jpeg_destination_mgr::next_output_byte, OUTPUT_BUF_SIZE, my_destination_mgr::pub, and SIZEOF.

Referenced by jpeg_stdio_dest().

init_mem_destination ( j_compress_ptr  cinfo  ) 

Definition at line 78 of file jdatadst.c.

Referenced by jpeg_mem_dest().

jpeg_mem_dest ( j_compress_ptr  cinfo,
unsigned char **  outbuffer,
unsigned long outsize 
)

Definition at line 232 of file jdatadst.c.

References my_mem_destination_mgr::buffer, my_mem_destination_mgr::bufsize, empty_mem_output_buffer(), ERREXIT, ERREXIT1, jpeg_destination_mgr::free_in_buffer, if(), init_mem_destination(), JERR_OUT_OF_MEMORY, JPOOL_PERMANENT, malloc(), my_mem_destination_mgr::newbuffer, jpeg_destination_mgr::next_output_byte, NULL, my_mem_destination_mgr::outbuffer, OUTPUT_BUF_SIZE, my_mem_destination_mgr::outsize, my_mem_destination_mgr::pub, SIZEOF, and term_mem_destination().

jpeg_stdio_dest ( j_compress_ptr  cinfo,
FILE *  outfile 
)

Definition at line 196 of file jdatadst.c.

References empty_output_buffer(), init_destination(), JPOOL_PERMANENT, NULL, my_destination_mgr::outfile, my_destination_mgr::pub, SIZEOF, and term_destination().

Referenced by ASImage2jpeg().

term_destination ( j_compress_ptr  cinfo  ) 

Definition at line 163 of file jdatadst.c.

References my_destination_mgr::buffer, ERREXIT, fflush(), jpeg_destination_mgr::free_in_buffer, if(), JFWRITE, my_destination_mgr::outfile, OUTPUT_BUF_SIZE, my_destination_mgr::pub, and size_t.

Referenced by jpeg_stdio_dest().

term_mem_destination ( j_compress_ptr  cinfo  ) 

Definition at line 180 of file jdatadst.c.

References my_mem_destination_mgr::buffer, my_mem_destination_mgr::bufsize, jpeg_destination_mgr::free_in_buffer, my_mem_destination_mgr::outbuffer, my_mem_destination_mgr::outsize, and my_mem_destination_mgr::pub.

Referenced by jpeg_mem_dest().


Generated on Tue Jul 5 15:57:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1