4755
- 收藏
- 点赞
- 分享
- 举报
HI3516A平台VENC编码分辨率无法动态修改
文档中提到除通道宽以外,其他都是静态属性。但是我去设置宽高,会报错,请问这是什么问题呢
文档中的说明:
以下是我的代码实现:
[code] HI_S32 ret;
VENC_CHN_ATTR_S venc_chn_attr;
PAYLOAD_TYPE_E payload_type;
ret = HI_MPI_VENC_GetChnAttr(venc_chn, &venc_chn_attr);
if (HI_SUCCESS != 0) {
hi_log_err("failed with %#x!", ret);
goto ERR_EXIT;
}
payload_type = venc_chn_attr.stVeAttr.enType;
if (PT_H264 == payload_type) {
hi_log_info("it is h264");
venc_chn_attr.stVeAttr.stAttrH264e.u32PicWidth = width;
venc_chn_attr.stVeAttr.stAttrH264e.u32PicHeight = height;
}
ret = HI_MPI_VENC_SetChnAttr(venc_chn, &venc_chn_attr);
if (HI_SUCCESS != ret) {
hi_log_err("failed with %#x!", ret);
goto ERR_EXIT;
}[/code]
文档中的说明:
以下是我的代码实现:
[code] HI_S32 ret;
VENC_CHN_ATTR_S venc_chn_attr;
PAYLOAD_TYPE_E payload_type;
ret = HI_MPI_VENC_GetChnAttr(venc_chn, &venc_chn_attr);
if (HI_SUCCESS != 0) {
hi_log_err("failed with %#x!", ret);
goto ERR_EXIT;
}
payload_type = venc_chn_attr.stVeAttr.enType;
if (PT_H264 == payload_type) {
hi_log_info("it is h264");
venc_chn_attr.stVeAttr.stAttrH264e.u32PicWidth = width;
venc_chn_attr.stVeAttr.stAttrH264e.u32PicHeight = height;
}
ret = HI_MPI_VENC_SetChnAttr(venc_chn, &venc_chn_attr);
if (HI_SUCCESS != ret) {
hi_log_err("failed with %#x!", ret);
goto ERR_EXIT;
}[/code]
我来回答
回答21个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
加载中···
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2015-04-20 17:16:44
-
2016-03-14 14:05:01
-
112013-08-07 10:07:13
-
2025-08-15 12:08:22
-
2018-07-20 11:54:52
-
2024-04-16 11:22:15
-
2019-03-13 15:04:57
-
2016-08-11 18:49:28
-
2017-03-14 15:00:47
-
2017-09-19 17:40:11
-
2018-01-03 14:07:45
-
2019-07-16 17:43:43
-
2017-05-12 18:18:57
-
2020-08-27 12:03:07
-
2017-10-16 17:27:10
-
2018-09-21 11:12:04
-
22026-03-20 09:20:36
-
32014-12-05 15:25:51
-
2019-09-24 16:56:17
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
10T32crop和fcrop怎么从中间裁剪?
-
53516卡死问题
-
10hi3516cv610 去除风扇声音,人说话声音正常输出不变声
-
5hi3516cv610适配imx662的wdr模式出图图像不正常怎么去解决
-
5ss928 [sample_comm_venc_get_venc_stream_proc]-2627: get venc stream time out, exit thread
-
10要一份RK3576最新硬件资料包
-
5海思DPU的查找表怎么获取
-
10海思Hi3519DV500 自动对焦算法求助
-
10鸿欧派 Hi3519Dv500
-
10【求助】RK3576实现推流和GC2053摄像头颜色偏绿
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友
文件: