---
title: acl.himpi.venc_get_intra_refresh
description: "| c函数原型 | hi\_s32 hi\_mpi\_venc\_get\_intra\_refresh(hi\_venc\_chn chn, hi\_venc\_intra\_refresh \*intra\_refresh) |"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgp/aclpythondevg_01_0526.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgp/aclpythondevg_01_0526.html
indexId: 0de1eeed2de8721231cf933473036c44263bd4a4ad35751c0661a9ead37c636f108
---
# acl.himpi.venc_get_intra_refresh

| c函数原型 | hi\_s32 hi\_mpi\_venc\_get\_intra\_refresh(hi\_venc\_chn chn, hi\_venc\_intra\_refresh \*intra\_refresh) |
| --- | --- |
| Python函数 | intra\_refresh, ret = acl.himpi.venc\_get\_intra\_refresh(chn) |
| 函数功能 | 获取P帧刷新Islice的设置参数。 |
| 输入说明 | chn：int，编码通道号。 Atlas 200/500 A2推理产品，编码通道号的取值范围：[0, 128)，JPEGE功能和VENC功能共用通道，且通道总数最多128。 |
| 返回值说明 | intra\_refresh：dict，刷Islice的参数字典。参见hi\_venc\_intra\_refresh。 ret：int，错误码。 返回0表示成功。 返回非0表示失败，参见VENC视频/JPEGE图像编码返回码。 |
| 约束说明 | 本接口必须在编码通道创建之后，编码通道销毁之前调用。 切换GOP模式时，获取的属性是已设置的最新的属性。 |
