---
title: 函数：dvpp_set_stream_desc_format
description: "| C函数原型 | aclError acldvppSetStreamDescFormat(acldvppStreamDesc \\*streamDesc, acldvppStreamFormat format) |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0254.html"
---

# 函数：dvpp_set_stream_desc_format

| C函数原型 | aclError acldvppSetStreamDescFormat(acldvppStreamDesc \*streamDesc, acldvppStreamFormat format) |
| --- | --- |
| Python函数 | ret = acl.media.dvpp\_set\_stream\_desc\_format(dvpp\_stream\_desc, format) |
| 函数功能 | 设置视频码流描述参数：视频码流格式。 |
| 输入说明 | dvpp\_stream\_desc：int，视频码流描述信息。 format：int，视频码流格式（h264/h265）。 0：H265\_MAIN\_LEVEL 1：H264\_BASELINE\_LEVEL 2：H264\_MAIN\_LEVEL 3：H264\_HIGH\_LEVEL |
| 返回值说明 | ret：int，错误码。 返回0表示成功。 返回其它值表示失败。 |
| 约束说明 | 无 |
