# 函数：vdec_set_channel_desc_bit_depth

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | x |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

设置视频解码处理通道描述信息的属性。


#### 函数原型

- C函数原型
  1 aclError aclvdecSetChannelDescBitDepth(aclvdecChannelDesc *channelDesc, uint32_t bitDepth)

- python函数
  1 ret = acl.media.vdec_set_channel_desc_bit_depth(vdec_channel_desc, desc_bit_depth)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| vdec\_channel\_desc | int，视频解码处理通道的描述信息。 需提前调用acl.media.vdec\_create\_channel\_desc接口创建aclvdecChannelDesc类型的数据。 |
| desc\_bit\_depth | int，设置视频位宽，默认值为10\-bit。 取值范围如下： 0：8\-bit 1: 10\-bit（默认值） Atlas 训练系列产品 ，当前版本不支持用户设置该参数。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，错误码，返回0表示成功，返回其它值表示失败。 |
