3879
- 收藏
- 点赞
- 分享
- 举报
HI_MPI_VDEC_SetUserPic((VDEC_CHN)m_nDecChnl, pUserImage)接口使用
1 想给解码通道设置用户图片,看到HI_MPI_VDEC_SetUserPic()接口设置时,必须先设置用户图片先必须先调用接口 HI_MPI_VDEC_DisableUserPic 禁止使能用户图片,否则返回错误码HI_ERR_VDEC_NOT_PERM。
实现流程如下:
1 nRet = HI_MPI_VDEC_DisableUserPic((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_DisableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_DisablePic;
}
nRet = HI_MPI_VDEC_SetUserPic((VDEC_CHN)m_nDecChnl, pUserImage);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_DisableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_SetUserPic;
}
2 nRet = HI_MPI_VDEC_StopRecvStream((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_StopRecvStream error 0x%X ####\n", nRet);
return enHisiDec_Error_StopDec;
}
nRet = HI_MPI_VDEC_EnableUserPic((VDEC_CHN)m_nDecChnl, HI_TRUE);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_EnableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_EnablePic;
}
3 停止用户图片
nRet = HI_MPI_VDEC_DisableUserPic((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_DisableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_DisablePic;
}
//复位解码通道
nRet = HI_MPI_VDEC_ResetChn((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_ResetChn error 0x%X ####\n", nRet);
return enHisiDec_Error_ResetChnl;
}
//开启解码通道解码
nRet = HI_MPI_VDEC_StartRecvStream((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_StartRecvStream error 0x%X ####\n", nRet);
return enHisiDec_Error_StartDec;
}
现在,解码通道都stop了,看见Vdec下并没有解码实际输出啊,求大神指教
cat /proc/umap/vdec
[VDEC] Version: [Hi3536_MPP_V2.0.5.0 B020 Release], Build Time[Jun 14 2016, 09:16:40]
-----MODULE PARAM--------------------------------------------------------------
obey_minCR MiniBufMode VBSource
0 0 1
-----CHN ATTR & PARAMS-------------------------------------------------------
ID TYPE Prior MaxW MaxH Width Height StrmInputMode Compress STATE
0 H264 200 1920 1080 0 0 FRAME/NOBLOCK N STOP
1 H265 200 3840 2160 0 0 FRAME/NOBLOCK N START
2 H264 200 1920 1080 0 0 FRAME/NOBLOCK N STOP
3 H265 200 3840 2160 0 0 FRAME/NOBLOCK N START
ID VfmwID RefNum MvpEnable DispNum BufSize MaxSlice MaxSPS MaxPPS MaxVPS DisplayMode
0 1 2 No 3 4147200 136 2 2 0 Preview
1 2 2 Yes 3 16588800 136 2 2 2 Preview
2 3 2 No 3 4147200 136 2 2 0 Preview
3 4 2 Yes 3 16588800 136 2 2 2 Preview
ID ErrThr StrmThr DecMode OutMode SetUserPic Rotate PicPoolId PmvPoolId PriVbCnt
0 30 0 IP Dec Y 0 10 -1 6
1 30 0 IP Dec N 0 11 12 6
2 30 0 IP Dec Y 0 15 -1 6
3 30 0 IP Dec N 0 16 17 6
-----CHN STATE-----------------------------------------------------------------
ID PrtclErr StrmUnSP StrmError RefNumErr PicSizeErr fmterror PicBufSizeErr StrmNotRls Notify
0 0 0 0 0 0 0 0 0 2
1 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 2
3 0 0 0 0 0 0 0 0 0
ID fps TimerCnt BufFLen DataLen UsrFLen UsrLen ptsBufF ptsBufU StreamEnd
0 0 1 5185489 0 4064 0 39 0 1
1 0 540253 20738016 0 4064 0 39 0 0
2 0 1 5185489 0 4064 0 39 0 1
3 0 540013 20738016 0 4064 0 39 0 0
----- Detail Stream STATE -----------------------------------------------------------
ID MpiSndNum MpiSndLen VdecNum VdecLen FmGetNum FmGetLen FmRlsNum FmRlsLen FmLstGet FmRlsFail
0 0 0 0 0 1 15 0 0 15 0
1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 1 15 0 0 15 0
3 0 0 0 0 0 0 0 0 0 0
----- Detail FrameStore STATE -----------------------------------------------------------
ID FmNewPic GetFromFm Discard UsrSnd KerSnd KerRls MeetEnd FrmInVdec CurPicPts RedDiff MaxRedDiff DecDiff MaxDecDiff
0 0 0 0 0 0 0 0 0 0 18 18 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 4 4 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 0
ID FreeNode VfmwNode VgsNode VgsWorkingNode BusyNode UserNode RefNum IsAvalible VbCnt MaxVbCnt GetPicVbFail GetMvpVbFail
0 38 0 0 0 2 0 0 1 -547529 6 0 0
1 40 0 0 0 0 0 0 1 1 6 0 0
2 38 0 0 0 2 0 0 1 -540627 6 0 0
3 40 0 0 0 0 0 0 1 1 6 0 0
----- Detail UserData STATE -----------------------------------------------------------
ID MpiGet MpiGetLen MpiRls MpiRlsLen Discard DiscardLen GetFromFm GetFromFmLen UsrFLen UsrLen
0 0 0 0 0 0 0 0 0 4064 0
1 0 0 0 0 0 0 0 0 4064 0
2 0 0 0 0 0 0 0 0 4064 0
3 0 0 0 0 0 0 0 0 4064 0
实现流程如下:
1 nRet = HI_MPI_VDEC_DisableUserPic((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_DisableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_DisablePic;
}
nRet = HI_MPI_VDEC_SetUserPic((VDEC_CHN)m_nDecChnl, pUserImage);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_DisableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_SetUserPic;
}
2 nRet = HI_MPI_VDEC_StopRecvStream((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_StopRecvStream error 0x%X ####\n", nRet);
return enHisiDec_Error_StopDec;
}
nRet = HI_MPI_VDEC_EnableUserPic((VDEC_CHN)m_nDecChnl, HI_TRUE);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_EnableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_EnablePic;
}
3 停止用户图片
nRet = HI_MPI_VDEC_DisableUserPic((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_DisableUserPic error 0x%X ####\n", nRet);
return enHisiDec_Error_DisablePic;
}
//复位解码通道
nRet = HI_MPI_VDEC_ResetChn((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_ResetChn error 0x%X ####\n", nRet);
return enHisiDec_Error_ResetChnl;
}
//开启解码通道解码
nRet = HI_MPI_VDEC_StartRecvStream((VDEC_CHN)m_nDecChnl);
if (nRet != HI_SUCCESS)
{
HISI_MPP_PRT("#### HI_MPI_VDEC_StartRecvStream error 0x%X ####\n", nRet);
return enHisiDec_Error_StartDec;
}
现在,解码通道都stop了,看见Vdec下并没有解码实际输出啊,求大神指教
cat /proc/umap/vdec
[VDEC] Version: [Hi3536_MPP_V2.0.5.0 B020 Release], Build Time[Jun 14 2016, 09:16:40]
-----MODULE PARAM--------------------------------------------------------------
obey_minCR MiniBufMode VBSource
0 0 1
-----CHN ATTR & PARAMS-------------------------------------------------------
ID TYPE Prior MaxW MaxH Width Height StrmInputMode Compress STATE
0 H264 200 1920 1080 0 0 FRAME/NOBLOCK N STOP
1 H265 200 3840 2160 0 0 FRAME/NOBLOCK N START
2 H264 200 1920 1080 0 0 FRAME/NOBLOCK N STOP
3 H265 200 3840 2160 0 0 FRAME/NOBLOCK N START
ID VfmwID RefNum MvpEnable DispNum BufSize MaxSlice MaxSPS MaxPPS MaxVPS DisplayMode
0 1 2 No 3 4147200 136 2 2 0 Preview
1 2 2 Yes 3 16588800 136 2 2 2 Preview
2 3 2 No 3 4147200 136 2 2 0 Preview
3 4 2 Yes 3 16588800 136 2 2 2 Preview
ID ErrThr StrmThr DecMode OutMode SetUserPic Rotate PicPoolId PmvPoolId PriVbCnt
0 30 0 IP Dec Y 0 10 -1 6
1 30 0 IP Dec N 0 11 12 6
2 30 0 IP Dec Y 0 15 -1 6
3 30 0 IP Dec N 0 16 17 6
-----CHN STATE-----------------------------------------------------------------
ID PrtclErr StrmUnSP StrmError RefNumErr PicSizeErr fmterror PicBufSizeErr StrmNotRls Notify
0 0 0 0 0 0 0 0 0 2
1 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 2
3 0 0 0 0 0 0 0 0 0
ID fps TimerCnt BufFLen DataLen UsrFLen UsrLen ptsBufF ptsBufU StreamEnd
0 0 1 5185489 0 4064 0 39 0 1
1 0 540253 20738016 0 4064 0 39 0 0
2 0 1 5185489 0 4064 0 39 0 1
3 0 540013 20738016 0 4064 0 39 0 0
----- Detail Stream STATE -----------------------------------------------------------
ID MpiSndNum MpiSndLen VdecNum VdecLen FmGetNum FmGetLen FmRlsNum FmRlsLen FmLstGet FmRlsFail
0 0 0 0 0 1 15 0 0 15 0
1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 1 15 0 0 15 0
3 0 0 0 0 0 0 0 0 0 0
----- Detail FrameStore STATE -----------------------------------------------------------
ID FmNewPic GetFromFm Discard UsrSnd KerSnd KerRls MeetEnd FrmInVdec CurPicPts RedDiff MaxRedDiff DecDiff MaxDecDiff
0 0 0 0 0 0 0 0 0 0 18 18 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 4 4 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 0
ID FreeNode VfmwNode VgsNode VgsWorkingNode BusyNode UserNode RefNum IsAvalible VbCnt MaxVbCnt GetPicVbFail GetMvpVbFail
0 38 0 0 0 2 0 0 1 -547529 6 0 0
1 40 0 0 0 0 0 0 1 1 6 0 0
2 38 0 0 0 2 0 0 1 -540627 6 0 0
3 40 0 0 0 0 0 0 1 1 6 0 0
----- Detail UserData STATE -----------------------------------------------------------
ID MpiGet MpiGetLen MpiRls MpiRlsLen Discard DiscardLen GetFromFm GetFromFmLen UsrFLen UsrLen
0 0 0 0 0 0 0 0 0 4064 0
1 0 0 0 0 0 0 0 0 4064 0
2 0 0 0 0 0 0 0 0 4064 0
3 0 0 0 0 0 0 0 0 4064 0
我来回答
回答0个
时间排序
认可量排序
暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2018-06-27 14:38:29
-
2018-04-11 11:57:27
-
2015-09-18 19:47:59
-
2017-08-21 15:48:34
-
2019-09-06 17:25:55
-
2020-03-09 14:42:42
-
2020-03-07 16:16:03
-
2018-11-20 21:43:05
-
2015-02-04 11:24:11
-
142020-05-06 11:10:40
-
2018-12-06 11:16:55
-
2018-04-24 10:48:36
-
2018-09-05 12:03:42
-
2016-06-06 14:43:36
-
2016-10-10 23:31:33
-
2019-12-10 15:49:18
-
2017-06-05 10:13:52
-
2018-12-06 15:30:27
-
2018-07-17 14:39:45
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5RK3588的DPHY0接lt6911uxe转HDMI抓帧分辨率不对
-
20求rv1106板子的sdk包或者开发板资料
-
10ss928烧录uboot失败
-
10求助,3588调试imx586和ov50c40时,按照瑞芯微的单摄8k配置好设备树后,驱动配置的8k分辨率的,但是只能抓到4k的图,且颜色偏粉
-
50帮忙解决个交叉编译的问题
-
20帮忙交叉编译个源码
-
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
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认