3640
- 收藏
- 点赞
- 分享
- 举报
调用HI_MPI_VENC_GetChnAttr 失败
有没有人遇过调用HI_MPI_VENC_SetChnAttr、HI_MPI_VENC_GetChnAttr失败状况?
回覆码都是-1
文档内有说明:如果pstAttr为空,则返回失败
但pstAttr应该是在创建VENC_CHN时,已经有指定了,也有正常创建成功一个VENC通道,但是就是要取(HI_MPI_VENC_GetChnAttr) 或设(HI_MPI_VENC_SetChnAttr)时,无法正常调用,返回值都是-1
请问前辈有没有遇过?
代码如下:
s32Ret = HI_MPI_VENC_GetChnAttr(VencChn, &stAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VENC_GetChnAttr(%d) failed with %#x\n", VencChn, s32Ret);
return HI_FAILURE;
}
stAttr.stVeAttr.stAttrJpeg.u32PicWidth = u16PicWidth;
stAttr.stVeAttr.stAttrJpeg.u32PicHeight = u16PicHeight;
s32Ret = HI_MPI_VENC_SetChnAttr(VencChn, &stAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VENC_SetChnAttr failed with %#x\n ",s32Ret);
}
回覆报错:
HI_MPI_VENC_SetChnAttr failed with 0xffffffff
HI_MPI_VENC_SetChnAttr failed with 0xffffffff
回覆码都是-1
文档内有说明:如果pstAttr为空,则返回失败
但pstAttr应该是在创建VENC_CHN时,已经有指定了,也有正常创建成功一个VENC通道,但是就是要取(HI_MPI_VENC_GetChnAttr) 或设(HI_MPI_VENC_SetChnAttr)时,无法正常调用,返回值都是-1
请问前辈有没有遇过?
代码如下:
s32Ret = HI_MPI_VENC_GetChnAttr(VencChn, &stAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VENC_GetChnAttr(%d) failed with %#x\n", VencChn, s32Ret);
return HI_FAILURE;
}
stAttr.stVeAttr.stAttrJpeg.u32PicWidth = u16PicWidth;
stAttr.stVeAttr.stAttrJpeg.u32PicHeight = u16PicHeight;
s32Ret = HI_MPI_VENC_SetChnAttr(VencChn, &stAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VENC_SetChnAttr failed with %#x\n ",s32Ret);
}
回覆报错:
HI_MPI_VENC_SetChnAttr failed with 0xffffffff
HI_MPI_VENC_SetChnAttr failed with 0xffffffff
我来回答
回答3个
时间排序
认可量排序
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2018-04-18 14:50:55
-
2019-03-13 19:01:25
-
2020-07-22 17:24:15
-
2016-09-20 16:15:23
-
2017-07-21 15:59:08
-
2017-04-14 16:17:12
-
2016-10-26 11:55:21
-
2017-08-10 21:02:27
-
2017-07-21 16:36:43
-
2019-12-11 09:56:34
-
2016-09-10 09:35:34
-
2018-05-21 15:51:48
-
2019-04-10 10:31:16
-
2016-10-28 10:34:01
-
2023-12-19 09:40:48
-
2017-11-27 13:01:20
-
2017-08-02 18:07:23
-
2020-07-23 17:45:58
-
2019-08-30 15:07:18
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
53519dv500接lvds的sensor mn34120,图像出现很多竖线,sensor板接以前的3519v101没问题
-
103403外接hdmi口1024*600显示屏报错
-
5SS928点DC camera的6946,全屏紫色
-
5hi3519 的 网络传输的MTU值可以修改到比1500大嘛?
-
10WS73V100星闪扫描不到设备sle
-
5SS928/SD3403 录像失败 venc stream time out, exit thread; venc 2 stream buffer is full
-
10Hi3516DV500无法运行PQTool软件
-
10君正T23+1084带TF卡插卡(给该主板适配TF卡驱动,电机驱动,适配GPIO)
-
5Hi3536A从vpss获取1080分辨率的yuv数据异常
-
10谁有RV1126 最新版本SDK卖吗?
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认