---
title: acl.himpi.venc_get_scene_mode
description: "| c函数原型 | hi\\_s32 hi\\_mpi\\_venc\\_get\\_scene\\_mode(hi\\_venc\\_chn chn, hi\\_venc\\_scene\\_mode \\*scene\\_mode) |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0512.html"
---

# acl.himpi.venc_get_scene_mode

| c函数原型 | hi\_s32 hi\_mpi\_venc\_get\_scene\_mode(hi\_venc\_chn chn, hi\_venc\_scene\_mode \*scene\_mode) |
| --- | --- |
| Python函数 | scene\_mode, ret = acl.himpi.venc\_get\_scene\_mode(chn) |
| 函数功能 | 获取场景模式。 |
| 输入说明 | chn：编码通道号。 Atlas 200/500 A2推理产品，编码通道号的取值范围：[0, 128)，JPEGE功能和VENC功能共用通道，且通道总数最多128。 |
| 返回值说明 | scene\_mode：int，当前场景模式。详情请参见hi\_venc\_scene\_mode。 ret：int，错误码。 返回0表示成功。 返回非0表示失败，参见VENC视频/JPEGE图像编码返回码。 |
| 约束说明 | 本接口在编码通道创建之后、编码通道销毁之前调用。 |
| 参考资源 | 无 |
