Dali 3D User Interface Engine
Classes | Functions | Variables
Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp} Namespace Reference

Classes

struct  AutoCleanupGif
 
struct  AutoDeleteBuffer
 
struct  InterlacePair
 

Functions

const unsigned int INTERLACE_PAIR_TABLE_SIZE (sizeof(INTERLACE_PAIR_TABLE)/sizeof(InterlacePair))
 
int ReadDataFromGif (GifFileType *gifInfo, GifByteType *data, int length)
 Function used by Gif_Lib to read from the image file. More...
 
bool LoadGifHeader (FILE *fp, unsigned int &width, unsigned int &height, GifFileType **gifInfo)
 Loads the GIF Header. More...
 
bool DecodeImage (GifFileType *gifInfo, PixelBuffer *decodedData, const unsigned int width, const unsigned int height, const unsigned int bytesPerRow)
 Decode the GIF image. More...
 
GifColorType * GetImageColors (SavedImage *image, GifFileType *gifInfo)
 
bool HandleImageDescriptionRecordType (Bitmap &bitmap, GifFileType *gifInfo, unsigned int width, unsigned int height, bool &finished)
 Called when we want to handle IMAGE_DESC_RECORD_TYPE. More...
 
bool HandleExtensionRecordType (GifFileType *gifInfo)
 Called when we want to handle EXTENSION_RECORD_TYPE. More...
 

Variables

struct
Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::AutoCleanupGif 
__attribute__
 
const InterlacePair INTERLACE_PAIR_TABLE []
 

Function Documentation

bool Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::DecodeImage ( GifFileType *  gifInfo,
PixelBuffer decodedData,
const unsigned int  width,
const unsigned int  height,
const unsigned int  bytesPerRow 
)

Decode the GIF image.

Definition at line 143 of file loader-gif.cpp.

References DALI_LOG_ERROR, height, INTERLACE_PAIR_TABLE_SIZE(), and Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::InterlacePair::startingByte.

Referenced by HandleImageDescriptionRecordType().

Here is the call graph for this function:

Here is the caller graph for this function:

GifColorType* Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::GetImageColors ( SavedImage *  image,
GifFileType *  gifInfo 
)

Definition at line 182 of file loader-gif.cpp.

Referenced by HandleImageDescriptionRecordType().

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::HandleExtensionRecordType ( GifFileType *  gifInfo)

Called when we want to handle EXTENSION_RECORD_TYPE.

Definition at line 259 of file loader-gif.cpp.

References DALI_LOG_ERROR.

Referenced by Dali::TizenPlatform::LoadBitmapFromGif().

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::HandleImageDescriptionRecordType ( Bitmap &  bitmap,
GifFileType *  gifInfo,
unsigned int  width,
unsigned int  height,
bool &  finished 
)

Called when we want to handle IMAGE_DESC_RECORD_TYPE.

Definition at line 198 of file loader-gif.cpp.

References DALI_LOG_ERROR, DecodeImage(), GetImageColors(), and Dali::Pixel::RGB888.

Referenced by Dali::TizenPlatform::LoadBitmapFromGif().

Here is the call graph for this function:

Here is the caller graph for this function:

const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::INTERLACE_PAIR_TABLE_SIZE ( sizeof(INTERLACE_PAIR_TABLE)/sizeof(InterlacePair)  )

Referenced by DecodeImage().

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::LoadGifHeader ( FILE *  fp,
unsigned int &  width,
unsigned int &  height,
GifFileType **  gifInfo 
)

Loads the GIF Header.

Definition at line 114 of file loader-gif.cpp.

References DALI_LOG_ERROR, and ReadDataFromGif().

Here is the call graph for this function:

int Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::ReadDataFromGif ( GifFileType *  gifInfo,
GifByteType *  data,
int  length 
)

Function used by Gif_Lib to read from the image file.

Definition at line 107 of file loader-gif.cpp.

Referenced by LoadGifHeader().

Here is the caller graph for this function:

Variable Documentation

struct Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::AutoCleanupGif Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::__attribute__
const InterlacePair Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::INTERLACE_PAIR_TABLE[]
Initial value:
= {
{ 0, 8 },
{ 4, 8 },
{ 2, 4 },
{ 1, 2 },
}

Definition at line 98 of file loader-gif.cpp.

Dali Docs Home
Read more about Dali