SILLY_ImageLoader(3)
| ImageLoader(3) | Simple Image Loading LibrarY | ImageLoader(3) |
NAME
ImageLoader - This is an abstract class that define the interface of all image loader.
SYNOPSIS
#include <SILLYImageLoader.h>
Inherited by JPGImageLoader, PNGImageLoader, and TGAImageLoader.
Public Member Functions
void destroyContext (ImageContext *context)
Destroy the image context. const char * getIdentifierString () const
Return the name of the loader. virtual ImageContext * loadHeader
(PixelFormat &formatSource, DataSource *data)=0
Parse the header of the image and fill the header struct. virtual bool
loadImageData (PixelOrigin origin, DataSource *data,
ImageContext *context)=0
Parse the pixels data of the image and fill the header struct. virtual
~ImageLoader ()
Destructor.
Protected Member Functions
ImageLoader (const char *name)
Constructor.
Detailed Description
This is an abstract class that define the interface of all image loader.
In order to add support for new image format one have to inherits this class and implement all required function.
Definition at line 46 of file SILLYImageLoader.h.
Member Function Documentation
void destroyContext (ImageContext * context)
Destroy the image context.
Parameters:
Definition at line 47 of file SILLYImageLoader.cpp.
virtual ImageContext* loadHeader (PixelFormat & formatSource, DataSource * data) [pure virtual]
Parse the header of the image and fill the header struct.
Parameters:
data the input of the image data
Returns:
Implemented in PNGImageLoader, TGAImageLoader, and JPGImageLoader.
virtual bool loadImageData (PixelOrigin origin, DataSource * data, ImageContext * context) [pure virtual]
Parse the pixels data of the image and fill the header struct.
Parameters:
data the input of the image data
context the data associated to the image parsing
Returns:
Implemented in PNGImageLoader, TGAImageLoader, and JPGImageLoader.
Author
Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code.
| Sat Mar 2 2019 | Version 0.1.0 |
