📄 osdcp_bmp.h
字号:
#ifndef OSDCP_BMP_H
#define OSDCP_BMP_H
#include "DataType.h"
#include "msAPI_OSD.h"
typedef struct
{
U8 bmptype;
U16 x;
U16 y;
//U16 width;
//U16 height;
//U16 radius;
//U32 f_clr; //frame color
//U32 t_clr; //text_color
//U32 b_clr; //background color
//U32 g_clr; //gradient color
//U8 u8Gradient;
//U8 bStringIndexWidth;
//EN_ALIGNMENT_TYPE enTextAlign;
//BOOLEAN fHighLight;
//U8 bFrameWidth;
//MSAPI_GEFontFmt Fontfmt;
MSAPI_GEBitmapFmt bmpfmt;
}OSDcp_bmp;
typedef struct
{
U32 magicNumber;
U32 headerSize;
U32 bodySize;
U32 binaryType;
U16 bodyCompressMethod;
U32 bodyDecompressedSize;
}BitmapBinaryInfo;
#ifdef OSDCP_BMP_C
#define INTERFACE
#else
#define INTERFACE extern
#endif
INTERFACE void osdcp_bmp_draw(OSDcp_bmp* this, BMPHANDLE bmphandle);
INTERFACE OSDcp_bmp* osdcp_bmp_constructor(U8 bmptype, U16 x, U16 y, U16 bmpfmt_width, U16 bmpfmt_height, BOOLEAN bmpfmt_bBmpColorKeyEnable, BOOLEAN bmpfmt_bScale);
INTERFACE void osdcp_bmp_destructor(OSDcp_bmp*);
#undef INTERFACE
#endif /* OSDCP_BMP_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -