OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimJpegMemSrc.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // License: See top level LICENSE.txt file.
3 //
4 // Author: David Burken, original code from Thomas G. Lane
5 //
6 // Description:
7 // Code interfaces to use with jpeg-6b library to read a jpeg image from
8 // memory.
9 //----------------------------------------------------------------------------
10 // $Id$
11 #ifndef ossimJpegMemSrc_HEADER
12 #define ossimJpegMemSrc_HEADER 1
13 
15 #include <cstdlib> /* size_t */
16 
17 // Forward declaration:
18 struct jpeg_common_struct;
19 struct jpeg_decompress_struct;
20 
21 extern "C"
22 {
23 
27 OSSIM_DLL void ossimJpegErrorExit (jpeg_common_struct* cinfo);
28 
34 OSSIM_DLL void ossimJpegMemorySrc (jpeg_decompress_struct* cinfo,
35  const ossim_uint8* buffer,
36  std::size_t bufsize);
37 }
38 #endif /* #ifndef ossimJpegMemSrc_HEADER */
OSSIM_DLL void ossimJpegMemorySrc(jpeg_decompress_struct *cinfo, const ossim_uint8 *buffer, std::size_t bufsize)
Method which uses memory instead of a FILE* to read from.
#define OSSIM_DLL
unsigned char ossim_uint8
OSSIM_DLL void ossimJpegErrorExit(jpeg_common_struct *cinfo)
Error routine that will replace jpeg&#39;s standard error_exit method.