📄 hi_comm_vo.h
字号:
/****************************************************************************** Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. ****************************************************************************** File Name : hi_comm_vo.h Version : Initial Draft Author : Hisilicon multimedia software group Created : 2006/01/19 Description : hi_video_out.c header file History : 1.Date : 2006/01/19 Author : x45704 Modification: Created file******************************************************************************/#ifndef __HI_COMM_VO_H__#define __HI_COMM_VO_H__#include "hi_type.h"#include "hi_struct.h"#ifdef __cplusplus#if __cplusplusextern "C"{#endif#endif /* End of #ifdef __cplusplus */#define VO_MAX_CHN_NUM 4#define VO_CHN_MAX_IMG_NUM 30 /* The max channel buffer length*/#define PIP_BUF_NUM_MAX 10 /* The max VO PIP buffer lenght */#define HI_ERR_VO_DEV_NOT_OPEN HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 1)#define HI_ERR_VO_INVALID_CHN HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 2)#define HI_ERR_VO_NULL_PTR HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 3)#define HI_ERR_VO_INVALID_PARA HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 4)#define HI_ERR_VO_NOT_ENABLE HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 5)#define HI_ERR_VO_BUF_FULL HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 6)#define HI_ERR_VO_BUF_EMPTY HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 7)#define HI_ERR_VO_BUF_NOT_EXIST HI_DEF_ERR(HI_ID_VOU, HI_LOG_LEVEL_ERROR, 8)typedef enum hiVO_MODE_E{ VO_MODE_BT656=0, /* ITU-R BT.656 YUV4:2:2 */ VO_MODE_BT601, /* ITU-R BT.601 YUV4:2:2 */ VO_MODE_DIGITAL, /* LCD output */ VO_MODE_BUTT}VO_MODE_E;/* config parameter for TV mode */typedef struct hiTV_CFG_S{ VIDEO_CONTROL_MODE_E enMaster; /* if display_mode is BT601, this field can be slave or master mode, else this field has no sense */ VIDEO_NORM_E compose_mode; /* output compose mode: PAL NTSC SCREAM */ HI_BOOL seriatim_mode; /* seriatim mode */ } TV_CFG_S;/* config paramter for LCD mode */typedef struct hiLCD_CFG_S{ HI_U32 u32Lpp; /* active Line per panel. */ HI_U32 u32Vsw; /* Vertical Synchronization Pulse width. */ HI_U32 u32Vbp; /* Vertical Back Porch. */ HI_U32 u32Vfp; /* Vertical Front Porch. */ HI_U32 u32Ppl; /* Pixel per line. */ HI_U32 u32Hsw; /* Horizontal Synchronization Pulse width.*/ HI_U32 u32Hbp; /* Horizontal Back Porch. */ HI_U32 u32Hfp; /* Horizontal Front Porch. */ } LCD_CFG_S;/*public attribute for VO*/typedef struct hiVO_PUB_ATTR_S{ HI_BOOL bOutputScale; /* scale flag, HI_TRUE: need scale(used for single channel), HI_FALSE: not need scale */ VO_MODE_E display_mode; /* display mode */ TV_CFG_S tv_config; /* config parameter for TV mode */ LCD_CFG_S lcd_config; /* config paramter for LCD mode */ HI_U32 background_color; /* backgrount color RGB(8BIT R 8BIT G 8BIT B) the low 24 bit make effect */ HI_U32 vo_chn_img_num; /* The channel buffer length. Only effective when bOutputScale is true */ HI_U32 pip_buf_num; /* The VO PIP buffer length */}VO_PUB_ATTR_S;/*VO channel attribute*/typedef struct hiVO_CH_ATTR_S{ HI_U32 priority; /* Overlay priority of the VO channels */ HI_U32 diaphaneity; /* Overlay transparence of the VO(0-255) */ RECT_S rectangle; /* display region*/ HI_BOOL zoom_enable; /* zoom switch ,HI_TRUE: zoom enable,HI_FALSE: zoom disable */}VO_CH_ATTR_S;#ifdef __cplusplus#if __cplusplus}#endif#endif /* End of #ifdef __cplusplus */#endif /* End of #ifndef __HI_COMM_VO_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -