FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
FotoSHOCKcore::IO::ExrDecoder Class Reference
Inheritance diagram for FotoSHOCKcore::IO::ExrDecoder:
FotoSHOCKcore::IO::Decoder

Public Member Functions

 ExrDecoder (const std::string fileName)
 
virtual ImageBufferBaseloadImage (unsigned int tileExtent)
 Load an image. More...
 
virtual ImageBufferBaseloadImage (unsigned int tileExtent, PixelData format)
 Load an image using a specified format. More...
 
- Public Member Functions inherited from FotoSHOCKcore::IO::Decoder
virtual ~Decoder ()
 A destructor.
 

Static Public Member Functions

static bool canDecode (const std::string fileName)
 

Additional Inherited Members

- Protected Member Functions inherited from FotoSHOCKcore::IO::Decoder
 Decoder (const std::string fileName)
 Construct a new decoder. More...
 
- Protected Attributes inherited from FotoSHOCKcore::IO::Decoder
const std::string m_fileName
 

Member Function Documentation

ImageBufferBase * FotoSHOCKcore::IO::ExrDecoder::loadImage ( unsigned int  tileExtent)
virtual

Load an image.

This function loads an image into an ImageBuffer with the specified tileExtent. The format of ImageBuffer is guessed from the input file.

Parameters
tileExtenttileExtent of the created ImageBuffer
Returns
pointer to dynamically allocated ImageBufferBase object containing the image

Implements FotoSHOCKcore::IO::Decoder.

ImageBufferBase * FotoSHOCKcore::IO::ExrDecoder::loadImage ( unsigned int  tileExtent,
PixelData  format 
)
virtual

Load an image using a specified format.

This overload tries to load an image into a buffer with the format format.

Parameters
tileExtenttileExtent of the created ImageBuffer
formatthe format of the returned buffer
Returns
pointer to dynamically allocated ImageBufferBase object containing the image

Implements FotoSHOCKcore::IO::Decoder.


The documentation for this class was generated from the following files: