⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osd_structure.h

📁 三星ic 9980的源代码. 718版.
💻 H
字号:
#ifndef _OSD_STRUCTURE_H_
#define  _OSD_STRUCTURE_H_

/******************************************************************************
 *   Structure for graphic                                                    
 *****************************************************************************/
typedef struct {
	BYTE2	x_pos;
	BYTE2	y_pos;
	BYTE2	width;
	BYTE2	height;
} S5H_OsdRect_t;

#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

typedef enum {
	HS_NEED_DRAW = 0,	
	HS_NEED_ERASE,
	HS_SHOWN, /* already drawn */
	HS_HIDDEN, /* already erased	*/
	HS_NEED_DRAW_LOGO
} HWND_STATUS;

typedef struct {
	BYTE2 x_pos;
	BYTE1 y_pos;
	BYTE1 width;
} S5H_OsdFontPos_t;

#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
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;
#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
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;
#endif
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -