Codec specialized in loading OpenEXR high dynamic range images.
More...
#include <OgreEXRCodec.h>
Codec specialized in loading OpenEXR high dynamic range images.
◆ EXRCodec()
Ogre::EXRCodec::EXRCodec |
( |
| ) |
|
◆ ~EXRCodec()
virtual Ogre::EXRCodec::~EXRCodec |
( |
| ) |
|
|
virtual |
◆ code()
Codes the data in the input stream and saves the result in the output stream.
◆ codeToFile()
Codes the data in the input chunk and saves the result in the output filename provided.
Provided for efficiency since coding to memory is progressive therefore memory required is unknown leading to reallocations.
- Parameters
-
input | The input data |
outFileName | The filename to write to |
pData | Extra information to be passed to the codec (codec type specific) |
◆ decode()
DecodeResult Ogre::EXRCodec::decode |
( |
DataStreamPtr & |
input | ) |
const |
Codes the data from the input chunk into the output chunk.
- Parameters
-
input | Stream containing the encoded data |
◆ getType()
String Ogre::EXRCodec::getType |
( |
| ) |
const |
◆ magicNumberToFileExt()
String Ogre::EXRCodec::magicNumberToFileExt |
( |
const char * |
magicNumberPtr, |
|
|
size_t |
maxbytes |
|
) |
| const |
Maps a magic number header to a file extension, if this codec recognises it.
- Parameters
-
magicNumberPtr | Pointer to a stream of bytes which should identify the file. Note that this may be more than needed - each codec may be looking for a different size magic number. |
maxbytes | The number of bytes passed |
- Returns
- A blank string if the magic number was unknown, or a file extension.
The documentation for this class was generated from the following file: