#include <OgreCodec.h>
Inheritance diagram for Ogre::Codec:
Public Methods | |
virtual void | code (const DataChunk &input, DataChunk *output,...) const=0 |
Codes the data in the input chunk and saves the result in the output chunk. More... | |
virtual void | codeToFile (const DataChunk &input, const String &outFileName, CodecData *pData) const=0 |
Codes the data in the input chunk and saves the result in the output filename provided. More... | |
virtual CodecData * | decode (const DataChunk &input, DataChunk *output,...) const=0 |
Codes the data from the input chunk into the output chunk. More... | |
virtual String | getType () const=0 |
Returns the type of the codec as a String. More... | |
Static Public Methods | |
void | registerCodec (Codec *pCodec) |
Registers a new codec in the database. More... | |
Codec * | getCodec (const String &extension) |
Gets the codec registered for the passed in file extension. More... | |
Protected Types | |
typedef std::map< String, Codec * > | CodecList |
Static Protected Attributes | |
CodecList | ms_mapCodecs |
A map that contains all the registered codecs. More... |
The codec concept is a pretty generic one - you can easily understand how it can be used for images, sounds, archives, even compressed data.
|
|
|
Codes the data in the input chunk and saves the result in the output chunk.
Implemented in Ogre::ImageCodec. |
|
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.
Implemented in Ogre::ImageCodec. |
|
Codes the data from the input chunk into the output chunk.
Implemented in Ogre::ImageCodec. |
|
Gets the codec registered for the passed in file extension.
|
|
Returns the type of the codec as a String.
Implemented in Ogre::ImageCodec. |
|
Registers a new codec in the database.
|
|
A map that contains all the registered codecs.
|
Copyright © 2002 by The OGRE Team