JPGImageLoader Class Reference

Loader class for JPG Image. More...

#include <SILLYJPGImageLoader.h>

Inheritance diagram for JPGImageLoader:

Inheritance graph
[legend]
Collaboration diagram for JPGImageLoader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void destroyContext (ImageContext *context)
 Destroy the image context.
const char * getIdentifierString () const
 Return the name of the loader.
 JPGImageLoader ()
ImageContextloadHeader (PixelFormat &header, DataSource *data)
 Parse the header of the image and fill the header struct.
bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)
 Parse the pixels data of the image and fill the header struct.
 ~JPGImageLoader ()

Detailed Description

Loader class for JPG Image.

Definition at line 42 of file SILLYJPGImageLoader.h.


Member Function Documentation

void destroyContext ( ImageContext context  )  [inherited]

Destroy the image context.

Parameters:
context a pointer to the context

Definition at line 47 of file SILLYImageLoader.cpp.

ImageContext * loadHeader ( PixelFormat formatSource,
DataSource data 
) [virtual]

Parse the header of the image and fill the header struct.

Parameters:
formatSource this var should contains the pixel format used to store the image initialy
data the input of the image data
Returns:
Context for the rest of the parsing or 0 if an error occured

Implements ImageLoader.

Definition at line 56 of file SILLYJPGImageLoader.cpp.

bool loadImageData ( PixelOrigin  origin,
DataSource data,
ImageContext context 
) [virtual]

Parse the pixels data of the image and fill the header struct.

Parameters:
origin the layout of the pixel in the resulting pixel array
data the input of the image data
context the data associated to the image parsing
Returns:
true on success false on error

Implements ImageLoader.

Definition at line 90 of file SILLYJPGImageLoader.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Apr 6 14:47:08 2008 for Simple Image Loading LibrarY by  doxygen 1.5.2