core/vil1/file_formats/vil1_jpeg_source_mgr.h

Go to the documentation of this file.
00001 // This is core/vil1/file_formats/vil1_jpeg_source_mgr.h
00002 #ifndef vil1_jpeg_source_mgr_h_
00003 #define vil1_jpeg_source_mgr_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author fsm
00010 
00011 #include <vil1/vil1_jpeglib.h>
00012 class vil1_stream;
00013 
00014 //: this is the data source structure which allows JPEG to read from a vil1_stream.
00015 struct vil1_jpeg_stream_source_mgr
00016 {
00017   struct jpeg_source_mgr base;
00018 
00019   vil1_stream *stream;           /* source stream */
00020   JOCTET * buffer;              /* start of buffer */
00021   jpeg_boolean start_of_file;   /* have we gotten any data yet? */
00022 };
00023 
00024 void
00025 vil1_jpeg_init_source (j_decompress_ptr cinfo);
00026 
00027 jpeg_boolean
00028 vil1_jpeg_fill_input_buffer (j_decompress_ptr cinfo);
00029 
00030 void
00031 vil1_jpeg_skip_input_data (j_decompress_ptr cinfo, long num_bytes);
00032 
00033 void
00034 vil1_jpeg_term_source (j_decompress_ptr cinfo);
00035 
00036 void
00037 vil1_jpeg_stream_src_set (j_decompress_ptr cinfo, vil1_stream *vs);
00038 
00039 void
00040 vil1_jpeg_stream_src_rewind(j_decompress_ptr cinfo, vil1_stream *vs);
00041 
00042 #endif // vil1_jpeg_source_mgr_h_

Generated on Mon Mar 8 05:09:32 2010 for core/vil1 by  doxygen 1.5.1