Simple Image Loading LibrarY 0.1.0
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
JPGImageContext Class Reference

Image Context for JPG image loader. More...

#include <SILLYJPGImageContext.h>

Inheritance diagram for JPGImageContext:
Inheritance graph
[legend]
Collaboration diagram for JPGImageContext:
Collaboration graph
[legend]

Public Member Functions

bool flipVertically ()
 Flip pixel ordering.
 
size_t getHeight () const
 
PixelFormat getPixelFormat () const
 
size_t getWidth () const
 
void setDestination (byte *pixels, size_t length, PixelFormat format)
 Set the destination of the loading.
 
void setImageSize ()
 
void setNextPixel (byte red, byte green, byte bleu, byte alpha)
 Set the next pixel of the image.
 

Public Attributes

jpeg_decompress_struct cinfo
 
jpeg_error_mgr d_error_mgr
 
DataSourced_source
 
jmp_buf setjmp_buffer
 
jpeg_source_mgr src_mgr
 

Protected Member Functions

void setHeight (size_t height)
 
void setWidth (size_t width)
 

Detailed Description

Image Context for JPG image loader.

Most of the code of this loader is taken from Corona and adapted to our image loading framework

Multiple loading is not handle yet.

Definition at line 56 of file SILLYJPGImageContext.h.

Constructor & Destructor Documentation

◆ JPGImageContext()

Definition at line 90 of file SILLYJPGImageContext.cpp.

◆ ~JPGImageContext()

Definition at line 109 of file SILLYJPGImageContext.cpp.

Member Function Documentation

◆ flipVertically()

bool flipVertically ( )
inherited

Flip pixel ordering.

Returns
true on success false otherwise

Definition at line 45 of file SILLYImageContext.cpp.

◆ setImageSize()

void setImageSize ( )

Definition at line 115 of file SILLYJPGImageContext.cpp.

Member Data Documentation

◆ cinfo

jpeg_decompress_struct cinfo

Definition at line 66 of file SILLYJPGImageContext.h.

◆ d_error_mgr

jpeg_error_mgr d_error_mgr

Definition at line 68 of file SILLYJPGImageContext.h.

◆ d_source

DataSource* d_source

Definition at line 70 of file SILLYJPGImageContext.h.

◆ setjmp_buffer

jmp_buf setjmp_buffer

Definition at line 69 of file SILLYJPGImageContext.h.

◆ src_mgr

jpeg_source_mgr src_mgr

Definition at line 65 of file SILLYJPGImageContext.h.


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