/** @file * Header file for GEL structure definition. * * @author mandy.wu 2010/03/31 * @version 0.1 */ #ifndef __GEL_STRUCT__ #define __GEL_STRUCT__ #include "gui_eng/stddefs.h" typedef INT32 GEL_RgnHandle_t; typedef UINT8 GEL_AAEntry_t; /** Structure of color with RGBA. Color index used by LUT8/LUT4 should be filled in 'a' member. */ typedef struct { UINT8 r; UINT8 g; UINT8 b; UINT8 a; } GEL_Color_t; /** Types of pixel format. */ typedef enum { GEL_PF_RGB16, /**< 16 bit RGB (2 byte, red 5\@11, green 6\@5, blue 5\@0) */ GEL_PF_RGB32, /**< 24 bit RGB (4 byte, nothing\@24, red 8\@16, green 8\@8, blue 8\@0) */ GEL_PF_ARGB8565, /**< 24 bit RGB (4 byte, nothing\@24, red 8\@16, green 8\@8, blue 8\@0) */ GEL_PF_ARGB4444, /**< 16 bit ARGB (2 byte, alpha 4\@12, red 4\@8, green 4\@4, blue 4\@0) */ GEL_PF_ARGB1555, /**< 16 bit ARGB (2 byte, alpha 1\@15, red 5\@10, green 5\@5, blue 5\@0) */ GEL_PF_ARGB, /**< 32 bit ARGB (4 byte, alpha 8\@24, red 8\@16, green 8\@8, blue 8\@0) */ GEL_PF_LUT8, /**< 8 bit LUT (8 bit color and alpha lookup from a palette) */ GEL_PF_LUT4, /**< 4 bit LUT (4 bit color and alpha lookup from a palette) */ GEL_PF_LAST } GEL_PixelFormat_e; /** Structure of an entry of palette. */ typedef struct { UINT8 a; UINT8 r; UINT8 g; UINT8 b; } GEL_Palette_t; /** Structure of bitmap handle. */ typedef struct { void *pAddr; /**< pointer to the bitmap data */ GEL_Palette_t *pPal; /**< pointer to a palette for the bmp */ UINT16 wWidth; /**< bmp width in pixels */ UINT16 wHeight; /**< bmp height in pixels */ GEL_PixelFormat_e eFormat; /**< pixel format of the bmp, see GEL_PixelFormat_e */ UINT16 wPalFirst; /**< the start index of a palette to reference by the bitmap */ UINT16 wColCount; /**< the color count to describe a bitmap */ } GEL_BitmapHandle_t; /** Layers support for GUI engine. */ typedef enum { GEL_ICON_ROTATE_NONE = 0x0, GEL_ICON_ROTATE_90 = 0x1, GEL_ICON_ROTATE_180 = 0x2, GEL_ICON_ROTATE_270 = 0x4, GEL_ICON_MIRROR = 0x10, GEL_ICON_FLIP = 0x20, } GEL_IconRotate_e; typedef enum { GPU_DRAM_A = 0, GPU_DRAM_B = 1 } GPUDramSel_e; #endif /* __GEL_STRUCT__ */