Base class for the image decoders. More...
#include <GUIImageDecoder.h>

Classes | |
| struct | SupportedImageTypes_t |
| Struct which holds the information about the supported image formats of the decoder. More... | |
Public Member Functions | |
| virtual | ~CGUIImageDecoder () |
| eC_TListDoubleLinked< eC_String > & | GetSupportedFileExtensions () |
| virtual eC_Bool | LoadImg (CGUIImageData &rkImageData, eC_File *pkImageFile)=0 |
Protected Member Functions | |
| CGUIImageDecoder () | |
| void | WriteConvertedColor (const eC_UInt &uiInputColor, const CGUICommonEnums::ImageType_t &eInputFormat, const CGUICommonEnums::ImageType_t &eOutputFormat, eC_UByte *pubData, eC_UInt &uiDataIndex, const eC_UByte &ubAdvance, const eC_UInt &uiCount=1) |
Protected Attributes | |
| eC_TListDoubleLinked< eC_String > | m_kSupportedFileExtensions |
| list of supported file-extensions | |
| SupportedImageTypes_t | m_kSupportedImageTypes [cuiNumOfImageTypes] |
| Array of supported image types. | |
Base class for the image decoders.
All decoder classes must be derived from this class.
|
virtual |
Virtual destructor.
|
protected |
Constructor of CGUIImageDecoder, which sets all supported image types to False.
| eC_TListDoubleLinked< eC_String > & CGUIImageDecoder::GetSupportedFileExtensions | ( | ) |
Get list of supported file-extensions
|
pure virtual |
Must be implemented in each derived class to decode an image.
| rkImageData | The decoded image has to be stored here by each derived implementation. |
| pkImageFile | Pointer to image file to load. |
Implemented in CGUIImageDecoderBLU, CGUIImageDecoderBMP, CGUIImageDecoderJPG, CGUIImageDecoderPNG, CGUIImageDecoderRAW, CGUIImageDecoderRLE, CGUIImageDecoderSVG, and CGUIImageDecoderWEBP.
|
protected |
Convert a color from input-format to output-format and write the result to a given memory location
| uiInputColor | input-color |
| eInputFormat | input-format |
| eOutputFormat | output-format |
| pubData | pointer to data |
| uiDataIndex | index of destination location |
| ubAdvance | number of bytes to advance if there was a conversion error |
| uiCount | count of data to write (e.g. for RLE) |