?? osd_structure.h
字號:
#ifndef _OSD_STRUCTURE_H_
#define _OSD_STRUCTURE_H_
/******************************************************************************
* Structure for graphic
*****************************************************************************/
#pragma packed on
typedef struct {
BYTE2 x_pos;
BYTE2 y_pos;
BYTE2 width;
BYTE2 height;
} S5H_OsdRect_t;
#pragma packed off
#if 0
typedef enum {
ID_LANG_ENG,
ID_LANG_FRA,
ID_LANG_DEU,
ID_LANG_ESP,
ID_LANG_ITA,
ID_LANG_CHINA
} LANG_ID;
typedef enum {
WND_STYLE_NOTHING = 0,
WND_STYLE_IMAGE,
WND_STYLE_STR,
WND_STYLE_FILL
} HWND_STYLE;
typedef struct {
BYTE2 x_pos;
BYTE2 y_pos;
} S5H_OsdPoint_t;
typedef struct {
BYTE4 *base_address; /* source address */
BYTE2 width;
BYTE2 height;
S5H_ColorFormat_t color_format;
} S5H_OsdImgSrc_t ;
typedef struct {
BYTE2 width;
BYTE2 height;
} Image_size_t;
#endif
#pragma packed on
typedef enum {
HS_NEED_DRAW = 0,
HS_NEED_ERASE,
HS_SHOWN, /* already drawn */
HS_HIDDEN, /* already erased */
HS_NEED_DRAW_LOGO
} HWND_STATUS;
#pragma packed off
#pragma packed on
typedef struct {
BYTE2 x_pos;
BYTE1 y_pos;
BYTE1 width;
} S5H_OsdFontPos_t;
#pragma packed off
#if 0
typedef struct {
/* char code : 0x00~0xFF */
BYTE2 font_width; // width of one character
BYTE2 font_height; // height of one character
BYTE2 total_width; // width of one character
BYTE2 total_height; // height of one character
BYTE1 color_format;
BYTE4 *font_data;
BYTE1 bits_per_pixel;
BYTE1 nchars_per_line;
S5H_OsdFontPos_t *font_pos;
BYTE1 stride;
}S5H_OsdFont_t;
#else
#pragma packed on
typedef struct {
/* char code : 0x00~0xFF */
BYTE1 font_width; // width of one character
BYTE1 font_height; // height of one character
BYTE1 color_format;
#if 1
ULONG font_data;
#else
ULONG *font_data;
#endif
S5H_OsdFontPos_t *font_pos;
} S5H_OsdFont_t;
#pragma packed off
#endif
#if 0
typedef struct {
/* window id range: 0~255 */
BYTE1 wnd_id;
BYTE1 parent_id;
BYTE1 children_id;
BYTE1 sibling_id;
BYTE1 item_id; /* image_id, str_id */
S5H_OsdRect_t winrect; /* window rect in coords at (0,0,640,480) */
BYTE1 set_color; /* set color; font: fg_color/fill_color/img_bg_color */
BYTE1 aux_color; /* font: bg_color/ image: key color to be replaced */
HWND_STYLE style;
BYTE1 status; /* HS_SHOWN, HS_NEED_DRAW, HS_NEED_ERASE, HS_HIDDEN */
} S5H_OsdHwnd_t;
#else
#pragma packed on
typedef struct {
/* window id range: 0~255 */
BYTE1 wnd_id;
BYTE1 parent_id;
BYTE1 children_id;
BYTE1 sibling_id;
BYTE1 item_id; /* image_id, str_id */
S5H_OsdRect_t winrect; /* window rect in coords at (0,0,640,480) */
BYTE1 color;
BYTE1 status; /* HS_SHOWN, HS_NEED_DRAW, HS_NEED_ERASE, HS_HIDDEN */
} S5H_OsdHwnd_t;
#pragma packed off
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -