39 #include <jpeg12/jpeglib.h> 40 #include <jpeg12/jerror.h> 47 struct jpeg12_source_mgr
pub;
83 WARNMS(cinfo, JWRN_JPEG_EOF);
89 src->
pub.bytes_in_buffer = 2;
109 while (num_bytes > (
long) src->
pub.bytes_in_buffer)
111 num_bytes -= (long) src->
pub.bytes_in_buffer;
117 src->
pub.next_input_byte += (size_t) num_bytes;
118 src->
pub.bytes_in_buffer -= (size_t) num_bytes;
161 if (cinfo->src == NULL)
163 cinfo->src = (
struct jpeg12_source_mgr *)
164 (*cinfo->mem->alloc_small) ((j12_common_ptr) cinfo, JPOOL_PERMANENT,
172 src->
pub.resync_to_restart = jpeg12_resync_to_restart;
175 src->
pub.next_input_byte = buffer;
176 src->
pub.bytes_in_buffer = bufsize;
void init_source12(j12_decompress_ptr)
boolean fill_input_buffer12(j12_decompress_ptr cinfo)
void ossimJpegMemorySrc12(j12_decompress_ptr cinfo, const ossim_uint8 *buffer, std::size_t bufsize)
void term_source12(j12_decompress_ptr)
void skip_input_data12(j12_decompress_ptr cinfo, long num_bytes)
struct jpeg12_source_mgr pub
ossimJpegSourceMgr12 * ossimJpegSourceMgrPtr12
jpeg library includes missing dependent includes.
unsigned char ossim_uint8