---
title: 函数：vdec_set_channel_desc_entype
description: "| C函数原型 | aclError aclvdecSetChannelDescEnType(aclvdecChannelDesc \\*channelDesc, acldvppStreamFormat enType) |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0336.html"
---

# 函数：vdec_set_channel_desc_entype

| C函数原型 | aclError aclvdecSetChannelDescEnType(aclvdecChannelDesc \*channelDesc, acldvppStreamFormat enType) |
| --- | --- |
| Python函数 | ret = acl.media.vdec\_set\_channel\_desc\_entype(vdec\_channel\_desc, entype) |
| 函数功能 | 设置视频解码处理通道描述信息的属性：视频编码协议。 |
| 输入说明 | vdec\_channel\_desc：int，视频解码处理通道描述信息的指针地址。 entype：int，视频编码协议。 0：H265\_MAIN\_LEVEL 1：H264\_BASELINE\_LEVEL 2：H264\_MAIN\_LEVEL 3：H264\_HIGH\_LEVEL |
| 返回值说明 | ret：int，错误码。 返回0表示成功。 返回其它值表示失败。 |
