OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimJpegMemSrc12.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 //
8 // Code interfaces to use with jpeg-6b library to read a jpeg image from
9 // memory. Specialized for 12 bit compiled jpeg library.
10 //----------------------------------------------------------------------------
11 // $Id$
12 #ifndef ossimJpegMemSrc12_HEADER
13 #define ossimJpegMemSrc12_HEADER 1
14 
16 #include <cstdlib>
18 // Forword declarations to avoid jpeg includes in the header.
19 struct jpeg12_decompress_struct;
20 
21 extern "C"
22 {
27 OSSIM_DLL void ossimJpegMemorySrc12 ( jpeg12_decompress_struct* cinfo,
28  const ossim_uint8* buffer,
29  std::size_t bufsize );
30 }
31 
32 #endif /* #ifndef ossimJpegMemSrc12_HEADER */
#define OSSIM_DLL
OSSIM_DLL void ossimJpegMemorySrc12(jpeg12_decompress_struct *cinfo, const ossim_uint8 *buffer, std::size_t bufsize)
Method which uses memory instead of a FILE* to read from.
unsigned char ossim_uint8