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

Classes

struct  BmpFileHeader
 
struct  BmpInfoHeader
 

Enumerations

enum  BmpFormat {
  BMP_RGB1 = 14, BMP_RGB4, BMP_RGB8, BMP_RGB555,
  BMP_BITFIELDS555, BMP_BITFIELDS32, BMP_RLE8, BMP_RLE4,
  BMP_BITFIELDS32V4, BMP_RGB24V5, BMP_NOTEXIST
}
 

Functions

struct
Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFileHeader 
__attribute__ ((__packed__))
 
template<typename T >
bool ReadHeader (FILE *fp, T &header)
 Template function to read from the file directly into our structure. More...
 
bool LoadBmpHeader (FILE *fp, unsigned int &width, unsigned int &height, BmpFileHeader &fileHeader, BmpInfoHeader &infoHeader)
 
bool DecodeRGB24V5 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown, unsigned int rowStride, unsigned int padding)
 function to decode format BI_RGB & bpp = 24 & bmp version5. More...
 
bool DecodeBF32V4 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown, unsigned int rowStride, unsigned int padding)
 function to decode format BI_BITFIELDS & bpp = 32 & bmp version4. More...
 
bool DecodeBF32 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown, unsigned int rowStride, unsigned int padding)
 function to decode format BI_BITFIELDS & bpp = 32 More...
 
bool DecodeBF565 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_BITFIELDS & bpp = 16 & R:G:B = 5:6:5 More...
 
bool DecodeBF555 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_BITFIELDS & bpp = 16 & R:G:B = 5:5:5 More...
 
bool DecodeRGB555 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 16 & R:G:B = 5:5:5 More...
 
bool DecodeRGB1 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 1 More...
 
bool DecodeRGB4 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 4 More...
 
bool DecodeRGB8 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 8 More...
 
bool DecodeRLE4 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RLE4 & bpp = 4 More...
 
bool DecodeRLE8 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RLE8 & bpp = 8 More...
 

Variables

const unsigned int FileHeaderOffsetOfBF32V4 = 0x7A
 
const unsigned int MaskForBFRGB565 = 0x80
 
const unsigned int FileHeaderOffsetOfRGB24V5 = 0x8A
 
enum
Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFormat 
__attribute__
 

Enumeration Type Documentation

enum Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFormat
Enumerator
BMP_RGB1 
BMP_RGB4 
BMP_RGB8 
BMP_RGB555 
BMP_BITFIELDS555 
BMP_BITFIELDS32 
BMP_RLE8 
BMP_RLE4 
BMP_BITFIELDS32V4 
BMP_RGB24V5 
BMP_NOTEXIST 

Definition at line 39 of file loader-bmp.cpp.

Function Documentation

struct Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFileHeader Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::__attribute__ ( (__packed__)  )
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown,
unsigned int  rowStride,
unsigned int  padding 
)

function to decode format BI_BITFIELDS & bpp = 32

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp image data
[in]topDownindicate image data is read from bottom or from top
[in]rowStridebits span for each line
[in]paddingpadded to a u_int32 boundary for each line
Returns
true, if decode successful, false otherwise

Definition at line 261 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32V4 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown,
unsigned int  rowStride,
unsigned int  padding 
)

function to decode format BI_BITFIELDS & bpp = 32 & bmp version4.

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp image data
[in]topDownindicate image data is read from bottom or from top
[in]rowStridebits span for each line
[in]paddingpadded to a u_int32 boundary for each line
Returns
true, if decode successful, false otherwise

Definition at line 194 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF555 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_BITFIELDS & bpp = 16 & R:G:B = 5:5:5

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp image data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 382 of file loader-bmp.cpp.

References DALI_LOG_ERROR, height, and width.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF565 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_BITFIELDS & bpp = 16 & R:G:B = 5:6:5

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp image data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 329 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB1 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_RGB & bpp = 1

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp palette data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 519 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB24V5 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown,
unsigned int  rowStride,
unsigned int  padding 
)

function to decode format BI_RGB & bpp = 24 & bmp version5.

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp image data
[in]topDownindicate image data is read from bottom or from top
[in]paddingpadded to a u_int32 boundary for each line
Returns
true, if decode successful, false otherwise

Definition at line 127 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB4 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_RGB & bpp = 4

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp palette data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 612 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB555 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_RGB & bpp = 16 & R:G:B = 5:5:5

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp image data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 452 of file loader-bmp.cpp.

References DALI_LOG_ERROR, height, and width.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB8 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_RGB & bpp = 8

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp palette data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 688 of file loader-bmp.cpp.

References DALI_LOG_ERROR, height, and width.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE4 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_RLE4 & bpp = 4

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp palette data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 760 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE8 ( FILE *  fp,
PixelBuffer pixels,
unsigned int  width,
unsigned int  height,
unsigned int  offset,
bool  topDown 
)

function to decode format BI_RLE8 & bpp = 8

Parameters
[in]fpThe file to read from
[out]pixelsThe pointer that we want to store bmp data in
[in]widthbmp width
[in]heightbmp height
[in]offsetoffset from bmp header to bmp palette data
[in]topDownindicate image data is read from bottom or from top
Returns
true, if decode successful, false otherwise

Definition at line 928 of file loader-bmp.cpp.

References DALI_LOG_ERROR, and height.

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

Here is the caller graph for this function:

bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::LoadBmpHeader ( FILE *  fp,
unsigned int &  width,
unsigned int &  height,
BmpFileHeader &  fileHeader,
BmpInfoHeader &  infoHeader 
)

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

References ReadHeader().

Here is the call graph for this function:

template<typename T >
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::ReadHeader ( FILE *  fp,
T &  header 
)
inline

Template function to read from the file directly into our structure.

Parameters
[in]fpThe file to read from
[out]headerThe structure we want to store our information in
Returns
true, if read successful, false otherwise

Definition at line 85 of file loader-bmp.cpp.

Referenced by LoadBmpHeader(), and Dali::TizenPlatform::anonymous_namespace{loader-ktx.cpp}::LoadKtxHeader().

Here is the caller graph for this function:

Variable Documentation

struct anonymous_namespace loader bmp Dali::TizenPlatform::cpp::BmpInfoHeader Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::__attribute__
const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::FileHeaderOffsetOfBF32V4 = 0x7A

Definition at line 35 of file loader-bmp.cpp.

const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::FileHeaderOffsetOfRGB24V5 = 0x8A

Definition at line 37 of file loader-bmp.cpp.

const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::MaskForBFRGB565 = 0x80

Definition at line 36 of file loader-bmp.cpp.

Dali Docs Home
Read more about Dali