58 #if D4D_BMP_PAL_2_ENABLE != D4D_FALSE
62 #if D4D_BMP_PAL_16_ENABLE != D4D_FALSE
66 #if (D4D_BMP_256NOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_256_ENABLE != D4D_FALSE)
70 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
74 #if (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
78 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE)
82 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
86 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
90 #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)
132 #if D4D_ENDIAN == D4D_ENDIAN_BIG
151 d4dbmp_decode.
ix = 0;
156 d4dbmp_decode.
pBmp = pData;
162 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE)
165 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataLong;
170 #if (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
173 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataLong;
177 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
180 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataWord;
184 #if (D4D_BMP_256NOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_256_ENABLE != D4D_FALSE)
188 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataByte;
192 #if D4D_BMP_PAL_16_ENABLE != D4D_FALSE
195 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataByte;
199 #if D4D_BMP_PAL_2_ENABLE != D4D_FALSE
202 d4dbmp_decode.
GetDataFunc = (
void*)D4D_GetDataByte;
213 #if D4D_ROUND_CORNER_ENABLE == D4D_TRUE
230 for (y_ix = 0; y_ix < height; ++y_ix)
234 else if(((y2 - y) - y_ix) < radius)
241 for (x_ix = 0; x_ix < width; ++x_ix)
244 if((x_ix >= non_print_len) && (x_ix <= ((x2 - x) - non_print_len)))
267 x_ix = (
LWord) (width * height);
270 for (y_ix=0; y_ix<x_ix; ++y_ix)
273 #if D4D_LLD_FLUSH_ELEMENT != D4D_FALSE
352 #if D4D_ENDIAN == D4D_ENDIAN_BIG
402 #if D4D_ENDIAN == D4D_ENDIAN_BIG
426 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE)
474 #if (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
522 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
572 #if (D4D_BMP_256NOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_PAL_256_ENABLE != D4D_FALSE)
627 #if (D4D_BMP_PAL_16_ENABLE != D4D_FALSE)
636 ix = (
Byte)((ix >> 4) & 0x0f);
677 return D4D_GetPxl16(pDecode);
691 return D4D_GetPxl16(pDecode);
703 #if (D4D_BMP_PAL_2_ENABLE != D4D_FALSE)
753 return D4D_GetPxl2(pDecode);
767 return D4D_GetPxl2(pDecode);
788 #if (D4D_BMP_16MNOPAL_ENABLE != D4D_FALSE) || (D4D_BMP_256KNOPAL_ENABLE != D4D_FALSE)
800 #if (D4D_BMP_65536NOPAL_ENABLE != D4D_FALSE)
812 #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)
#define D4D_COLOR_BLACK
Black color (0, 0, 0)
D4D_COOR D4D_ImgDecIntD4DGetHeight(D4D_CHAR *pFileName)
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_GET_IMG_HEADER_2_FROM_FILENAME(file)
void(* D4DLCD_FlushBuffer)(D4DLCD_FLUSH_MODE mode)
The LCD driver flush function.
void D4D_ImgDecIntD4DDraw(D4D_COOR x, D4D_COOR y, D4D_CHAR *pFileName, D4D_BOOL greyScale, D4D_COOR radius)
#define D4D_FALSE
This is definition of boolean operation value in eGUI - FALSE.
Word D4D_SwapWord(Word n)
The function swap bytes in Word.
The flush after one basic element is draw.
#define GET_DATA_BYTE(pBmp_dec, inc)
void D4D_MoveToXY(D4D_COOR x, D4D_COOR y)
Function move logic cursor to new position.
#define D4D_TRUE
This is definition of boolean operation value in eGUI - TRUE.
#define D4D_BMP_ENDIAN_FLAG
D4D_COOR D4D_ImgDecIntD4DGetWidth(D4D_CHAR *pFileName)
#define D4D_COLOR_FROM_666(color666)
D4D Driver main header file.
#define D4D_BMP_CLR_DEPTH_MASK
D4D Driver private header file.
D4D_COOR cx
Size in axis X (width)
Byte D4D_COOR
Type definition of eGUI coordination variables.
#define D4D_IMG_HEADER_2_D4DINT_SIZE
Macro that define the size of version 2 header of bitmap.
#define D4D_BMP_TYPE_MASK
#define D4D_IMG_HEADER_D4DINT_SIZE
Macro that define the size of original header of bitmap.
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
D4D_CLR_SCHEME * D4D_ScreenGetScheme(D4D_SCREEN *pScreen)
#define NULL
Type definition of null pointer.
D4D_SIZE D4D_ImgDecIntD4DGetSize(D4D_CHAR *pFileName)
#define D4D_COLOR_FROM_332(color332)
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).
#define GET_DATA_WORD(pBmp_dec, inc)
D4D_SCREEN * D4D_GetActiveScreen(void)
Returns pointer to current active screen.
D4D_BMP eGUI main image structure.
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_BMP_65536NOPAL
int D4D_ImgDecIntD4DGetHeader(D4D_CHAR *pFileName, void *pBuff, int max_size)
D4D_COOR cy
Size in axis Y (height)
const void * pData
Pointer to data to internal memory. In case of external source of image this must be NULL...
#define D4D_ENDIAN
This macro is used to specify current Endianim of CPU architecture. If not defined, the macro is defined by used CPU type as a default.
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.
static D4D_BOOL D4D_BmpHeaderCheckEndianism(const D4D_BMP *pBmp)
char D4D_CHAR
Type definition of eGUI ASCII character.
#define D4D_IMG_HEADER_2_KEY_D4DINT
Type definition of eGUI size structure.
#define D4D_COLOR_FROM_565(color565)
#define D4D_ENDIAN_BIG
Constant for Big Endianism.
#define D4D_COLOR_FROM_888(color888)
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.
D4D_COLOR D4D_GetGreyScale(D4D_COLOR color)
Compute the grayscale color.
#define D4D_BMP_COMPRESS_MASK
unsigned short Word
Type definition of Word (unsigned 16-bit).
D4D_COLOR(* GetPxlDecoder)(struct D4D_D4DBMP_DECODE_S *pDecode)
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.
#define GET_DATA_LONG(pBmp_dec, inc)