46 #ifndef __D4D_IMGDEC_D4DINT_H
47 #define __D4D_IMGDEC_D4DINT_H
52 #define GET_DATA_BYTE(pBmp_dec, inc) ((GET_DATA_BYTE_FUNC)pBmp_dec->GetDataFunc)(pBmp_dec, inc)
53 #define GET_DATA_WORD(pBmp_dec, inc) ((GET_DATA_WORD_FUNC)pBmp_dec->GetDataFunc)(pBmp_dec, inc)
54 #define GET_DATA_LONG(pBmp_dec, inc) ((GET_DATA_LONG_FUNC)pBmp_dec->GetDataFunc)(pBmp_dec, inc)
57 #define D4D_IMG_HEADER_2_KEY_D4DINT 0x50455452
60 #define D4D_BMP_COMPRESS_MASK 0x00000001
62 #define D4D_BMP_COMPRESSED 0x00000001
63 #define D4D_BMP_UNCOMPRESSED 0x00000000
65 #define D4D_BMP_TYPE_MASK 0x0000001E
67 #define D4D_BMP_16MNOPAL 0x00000014
68 #define D4D_BMP_256KNOPAL 0x00000012
69 #define D4D_BMP_65536NOPAL 0x00000000
70 #define D4D_BMP_4096NOPAL 0x00000002
71 #define D4D_BMP_256NOPAL 0x00000004
74 #define D4D_BMP_PAL256_32 0x00000006
75 #define D4D_BMP_PAL16_8 0x00000008
76 #define D4D_BMP_PAL4 0x0000000A
77 #define D4D_BMP_PAL2 0x0000000C
78 #define D4D_BMP_MON_VER 0x00000010
80 #define D4D_BMP_CLR_DEPTH_MASK 0x00000700
82 #define D4D_BMP_CLR_DEPTH256 0x00000000
83 #define D4D_BMP_CLR_DEPTH128 0x00000100
84 #define D4D_BMP_CLR_DEPTH64 0x00000200
85 #define D4D_BMP_CLR_DEPTH32 0x00000300
86 #define D4D_BMP_CLR_DEPTH16 0x00000400
87 #define D4D_BMP_CLR_DEPTH8 0x00000500
88 #define D4D_BMP_CLR_DEPTH4 0x00000600
89 #define D4D_BMP_CLR_DEPTH2 0x00000700
91 #define D4D_BMP_ENDIAN_FLAG 0x00008000
93 #define D4D_BMP_PAL_256 (D4D_BMP_PAL256_32 | D4D_BMP_CLR_DEPTH256)
94 #define D4D_BMP_PAL_16 (D4D_BMP_PAL16_8 | D4D_BMP_CLR_DEPTH16)
95 #define D4D_BMP_PAL_2 (D4D_BMP_PAL2 | D4D_BMP_CLR_DEPTH2)
98 #ifndef D4D_BMP_16MNOPAL_ENABLE
99 #define D4D_BMP_16MNOPAL_ENABLE D4D_FALSE
102 #ifndef D4D_BMP_256KNOPAL_ENABLE
103 #define D4D_BMP_256KNOPAL_ENABLE D4D_FALSE
106 #ifndef D4D_BMP_65536NOPAL_ENABLE
107 #define D4D_BMP_65536NOPAL_ENABLE D4D_FALSE
110 #ifndef D4D_BMP_256NOPAL_ENABLE
111 #define D4D_BMP_256NOPAL_ENABLE D4D_FALSE
114 #ifndef D4D_BMP_PAL_256_ENABLE
115 #define D4D_BMP_PAL_256_ENABLE D4D_FALSE
118 #ifndef D4D_BMP_PAL_16_ENABLE
119 #define D4D_BMP_PAL_16_ENABLE D4D_FALSE
122 #ifndef D4D_BMP_PAL_2_ENABLE
123 #define D4D_BMP_PAL_2_ENABLE D4D_FALSE
166 #if (D4D_BMP_EXTSRC_SUPPORT_D4D == D4D_TRUE) && (D4D_EXTSRC_FILE_ENABLE == D4D_TRUE)
181 #define D4D_IMG_HEADER_D4DINT_SIZE sizeof(D4D_IMG_HEADER_D4DINT)
186 #define D4D_IMG_HEADER_2_D4DINT_SIZE sizeof(D4D_IMG_HEADER_2_D4DINT)
188 #define D4D_DECLARE_IMG_HEADER_2_D4DINT(name, size_x, size_y, c_mode, pData) \
189 const D4D_IMG_HEADER_2_D4DINT name = { \
190 D4D_IMG_HEADER_2_KEY_D4DINT, \
202 #define D4D_GET_IMG_HEADER_2_FROM_FILENAME(file) ((D4D_IMG_HEADER_2_D4DINT*)(((D4D_BMP*)file)->pData))
204 #define D4D_GET_IMG_HEADER_FROM_FILENAME(file) ((D4D_IMG_HEADER_D4DINT*)(((D4D_BMP*)file)->pData))
217 #define D4D_ImgDecIntD4DDraw NULL
218 #define D4D_ImgDecIntD4DGetWidth NULL
219 #define D4D_ImgDecIntD4DGetHeight NULL
220 #define D4D_ImgDecIntD4DGetSize NULL
221 #define D4D_ImgDecIntD4DGetHeader NULL
D4D_COOR D4D_ImgDecIntD4DGetHeight(D4D_CHAR *pFileName)
void D4D_ImgDecIntD4DDraw(D4D_COOR x, D4D_COOR y, D4D_CHAR *pFileName, D4D_BOOL greyScale, D4D_COOR radius)
struct D4D_IMG_HEADER_2_D4DINT_S D4D_IMG_HEADER_2_D4DINT
D4D_COOR D4D_ImgDecIntD4DGetWidth(D4D_CHAR *pFileName)
struct D4D_D4DBMP_DECODE_S D4D_D4DBMP_DECODE
Word(* GET_DATA_WORD_FUNC)(D4D_D4DBMP_DECODE *pDecode, D4D_BOOL increment)
Byte D4D_COOR
Type definition of eGUI coordination variables.
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
Byte(* GET_DATA_BYTE_FUNC)(D4D_D4DBMP_DECODE *pDecode, D4D_BOOL increment)
D4D_SIZE D4D_ImgDecIntD4DGetSize(D4D_CHAR *pFileName)
unsigned long LWord
Type definition of LWord (unsigned 32-bit).
int D4D_ImgDecIntD4DGetHeader(D4D_CHAR *pFileName, void *pBuff, int max_size)
LWord D4D_BOOL
Type definition of eGUI boolean.
char D4D_CHAR
Type definition of eGUI ASCII character.
Type definition of eGUI size structure.
LWord D4D_COLOR
Type definition of eGUI color variables.
struct D4D_IMG_HEADER_D4DINT_S D4D_IMG_HEADER_D4DINT
unsigned short Word
Type definition of Word (unsigned 16-bit).
void * D4D_FILEPTR
Type definition of eGUI file pointer.
D4D_COLOR(* GetPxlDecoder)(struct D4D_D4DBMP_DECODE_S *pDecode)
LWord(* GET_DATA_LONG_FUNC)(D4D_D4DBMP_DECODE *pDecode, D4D_BOOL increment)