4676
- 收藏
- 点赞
- 分享
- 举报
hi3518e VPSS初始化问题求助
涉及到VPSS的API全部出错,错误代码a0088010,查看错误码,为"VPSS 系统未初始化"
HI_MPI_VPSS_CreateGrp abnormally!-------a0088010
HI_MPI_VPSS_GetGrpAttr abnormally!-------a0088010
HI_MPI_VPSS_SetGrpAttr abnormally!-------a0088010
HI_MPI_VPSS_GetCropCfg abnormally!-------a0088010
HI_MPI_VPSS_SetCropCfg abnormally!-------a0088010
HI_MPI_VPSS_GetChnAttr abnormally!-------a0088010
HI_MPI_VPSS_SetChnAttr abnormally!-------a0088010
HI_MPI_VPSS_EnableChn abnormally!-------a0088010
HI_MPI_VPSS_StartGrp abnormally!-------a0088010
代码如下:
VPSS_GRP_ATTR_S stGrpVpssAttr;
VPSS_CHN_ATTR_S stChnAttr;
VPSS_CROP_INFO_S stCropInfo;
VPSS_GRP VpssGrp;
VPSS_CHN VpssChn;
VpssGrp = 0;
VpssChn = 0;
stGrpVpssAttr.u32MaxW = 720;
stGrpVpssAttr.u32MaxH = 576;
stGrpVpssAttr.bDrEn = HI_FALSE;
stGrpVpssAttr.bDbEn = HI_FALSE;
stGrpVpssAttr.bIeEn = HI_FALSE;
stGrpVpssAttr.bNrEn = HI_FALSE;
stGrpVpssAttr.bHistEn = HI_FALSE;
stGrpVpssAttr.enDieMode = VPSS_DIE_MODE_NODIE;
stGrpVpssAttr.enPixFmt = PIXEL_FORMAT_YUV_SEMIPLANAR_422;
s32Ret = HI_MPI_VPSS_CreateGrp(VpssGrp, &stGrpVpssAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_CreateGrp abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_CreateGrp success!\n");
s32Ret = HI_MPI_VPSS_GetGrpAttr(VpssGrp, &stGrpVpssAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_GetGrpAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_GetGrpAttr success!\n");
stGrpVpssAttr.bIeEn = HI_TRUE;
stGrpVpssAttr.bNrEn = HI_TRUE;
s32Ret = HI_MPI_VPSS_SetGrpAttr(VpssGrp, &stGrpVpssAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_SetGrpAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_SetGrpAttr success!\n");
s32Ret = HI_MPI_VPSS_GetCropCfg(VpssGrp, &stCropInfo);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_GetCropCfg abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_GetCropCfg success!\n");
stCropInfo.bEnable = 1;
stCropInfo.enCropCoordinate = VPSS_CROP_ABS_COOR;
stCropInfo.stCropRect.s32X = 180;
stCropInfo.stCropRect.s32Y = 252;
stCropInfo.stCropRect.u32Width = 1920;
stCropInfo.stCropRect.u32Height = 1080;
s32Ret = HI_MPI_VPSS_SetCropCfg(VpssGrp, &stCropInfo);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_SetCropCfg abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_SetCropCfg success!\n");
s32Ret = HI_MPI_VPSS_GetChnAttr(VpssGrp, VpssChn,&stChnAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_GetChnAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_GetChnAttr success!\n");
stChnAttr.bFrameEn = 0;
stChnAttr.bSpEn = 1;
s32Ret = HI_MPI_VPSS_SetChnAttr(VpssGrp, VpssChn,&stChnAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_SetChnAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_SetChnAttr success!\n");
s32Ret = HI_MPI_VPSS_EnableChn(VpssGrp, VpssChn);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_EnableChn abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_EnableChn success!\n");
s32Ret = HI_MPI_VPSS_StartGrp (VpssGrp);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_StartGrp abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_StartGrp success!\n");
/*****************************/
/* call sys bind interface */
HI_U32 u32FrmCnt = 1;
HI_U32 u32Width = 720;
HI_U32 u32Height = 576;
HI_U32 u32PixelFormat = 0;
printf("Usage: ./vpss_dump [Grp] [Chn] [Count] [Width] [Height] [PixelFormat]\n");
printf("PixelFormat: image pixel format, 0 for semiplanar420 ang 1 for semiplanar422.\n");
SAMPLE_MISC_VpssDump(VpssGrp,VpssChn,u32FrmCnt,u32Width,u32Height,u32PixelFormat);
/*****************************/
s32Ret = HI_MPI_VPSS_StopGrp (VpssGrp);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_StopGrp abnormally!-------%x\n",s32Ret);
return s32Ret;
}else printf("HI_MPI_VPSS_StopGrp success!\n");
s32Ret = HI_MPI_VPSS_DisableChn(VpssGrp, VpssChn);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_DisableChn abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_DisableChn success!\n");
/*****************************/
/* call sys unbind interface */
/*****************************/
s32Ret = HI_MPI_VPSS_DestroyGrp(VpssGrp);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_DestroyGrp abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_DestroyGrp success!\n");
另外:
# cat /dev/logmpp
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VPSS_GetChnMode [Line]:3408 [Info]:<3>[ vpss] [grp0}:vpss unexist!
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
请各位大侠帮忙看看是怎么回事?跪谢!!!!!!!
HI_MPI_VPSS_CreateGrp abnormally!-------a0088010
HI_MPI_VPSS_GetGrpAttr abnormally!-------a0088010
HI_MPI_VPSS_SetGrpAttr abnormally!-------a0088010
HI_MPI_VPSS_GetCropCfg abnormally!-------a0088010
HI_MPI_VPSS_SetCropCfg abnormally!-------a0088010
HI_MPI_VPSS_GetChnAttr abnormally!-------a0088010
HI_MPI_VPSS_SetChnAttr abnormally!-------a0088010
HI_MPI_VPSS_EnableChn abnormally!-------a0088010
HI_MPI_VPSS_StartGrp abnormally!-------a0088010
代码如下:
VPSS_GRP_ATTR_S stGrpVpssAttr;
VPSS_CHN_ATTR_S stChnAttr;
VPSS_CROP_INFO_S stCropInfo;
VPSS_GRP VpssGrp;
VPSS_CHN VpssChn;
VpssGrp = 0;
VpssChn = 0;
stGrpVpssAttr.u32MaxW = 720;
stGrpVpssAttr.u32MaxH = 576;
stGrpVpssAttr.bDrEn = HI_FALSE;
stGrpVpssAttr.bDbEn = HI_FALSE;
stGrpVpssAttr.bIeEn = HI_FALSE;
stGrpVpssAttr.bNrEn = HI_FALSE;
stGrpVpssAttr.bHistEn = HI_FALSE;
stGrpVpssAttr.enDieMode = VPSS_DIE_MODE_NODIE;
stGrpVpssAttr.enPixFmt = PIXEL_FORMAT_YUV_SEMIPLANAR_422;
s32Ret = HI_MPI_VPSS_CreateGrp(VpssGrp, &stGrpVpssAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_CreateGrp abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_CreateGrp success!\n");
s32Ret = HI_MPI_VPSS_GetGrpAttr(VpssGrp, &stGrpVpssAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_GetGrpAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_GetGrpAttr success!\n");
stGrpVpssAttr.bIeEn = HI_TRUE;
stGrpVpssAttr.bNrEn = HI_TRUE;
s32Ret = HI_MPI_VPSS_SetGrpAttr(VpssGrp, &stGrpVpssAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_SetGrpAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_SetGrpAttr success!\n");
s32Ret = HI_MPI_VPSS_GetCropCfg(VpssGrp, &stCropInfo);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_GetCropCfg abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_GetCropCfg success!\n");
stCropInfo.bEnable = 1;
stCropInfo.enCropCoordinate = VPSS_CROP_ABS_COOR;
stCropInfo.stCropRect.s32X = 180;
stCropInfo.stCropRect.s32Y = 252;
stCropInfo.stCropRect.u32Width = 1920;
stCropInfo.stCropRect.u32Height = 1080;
s32Ret = HI_MPI_VPSS_SetCropCfg(VpssGrp, &stCropInfo);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_SetCropCfg abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_SetCropCfg success!\n");
s32Ret = HI_MPI_VPSS_GetChnAttr(VpssGrp, VpssChn,&stChnAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_GetChnAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_GetChnAttr success!\n");
stChnAttr.bFrameEn = 0;
stChnAttr.bSpEn = 1;
s32Ret = HI_MPI_VPSS_SetChnAttr(VpssGrp, VpssChn,&stChnAttr);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_SetChnAttr abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_SetChnAttr success!\n");
s32Ret = HI_MPI_VPSS_EnableChn(VpssGrp, VpssChn);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_EnableChn abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_EnableChn success!\n");
s32Ret = HI_MPI_VPSS_StartGrp (VpssGrp);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_StartGrp abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_StartGrp success!\n");
/*****************************/
/* call sys bind interface */
HI_U32 u32FrmCnt = 1;
HI_U32 u32Width = 720;
HI_U32 u32Height = 576;
HI_U32 u32PixelFormat = 0;
printf("Usage: ./vpss_dump [Grp] [Chn] [Count] [Width] [Height] [PixelFormat]\n");
printf("PixelFormat: image pixel format, 0 for semiplanar420 ang 1 for semiplanar422.\n");
SAMPLE_MISC_VpssDump(VpssGrp,VpssChn,u32FrmCnt,u32Width,u32Height,u32PixelFormat);
/*****************************/
s32Ret = HI_MPI_VPSS_StopGrp (VpssGrp);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_StopGrp abnormally!-------%x\n",s32Ret);
return s32Ret;
}else printf("HI_MPI_VPSS_StopGrp success!\n");
s32Ret = HI_MPI_VPSS_DisableChn(VpssGrp, VpssChn);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_DisableChn abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_DisableChn success!\n");
/*****************************/
/* call sys unbind interface */
/*****************************/
s32Ret = HI_MPI_VPSS_DestroyGrp(VpssGrp);
if(s32Ret != HI_SUCCESS)
{
printf("HI_MPI_VPSS_DestroyGrp abnormally!-------%x\n",s32Ret);
//return s32Ret;
}else printf("HI_MPI_VPSS_DestroyGrp success!\n");
另外:
# cat /dev/logmpp
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VPSS_GetChnMode [Line]:3408 [Info]:<3>[ vpss] [grp0}:vpss unexist!
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
<3>[ vpss] [Func]:VpssIoctl [Line]:377 [Info]:<3>[ vpss] MPP vpss not init !
请各位大侠帮忙看看是怎么回事?跪谢!!!!!!!
我来回答
回答13个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2020-05-28 10:30:33
-
2015-06-16 10:53:32
-
2015-03-14 15:03:06
-
2015-05-22 15:22:29
-
2015-07-08 11:01:06
-
2016-08-05 08:08:51
-
2015-12-09 16:06:28
-
2020-07-31 17:16:33
-
2021-03-18 19:48:30
-
2020-06-13 12:20:03
-
2015-07-22 09:55:25
-
2019-08-29 09:37:01
-
2016-03-21 16:08:03
-
2017-05-25 10:25:04
-
2018-10-12 13:31:57
-
2015-05-21 11:33:10
-
2018-06-02 16:49:34
-
2008-08-02 16:47:25
-
2017-01-12 19:58:05
无更多相似问答 去提问
点击登录
-- 积分
-- 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币)
取消
确认