vil_jpeg_destination_mgr.h
Go to the documentation of this file.
1 // This is core/vil/file_formats/vil_jpeg_destination_mgr.h
2 #ifndef vil_jpeg_destination_mgr_h_
3 #define vil_jpeg_destination_mgr_h_
4 //:
5 // \file
6 // \author fsm
7 // \verbatim
8 // Modifications
9 // 11 Oct 2002 Ian Scott - converted to vil
10 //\endverbatim
11 
13 class vil_stream;
14 
15 //: this is the data source structure which allows JPEG to write to a vil_stream.
17 {
18  struct jpeg_destination_mgr base;
19 
20  vil_stream *stream; /* target stream */
21  JOCTET * buffer; /* start of buffer */
22 };
23 
24 void
25 vil_jpeg_init_destination (j_compress_ptr cinfo);
26 
27 jpeg_boolean
28 vil_jpeg_empty_output_buffer (j_compress_ptr cinfo);
29 
30 void
31 vil_jpeg_term_destination (j_compress_ptr cinfo);
32 
33 void
34 vil_jpeg_stream_dst_set (j_compress_ptr cinfo, vil_stream *vs);
35 
36 void
37 vil_jpeg_stream_dst_rewind(j_compress_ptr cinfo, vil_stream *vs);
38 
39 #endif // vil_jpeg_destination_mgr_h_
void vil_jpeg_init_destination(j_compress_ptr cinfo)
struct jpeg_destination_mgr base
void vil_jpeg_stream_dst_rewind(j_compress_ptr cinfo, vil_stream *vs)
void vil_jpeg_stream_dst_set(j_compress_ptr cinfo, vil_stream *vs)
Prepare for output to a vil_stream.
void vil_jpeg_term_destination(j_compress_ptr cinfo)
Terminate destination — called by jpeg_finish_compress after all data has been written....
Stream interface for VIL image loaders.
Definition: vil_stream.h:21
jpeg_boolean vil_jpeg_empty_output_buffer(j_compress_ptr cinfo)
Empty the output buffer — called whenever buffer fills up.
this is the data source structure which allows JPEG to write to a vil_stream.
Stuff for jpeg I/O.