#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. | |
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. | |
virtual CodecData * | decode (const DataChunk &input, DataChunk *output,...) const=0 |
Codes the data from the input chunk into the output chunk. | |
virtual String | getType () const=0 |
Returns the type of the codec as a String. | |
Static Public Methods | |
void | registerCodec (Codec *pCodec) |
Registers a new codec in the database. | |
Codec * | getCodec (const String &extension) |
Gets the codec registered for the passed in file extension. | |
Protected Types | |
typedef std::map< String, Codec * > | CodecList |
Static Protected Attributes | |
CodecList | ms_mapCodecs |
A map that contains all the registered codecs. |
The codec concept is a pretty generic one - you can easily understand how it can be used for images, sounds, archives, even compressed data.
Definition at line 41 of file OgreCodec.h.
|
Definition at line 44 of file OgreCodec.h. |
|
Codes the data in the input chunk and saves the result in the output chunk.
Implemented in Ogre::BMPCodec, Ogre::DDSCodec, Ogre::ILImageCodec, Ogre::ImageCodec, Ogre::JPEGCodec, Ogre::PNGCodec, and Ogre::TGACodec. |
|
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::ILImageCodec, and Ogre::ImageCodec. Referenced by Ogre::Win32Window::writeContentsToFile(), Ogre::SDLWindow::writeContentsToFile(), Ogre::D3D9RenderWindow::writeContentsToFile(), and Ogre::D3D7RenderWindow::writeContentsToFile(). |
|
Codes the data from the input chunk into the output chunk.
Implemented in Ogre::BMPCodec, Ogre::DDSCodec, Ogre::ILImageCodec, Ogre::ImageCodec, Ogre::JPEGCodec, and Ogre::TGACodec. Referenced by Ogre::Image::load(). |
|
Gets the codec registered for the passed in file extension.
Definition at line 35 of file OgreCodec.cpp. References Except, ms_mapCodecs, and Ogre::String::toLowerCase(). |
|
Returns the type of the codec as a String.
Implemented in Ogre::BMPCodec, Ogre::DDSCodec, Ogre::ILImageCodec, Ogre::ImageCodec, Ogre::JPEGCodec, Ogre::JPGCodec, Ogre::PNGCodec, and Ogre::TGACodec. Referenced by registerCodec(). |
|
Registers a new codec in the database.
Definition at line 63 of file OgreCodec.h. References getType(). |
|
A map that contains all the registered codecs.
Definition at line 32 of file OgreCodec.cpp. Referenced by getCodec(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:25:57 2004