venc_create_chn
c函数原型 |
hi_s32 hi_mpi_venc_create_chn(hi_venc_chn chn, const hi_venc_chn_attr *attr); |
---|---|
Python函数 |
ret = acl.himpi.venc_create_chn(chn, attr) |
函数功能 |
创建编码通道。 |
输入说明 |
chn:int,编码通道号。
说明:
对于 对于 对于 昇腾虚拟化实例(Ascend Virtual Instance)在各场景下的算力资源规格,在安装昇腾AI处理器的服务器上使用npu-smi info -t template-info命令查看。 attr:dict,编码通道属性字典,具体请参见hi_venc_chn_attr。 |
返回值说明 |
ret:int,错误码。
|
约束说明 |
|
参考资源 |
参考信息
编码协议 |
编码方式 |
码流 Buffer 深度 |
获取码流模式 |
编码 profile |
---|---|---|---|---|
H.264 |
Frame |
|
Frame/Slice |
Baseline Mainprofile Highprofile |
JPEG |
Frame |
|
Frame/Ecs |
Baseline |
H.265 |
Frame |
|
Frame/Slice |
Main profile Main 10 profile(暂不支持) |
|
Frame/Slice |
Main 10 profile(暂不支持) |