pngd_create_chn
产品支持情况
产品  | 
是否支持  | 
|---|---|
√  | 
|
√  | 
|
x  | 
|
√  | 
|
√  | 
|
x  | 
使用说明
c函数原型  | 
hi_s32 hi_mpi_pngd_create_chn(hi_pngd_chn chn, const hi_pngd_chn_attr *attr)  | 
|---|---|
Python函数  | 
ret = acl.himpi.pngd_create_chn(chn, attr)  | 
函数功能  | 
根据设置的通道属性创建解码通道。  | 
输入说明  | 
chn: int,解码通道号。 该参数的取值范围为[0, 128),通道总数最多128。  说明:  
对于 
 对于 
 昇腾虚拟化实例(Ascend Virtual Instance)在各场景下的算力资源规格,在安装昇腾AI处理器的服务器上使用npu-smi info -t template-info命令查看。 attr:dict,解码通道属性字典,具体请参见hi_pngd_chn_attr。  | 
返回值说明  | 
ret:int,错误码。 
  | 
约束说明  | 
  | 
参考场景  | 
接口调用流程,参见功能及约束说明。  |