Base class for all image decoders. More...
#include <Codec.hpp>
Public Member Functions | |
| virtual | ~Decoder () |
| A destructor. | |
| virtual ImageBufferBase * | loadImage (unsigned int tileExtent)=0 |
| Load an image. More... | |
| virtual ImageBufferBase * | loadImage (unsigned int tileExtent, PixelData format)=0 |
| Load an image using a specified format. More... | |
Protected Member Functions | |
| Decoder (const std::string fileName) | |
| Construct a new decoder. More... | |
Protected Attributes | |
| const std::string | m_fileName |
Base class for all image decoders.
All image decoders must inherit from this class.
|
protected |
Construct a new decoder.
| fileName | name of the file to be loaded. |
|
pure 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.
| tileExtent | tileExtent of the created ImageBuffer |
Implemented in FotoSHOCKcore::IO::JpgDecoder, FotoSHOCKcore::IO::PngDecoder, and FotoSHOCKcore::IO::ExrDecoder.
|
pure virtual |
Load an image using a specified format.
This overload tries to load an image into a buffer with the format format.
| tileExtent | tileExtent of the created ImageBuffer |
| format | the format of the returned buffer |
Implemented in FotoSHOCKcore::IO::JpgDecoder, FotoSHOCKcore::IO::PngDecoder, and FotoSHOCKcore::IO::ExrDecoder.
1.8.4