Dali 3D User Interface Engine
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
loader-ico.cpp File Reference
#include "loader-ico.h"
#include <cstring>
#include <dali/public-api/common/dali-vector.h>
#include <dali/integration-api/debug.h>
#include <dali/integration-api/bitmap.h>
Include dependency graph for loader-ico.cpp:

Go to the source code of this file.

Classes

struct  Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::IcoData
 

Namespaces

namespace  Dali
 The top level DALi namespace.
 
namespace  Dali::TizenPlatform
 
namespace  Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}
 

Macros

#define A_VAL(p)   (((DATA8 *)(p))[3])
 
#define RGB_JOIN(r, g, b)   (((r) << 16) + ((g) << 8) + (b))
 
#define ARGB_JOIN(a, r, g, b)   (((a) << 24) + ((r) << 16) + ((g) << 8) + (b))
 
#define IMG_TOO_BIG(w, h)
 

Typedefs

typedef unsigned char Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::DATA8
 

Enumerations

enum  { Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::SMALLEST, Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::BIGGEST, Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::SMALLER, Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::BIGGER }
 
enum  { Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::ICON = 1, Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::CURSOR = 2 }
 

Functions

bool Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::read_ushort (unsigned char *map, size_t length, size_t *position, unsigned short *ret)
 
bool Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::read_uint (unsigned char *map, size_t length, size_t *position, unsigned int *ret)
 
bool Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::read_uchar (unsigned char *map, size_t length, size_t *position, unsigned char *ret)
 
bool Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::read_mem (unsigned char *map, size_t length, size_t *position, void *buffer, int size)
 
bool Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::LoadIcoHeaderHelper (FILE *fp, IcoData &chosen, Dali::Vector< unsigned char > &map, unsigned int &fsize)
 
bool Dali::TizenPlatform::LoadIcoHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 
bool Dali::TizenPlatform::LoadBitmapFromIco (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 

Variables

const unsigned char Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::ICO_FILE_HEADER = 22
 
const unsigned char Dali::TizenPlatform::anonymous_namespace{loader-ico.cpp}::ICO_IMAGE_INFO_HEADER = 40
 

Macro Definition Documentation

#define A_VAL (   p)    (((DATA8 *)(p))[3])

Definition at line 79 of file loader-ico.cpp.

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

#define ARGB_JOIN (   a,
  r,
  g,
  b 
)    (((a) << 24) + ((r) << 16) + ((g) << 8) + (b))
#define IMG_TOO_BIG (   w,
 
)
Value:
((((unsigned long long)w) * ((unsigned long long)h)) >= \
((1ULL << (29 * (sizeof(void *) / 4))) - 2048))

Definition at line 86 of file loader-ico.cpp.

#define RGB_JOIN (   r,
  g,
  b 
)    (((r) << 16) + ((g) << 8) + (b))

Definition at line 81 of file loader-ico.cpp.

Dali Docs Home
Read more about Dali