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的设置参数。

Atlas 200/300/500 推理产品,不支持该接口。

Atlas 训练系列产品,不支持该接口。

Atlas A2训练系列产品/Atlas 800I A2推理产品,不支持该接口。

输入说明

chn:int,编码通道号。

  • Atlas 推理系列产品,编码通道号的取值范围:[0, 256),JPEGE功能和VENC功能共用通道,且通道总数最多256。
  • Atlas 200I/500 A2推理产品,编码通道号的取值范围:[0, 128),JPEGE功能和VENC功能共用通道,且通道总数最多128。

返回值说明

intra_refresh:dict,刷Islice的参数字典。参见hi_venc_intra_refresh

ret:int,错误码。

约束说明

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