Guiliani  Version 2.5 revision 7293 (documentation build 13)
CGUIImageLoader Class Reference

Manages a list of instances of CGUIImageDecoder. More...

#include <GUIImageLoader.h>

Public Member Functions

void AddDecoder (CGUIImageDecoder *pImageDecoder)
 
void AddSupportedFileExtensions (eC_TListDoubleLinked< eC_String > &kExtensions)
 
eC_Bool LoadImg (CGUIImageData &pImageData, const eC_String &kFilePath)
 

Static Public Member Functions

static void CreateInstance ()
 
static void DeleteInstance ()
 

Friends

class CGUIComponentManager
 

Detailed Description

Manages a list of instances of CGUIImageDecoder.

Each decoder decides on its own if it matches the file format. The decoders will also be sorted by an access counter in order to speed up access time to the most used decoders.

Member Function Documentation

◆ AddDecoder()

void CGUIImageLoader::AddDecoder ( CGUIImageDecoder pImageDecoder)

Adds a decoder to the sorted list of accessible decoders.

Parameters
pImageDecoderPointer to decoder to add.

◆ AddSupportedFileExtensions()

void CGUIImageLoader::AddSupportedFileExtensions ( eC_TListDoubleLinked< eC_String > &  kExtensions)

Adds all supported filetypes for all registered decoders

Parameters
kExtensionsstringlist containing file-extensions

◆ CreateInstance()

static void CGUIImageLoader::CreateInstance ( )
static

Create Instance

◆ DeleteInstance()

static void CGUIImageLoader::DeleteInstance ( )
static

Delete Instance

◆ LoadImg()

eC_Bool CGUIImageLoader::LoadImg ( CGUIImageData pImageData,
const eC_String &  kFilePath 
)

Method for loading an image. Decoders in the list will be requested to decode the file. The first one, which decodes the file will be used and no other decoder will be called.

Parameters
pImageDataPointer to the CGUIImageData object, which will include the image information.
kFilePathPath to the image file.
Returns
False if load fails.

Friends And Related Function Documentation

◆ CGUIComponentManager

friend class CGUIComponentManager
friend

The documentation for this class was generated from the following file: