4760
- 收藏
- 点赞
- 分享
- 举报
vgs HI_MPI_VGS_AddCoverTask 执行失败
大神们,帮忙看看:执行HI_MPI_VGS_AddCoverTask,画框,空心框,实际yuv图片上没有框显示出来。提示的错误是:
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
代码是:
s32Ret = HI_MPI_VGS_BeginJob(&hHandle);
if ( s32Ret != HI_SUCCESS ) {
printf("HI_MPI_VGS_BeginJob failed\n");
hHandle = -1;
//VPSS_Restore(Grp, Chn);
return s32Ret;
}
memcpy(&stTask.stImgIn, pstFrame, sizeof(VIDEO_FRAME_INFO_S));
memcpy(&stTask.stImgOut, pstFrame, sizeof(VIDEO_FRAME_INFO_S));
//memcpy(&stTask.stImgOut , &stFrmInfo, sizeof(VIDEO_FRAME_INFO_S));
VGS_ADD_COVER_S cover_s[2];
memset(&cover_s, 0, sizeof(cover_s));
int j = 0;
for( j = 0; j < 2; j++) {
cover_s[j].enCoverType = COVER_QUAD_RANGLE;
cover_s[j].stQuadRangle.bSolid = 0;
cover_s[j].stQuadRangle.u32Thick = 2;
cover_s[j].stQuadRangle.stPoint[0].s32X= 0;
cover_s[j].stQuadRangle.stPoint[0].s32Y= 0;
cover_s[j].stQuadRangle.stPoint[1].s32X= 20;
cover_s[j].stQuadRangle.stPoint[1].s32Y= 0;
cover_s[j].stQuadRangle.stPoint[2].s32X= 20;
cover_s[j].stQuadRangle.stPoint[2].s32Y= 10;
cover_s[j].stQuadRangle.stPoint[3].s32X= 0;
cover_s[j].stQuadRangle.stPoint[3].s32Y= 10;
}
cover_s[1].stQuadRangle.stPoint[0].s32X= 0;
cover_s[1].stQuadRangle.stPoint[0].s32Y= 60;
cover_s[1].stQuadRangle.stPoint[1].s32X= 20;
cover_s[1].stQuadRangle.stPoint[1].s32Y= 60;
cover_s[1].stQuadRangle.stPoint[2].s32X= 20;
cover_s[1].stQuadRangle.stPoint[2].s32Y= 80;
cover_s[1].stQuadRangle.stPoint[3].s32X= 0;
cover_s[1].stQuadRangle.stPoint[3].s32Y= 80;
cover_s[0].u32Color = 0xFFFF00;
cover_s[1].u32Color = 0xFFFF00;
//HI_MPI_VGS_AddCoverTaskArray(hHandle,&stTask,cover_s,2);
s32Ret = HI_MPI_VGS_AddCoverTask(hHandle,&stTask,&cover_s[0]);
printf("HI_MPI_VGS_AddCoverTask ret=%#x\n",s32Ret);
打印的返回值是0
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
<3>[ dis] [Func]:DIS_Process [Line]:975 [Info]:dis mod not ready
<3>[ vi] [Func]:VI_SubmitFrame2Dis [Line]:1402 [Info]:submit dis task failed ,0xa0118010!
代码是:
s32Ret = HI_MPI_VGS_BeginJob(&hHandle);
if ( s32Ret != HI_SUCCESS ) {
printf("HI_MPI_VGS_BeginJob failed\n");
hHandle = -1;
//VPSS_Restore(Grp, Chn);
return s32Ret;
}
memcpy(&stTask.stImgIn, pstFrame, sizeof(VIDEO_FRAME_INFO_S));
memcpy(&stTask.stImgOut, pstFrame, sizeof(VIDEO_FRAME_INFO_S));
//memcpy(&stTask.stImgOut , &stFrmInfo, sizeof(VIDEO_FRAME_INFO_S));
VGS_ADD_COVER_S cover_s[2];
memset(&cover_s, 0, sizeof(cover_s));
int j = 0;
for( j = 0; j < 2; j++) {
cover_s[j].enCoverType = COVER_QUAD_RANGLE;
cover_s[j].stQuadRangle.bSolid = 0;
cover_s[j].stQuadRangle.u32Thick = 2;
cover_s[j].stQuadRangle.stPoint[0].s32X= 0;
cover_s[j].stQuadRangle.stPoint[0].s32Y= 0;
cover_s[j].stQuadRangle.stPoint[1].s32X= 20;
cover_s[j].stQuadRangle.stPoint[1].s32Y= 0;
cover_s[j].stQuadRangle.stPoint[2].s32X= 20;
cover_s[j].stQuadRangle.stPoint[2].s32Y= 10;
cover_s[j].stQuadRangle.stPoint[3].s32X= 0;
cover_s[j].stQuadRangle.stPoint[3].s32Y= 10;
}
cover_s[1].stQuadRangle.stPoint[0].s32X= 0;
cover_s[1].stQuadRangle.stPoint[0].s32Y= 60;
cover_s[1].stQuadRangle.stPoint[1].s32X= 20;
cover_s[1].stQuadRangle.stPoint[1].s32Y= 60;
cover_s[1].stQuadRangle.stPoint[2].s32X= 20;
cover_s[1].stQuadRangle.stPoint[2].s32Y= 80;
cover_s[1].stQuadRangle.stPoint[3].s32X= 0;
cover_s[1].stQuadRangle.stPoint[3].s32Y= 80;
cover_s[0].u32Color = 0xFFFF00;
cover_s[1].u32Color = 0xFFFF00;
//HI_MPI_VGS_AddCoverTaskArray(hHandle,&stTask,cover_s,2);
s32Ret = HI_MPI_VGS_AddCoverTask(hHandle,&stTask,&cover_s[0]);
printf("HI_MPI_VGS_AddCoverTask ret=%#x\n",s32Ret);
打印的返回值是0
我来回答
回答1个
时间排序
认可量排序
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2020-04-22 11:56:34
-
2019-09-09 16:25:18
-
2024-10-17 10:18:03
-
2016-10-13 16:03:29
-
2019-10-10 22:07:55
-
2020-03-18 09:33:17
-
2019-10-11 21:29:11
-
22021-06-22 10:33:23
-
2019-12-31 10:37:13
-
2017-05-16 09:16:48
-
2017-07-19 18:36:12
-
102019-05-22 09:55:10
-
2019-05-22 09:47:35
-
2019-03-28 16:04:58
-
2020-10-29 11:34:24
-
2020-12-08 16:54:34
-
2020-01-06 13:47:26
-
2019-12-19 10:30:35
-
2020-04-22 14:41:33
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认