下载
中文
注册

函数:venc_set_channel_desc_thread_id

C函数原型

aclError aclvencSetChannelDescThreadId(aclvencChannelDesc *channelDesc, uint64_t threadId)

Python函数

ret = acl.media.venc_set_channel_desc_thread_id(venc_channel_desc, thread_id)

函数功能

设置视频编码处理通道描述信息的属性:回调线程ID。

Atlas 训练系列产品,不支持该接口。

Atlas A2训练系列产品/Atlas 800I A2推理产品,不支持该接口。

输入说明

venc_channel_desc:int,视频数据编码处理通道的描述信息的指针地址。

需提前调用acl.media.venc_create_channel_desc接口创建aclvencChannelDesc类型的数据。

thread_id:int,回调线程ID。
说明:

同一个进程内,在不同的Device上注册VENC编码回调函数的线程时,不能指定同一个线程ID。

返回值说明

ret:int,错误码。

  • 返回0表示成功。
  • 返回其它值表示失败。