创建视频解码处理的通道,同一个通道可以重复使用,销毁后不再可用,同步接口。
用户在实现VDEC功能时,无需再单独调用aclrtCreateStream接口、aclrtSubscribeReport接口,但aclrtCreateStream接口、aclrtSubscribeReport接口的约束需要遵循,例如Stream的数量、处理Stream上回调函数的线程数量等。
aclError aclvdecCreateChannel(aclvdecChannelDesc *channelDesc)
参数名 |
输入/输出 |
说明 |
---|---|---|
channelDesc |
输入&输出 |
通道描述信息的指针。 需提前调用aclvdecCreateChannelDesc接口创建aclvdecChannelDesc类型的数据,再调用aclvdecSetChannelDesc系列接口设置通道描述信息的属性。 |
返回0表示成功,返回其它值表示失败。