52 #if (D4D_BMP_EXTSRC_SUPPORT_D4D == D4D_TRUE) && (D4D_EXTSRC_FILE_ENABLE == D4D_TRUE)
54 #if D4D_BMP_PAL_2_ENABLE != D4D_FALSE
58 #if D4D_BMP_PAL_16_ENABLE != D4D_FALSE
62 #if (D4D_BMP_256NOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_256_ENABLE != D4D_FALSE)
66 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
70 #if (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
74 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE)
78 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
82 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
86 #if (D4D_BMP_256NOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_256_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_16_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_2_ENABLE != D4D_FALSE)
103 pFile = D4D_OpenImgFile(pFileName,
"r");
122 #if D4D_ENDIAN == D4D_ENDIAN_LITTLE
162 d4dbmp_decode.
ix = 0;
170 d4dbmp_decode.
pFile = pFile;
205 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE)
208 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataLong;
213 #if (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
216 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataLong;
220 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
223 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataWord;
227 #if (D4D_BMP_256NOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_256_ENABLE != D4D_FALSE)
231 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataByte;
235 #if D4D_BMP_PAL_16_ENABLE != D4D_FALSE
238 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataByte;
242 #if D4D_BMP_PAL_2_ENABLE != D4D_FALSE
245 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataByte;
267 #if D4D_ROUND_CORNER_ENABLE == D4D_TRUE
290 for (y_ix = 0; y_ix < height; ++y_ix)
294 else if(((y2 - y) - y_ix) < radius)
301 for (x_ix = 0; x_ix < width; ++x_ix)
304 if((x_ix >= non_print_len) && (x_ix <= ((x2 - x) - non_print_len)))
332 x_ix = (
LWord) (width * height);
335 for (y_ix=0; y_ix<x_ix; ++y_ix)
338 #if D4D_LLD_FLUSH_ELEMENT != D4D_FALSE
352 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
379 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
406 #if (D4D_BMP_256NOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_256_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_16_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_2_ENABLE != D4D_FALSE)
471 pFile = D4D_OpenImgFile(pFileName,
"r");
515 pFile = D4D_OpenImgFile(pFileName,
"r");
D4D driver external pictures d4d decoder functions header file.
void D4D_RBoxXY(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_LINETYPE ltype, D4D_COLOR colorLine, D4D_COLOR colorFill, D4D_COOR radius)
Function draw filled rectangle with outline on the screen with round corners.
#define D4D_MemAlloc(size)
Mem Alloc eGUI definition. If not defined by user config any special user function, it used standard system function.
void(* D4DLCD_FlushBuffer)(D4DLCD_FLUSH_MODE mode)
The LCD driver flush function.
#define D4D_READ16L(x)
Macro for handling endianism - read 16bit - from Little Endian.
The flush after one basic element is draw.
D4D_COOR D4D_ImgDecExtD4DGetHeight(D4D_CHAR *pFileName)
void D4D_MoveToXY(D4D_COOR x, D4D_COOR y)
Function move logic cursor to new position.
D4D Driver main header file.
#define D4D_BMP_CLR_DEPTH_MASK
int D4D_ImgDecExtD4DGetHeader(D4D_CHAR *pFileName, void *pBuff, int max_size)
const D4D_SIZE d4d_size_zero
D4D Driver private header file.
D4D_COOR cx
Size in axis X (width)
Byte D4D_COOR
Type definition of eGUI coordination variables.
#define D4D_BMP_TYPE_MASK
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
D4D_CLR_SCHEME * D4D_ScreenGetScheme(D4D_SCREEN *pScreen)
#define D4D_EXTSRC_BUFF_SIZE
This macro is used to specify size of buffer that is using when external file support is enabled...
D4D_COOR D4D_ImgDecExtD4DGetWidth(D4D_CHAR *pFileName)
#define NULL
Type definition of null pointer.
#define D4D_MemFree(pMem)
Mem Free eGUI definition. If not defined by user config any special user function, it used standard system function.
void D4D_BoxXY(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_LINETYPE ltype, D4D_COLOR colorLine, D4D_COLOR colorFill)
Function draw filled rectangle with outline on the screen.
unsigned long LWord
Type definition of LWord (unsigned 32-bit).
D4D_SCREEN * D4D_GetActiveScreen(void)
Returns pointer to current active screen.
void D4D_ImgDecExtD4DDraw(D4D_COOR x, D4D_COOR y, D4D_CHAR *pFileName, D4D_BOOL greyScale, D4D_COOR radius)
D4D_COOR D4D_RndCornerGetNonPrintedPxl(D4D_COOR radius, D4D_COOR line)
Function that counts number of printed pixels in specified line of circle quadrant.
#define D4D_EXTSRC_HEADER_D4D_SIZE
#define D4D_BMP_65536NOPAL
#define D4D_SEEK_SET
D4D_SEEK_SET eGUI Origin constant for begin of file (1)
D4D driver external pictures d4d decoder functions header file.
D4D_SIZE D4D_ImgDecExtD4DGetSize(D4D_CHAR *pFileName)
D4D_COOR cy
Size in axis Y (height)
#define D4D_FileClose
Macro used as short cut to used File Close function defined by D4D_DECLARE_FILE_FUNCTIONS.
const D4DLCD_FUNCTIONS D4D_LLD_LCD
LWord D4D_BOOL
Type definition of eGUI boolean.
#define D4D_UNUSED(x)
Macro used just for notify compiler that the input parameter is not used.
char D4D_CHAR
Type definition of eGUI ASCII character.
Type definition of eGUI size structure.
#define D4D_FileSeek
Macro used as short cut to used File Seek function defined by D4D_DECLARE_FILE_FUNCTIONS.
int D4D_CompareStrings(const D4D_CHAR *s1, const D4D_CHAR *s2)
The function copare two strings (terminated by zero)
Byte d4d_extsrcBuffer[D4D_EXTSRC_BUFF_SIZE]
D4D driver - resistive touch screen driver function header file.
void(* D4DLCD_Send_PixelColor)(D4D_COLOR value)
The LCD driver send pixel function. The pixels will be draw on position (automaticaly incremented) se...
void D4D_LineToXY(D4D_COOR x, D4D_COOR y, D4D_LINETYPE ltype, D4D_COLOR color)
Function draw line on the screen.
#define D4D_BMP_256KNOPAL
LWord D4D_COLOR
Type definition of eGUI color variables.
#define D4D_BMP_COMPRESS_MASK
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)
#define D4D_FileRead
Macro used as short cut to used File Read function defined by D4D_DECLARE_FILE_FUNCTIONS.
unsigned char(* D4DLCD_SetWindow)(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)
The LCD driver Set logic window function. Into this logic window will be draw pixels.