---
title: hi_mpi_venc_get_intra_refresh
description: "获取P帧刷新Islice的设置参数。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1079.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1079.html
indexId: 347fd8869d78dd1dca25419818bae631828cef30c96257c9551c9048d7ce94e2105
---
# hi_mpi_venc_get_intra_refresh

#### 函数功能

获取P帧刷新Islice的设置参数。


#### 约束说明

- 本接口必须在编码通道创建之后，编码通道销毁之前调用。
- 切换GOP模式时，获取的属性是已设置的最新的属性。


#### 函数原型

hi_s32 hi_mpi_venc_get_intra_refresh(hi_venc_chn chn, hi_venc_intra_refresh *intra_refresh)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| chn | 输入 | 编码通道号。 Atlas 200/500 A2推理产品，编码通道号的取值范围：[0, 128)，JPEGE功能和VENC功能共用通道，且通道总数最多128。 |
| intra\_refresh | 输出 | 刷Islice的参数。 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  VENC视频编码/JPEGE图片编码返回码
