715
- 收藏
- 点赞
- 分享
- 举报
VO输出用户时序配置
贴上一部分VO代码
/******************************************
step : start VO SD0 (bind * vi )
******************************************/
s32Ret = HI_MPI_VO_GetPubAttr(VoDev, &stVoPubAttr);
if (s32Ret != HI_SUCCESS)
{
printf("Get device attributes failed with error code %#x!\n", s32Ret);
return HI_FAILURE;
}
//stVoPubAttr.enIntfType = VO_INTF_CVBS;
//stVoPubAttr.enIntfSync = VO_OUTPUT_PAL;
stVoPubAttr.enIntfType = VO_INTF_LCD_6BIT;
stVoPubAttr.enIntfSync = VO_OUTPUT_USER;
stVoPubAttr.u32BgColor = 0x000000ff;
s32Ret = SAMPLE_COMM_VO_StartDev(VoDev, &stVoPubAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("SAMPLE_COMM_VO_StartDevLayer failed!\n");
}
stLayerAttr.bClusterMode = HI_FALSE;
stLayerAttr.bDoubleFrame = HI_FALSE;
stLayerAttr.enPixFormat = PIXEL_FORMAT_YUV_SEMIPLANAR_420;
stLayerAttr.stDispRect.s32X = 0;
stLayerAttr.stDispRect.s32Y = 0;
s32Ret = SAMPLE_COMM_VO_GetWH(stVoPubAttr.enIntfSync,
&stLayerAttr.stDispRect.u32Width, &stLayerAttr.stDispRect.u32Height,
&stLayerAttr.u32DispFrmRt);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("SAMPLE_COMM_VO_GetWH failed!\n");
}
***********************************
typedef struct tagVO_SYNC_INFO_S
{
HI_BOOL bSynm; /* sync mode(0:timing,as BT.656; 1:signal,as LCD) */
HI_BOOL bIop; /* interlaced or progressive display(0:i; 1:p) */
HI_U8 u8Intfb; /* interlace bit width while output */
HI_U16 u16Vact ; /* vertical active area */
HI_U16 u16Vbb; /* vertical back blank porch */
HI_U16 u16Vfb; /* vertical front blank porch */
HI_U16 u16Hact; /* herizontal active area */
HI_U16 u16Hbb; /* herizontal back blank porch */
HI_U16 u16Hfb; /* herizontal front blank porch */
HI_U16 u16Hmid; /* bottom herizontal active area */
HI_U16 u16Bvact; /* bottom vertical active area */
HI_U16 u16Bvbb; /* bottom vertical back blank porch */
HI_U16 u16Bvfb; /* bottom vertical front blank porch */
HI_U16 u16Hpw; /* horizontal pulse width */
HI_U16 u16Vpw; /* vertical pulse width */
HI_BOOL bIdv; /* inverse data valid of output */
HI_BOOL bIhs; /* inverse horizontal synch signal */
HI_BOOL bIvs; /* inverse vertical synch signal */
} VO_SYNC_INFO_S; //结构体
好像要配置 Hact(0) Hbb(0) Hfb(0)这几个数据
如何去计算这几个值呢。
***************
本人目标是通过海思VO输出在320*400的屏幕上显示画面 LCD6BIT串行输出 屏幕驱动芯片是HX8352-B。
/******************************************
step : start VO SD0 (bind * vi )
******************************************/
s32Ret = HI_MPI_VO_GetPubAttr(VoDev, &stVoPubAttr);
if (s32Ret != HI_SUCCESS)
{
printf("Get device attributes failed with error code %#x!\n", s32Ret);
return HI_FAILURE;
}
//stVoPubAttr.enIntfType = VO_INTF_CVBS;
//stVoPubAttr.enIntfSync = VO_OUTPUT_PAL;
stVoPubAttr.enIntfType = VO_INTF_LCD_6BIT;
stVoPubAttr.enIntfSync = VO_OUTPUT_USER;
stVoPubAttr.u32BgColor = 0x000000ff;
s32Ret = SAMPLE_COMM_VO_StartDev(VoDev, &stVoPubAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("SAMPLE_COMM_VO_StartDevLayer failed!\n");
}
stLayerAttr.bClusterMode = HI_FALSE;
stLayerAttr.bDoubleFrame = HI_FALSE;
stLayerAttr.enPixFormat = PIXEL_FORMAT_YUV_SEMIPLANAR_420;
stLayerAttr.stDispRect.s32X = 0;
stLayerAttr.stDispRect.s32Y = 0;
s32Ret = SAMPLE_COMM_VO_GetWH(stVoPubAttr.enIntfSync,
&stLayerAttr.stDispRect.u32Width, &stLayerAttr.stDispRect.u32Height,
&stLayerAttr.u32DispFrmRt);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("SAMPLE_COMM_VO_GetWH failed!\n");
}
***********************************
typedef struct tagVO_SYNC_INFO_S
{
HI_BOOL bSynm; /* sync mode(0:timing,as BT.656; 1:signal,as LCD) */
HI_BOOL bIop; /* interlaced or progressive display(0:i; 1:p) */
HI_U8 u8Intfb; /* interlace bit width while output */
HI_U16 u16Vact ; /* vertical active area */
HI_U16 u16Vbb; /* vertical back blank porch */
HI_U16 u16Vfb; /* vertical front blank porch */
HI_U16 u16Hact; /* herizontal active area */
HI_U16 u16Hbb; /* herizontal back blank porch */
HI_U16 u16Hfb; /* herizontal front blank porch */
HI_U16 u16Hmid; /* bottom herizontal active area */
HI_U16 u16Bvact; /* bottom vertical active area */
HI_U16 u16Bvbb; /* bottom vertical back blank porch */
HI_U16 u16Bvfb; /* bottom vertical front blank porch */
HI_U16 u16Hpw; /* horizontal pulse width */
HI_U16 u16Vpw; /* vertical pulse width */
HI_BOOL bIdv; /* inverse data valid of output */
HI_BOOL bIhs; /* inverse horizontal synch signal */
HI_BOOL bIvs; /* inverse vertical synch signal */
} VO_SYNC_INFO_S; //结构体
好像要配置 Hact(0) Hbb(0) Hfb(0)这几个数据
如何去计算这几个值呢。
***************
本人目标是通过海思VO输出在320*400的屏幕上显示画面 LCD6BIT串行输出 屏幕驱动芯片是HX8352-B。
我来回答
回答2个
时间排序
认可量排序
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2020-05-19 15:57:16
-
2019-06-21 11:43:52
-
2016-03-07 12:26:32
-
2016-07-28 17:21:55
-
2017-08-11 10:31:51
-
2016-12-29 23:12:25
-
192016-07-12 10:07:55
-
2016-07-19 21:51:15
-
2017-10-30 10:35:04
-
2018-12-26 11:25:22
-
2016-06-24 14:02:51
-
2020-05-21 20:27:07
-
2019-03-05 13:53:36
-
2018-05-10 16:38:50
-
2017-11-06 17:23:49
-
2017-06-15 17:33:58
-
2016-08-11 13:57:01
-
2019-10-29 21:36:15
-
2018-03-15 17:12:39
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认