30#ifndef _SILLYImageLoader_h_
31#define _SILLYImageLoader_h_
109#ifdef SILLY_OPT_INLINE
110#include "SILLYImageLoader.icpp"
Simple Image Loading LibrarY namespace.
PixelFormat
List all pixel format supported.
PixelOrigin
List all pixel origin supported.
This is an abstract class used to provide data to the loader.
Store the data needed by an ImageLoader object during the parsing of an image.
ImageLoader(const char *name)
Constructor.
void destroyContext(ImageContext *context)
Destroy the image context.
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.
const char * getIdentifierString() const
Return the name of the loader.