OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimJpegMemDest.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // License: See top level LICENSE.txt file.
3 //
4 // Author: Oscar Kramer, original code from Thomas G. Lane
5 //
6 // Most of code and comments below are from jpeg-6b "example.c" file. See
7 // http://www4.cs.fau.de/Services/Doc/graphics/doc/jpeg/libjpeg.html
8 //
9 // Description:
10 // Code interfaces to use with jpeg-6b library to write a jpeg image from memory.
11 //----------------------------------------------------------------------------
12 // $Id$
13 #ifndef ossimJpegMemDest_HEADER
14 #define ossimJpegMemDest_HEADER 1
15 
17 #include <iosfwd> /* ostream& */
18 
19 // Forward declaration:
20 struct jpeg_compress_struct;
21 
22 #if 0 /* Avoiding jpeg library includes in header files. */
23 #include <ostream>
24 #include <cstdio>
25 #include <csetjmp>
26 extern "C"
27 {
28 #if defined(_MSC_VER) || defined(__MINGW32__)
29 # ifndef XMD_H
30 # define XMD_H
31 # endif
32 #endif
33 // #include <jpeglib.h> /** for jpeg stuff */
34 }
35 #endif /* End: #if 0 */
36 
41 // OSSIM_DLL void jpeg_cpp_stream_dest (j_compress_ptr cinfo, std::ostream& stream);
42 OSSIM_DLL void jpeg_cpp_stream_dest (jpeg_compress_struct* cinfo, std::ostream& stream);
43 
44 #endif /* #ifndef ossimJpegMemDest_HEADER */
#define OSSIM_DLL
OSSIM_DLL void jpeg_cpp_stream_dest(jpeg_compress_struct *cinfo, std::ostream &stream)
Method which uses memory instead of a FILE* to write to.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23