下载
中文
注册

acl.himpi.venc_set_intra_refresh

c函数原型

hi_s32 hi_mpi_venc_set_intra_refresh(hi_venc_chn chn, const hi_venc_intra_refresh *intra_refresh)

Python函数

ret = acl.himpi.venc_set_intra_refresh(chn, intra_refresh)

函数功能

设置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,错误码。

约束说明

  • 仅支持H.265/H.264、GOP模式为“HI_VENC_GOP_MODE_NORMAL_P”的编码通道。
  • 调用acl.himpi.venc_set_ref_param接口设置高级跳帧参考后需要重新进行设置,不支持高级跳帧参考“pred_en”为0。
  • 建议在创建通道后、启动编码前先调用acl.himpi.venc_get_intra_refresh接口获取P帧刷Islice的设置参数后,再调用本接口设置P帧刷Islice的参数。
  • 调用本接口使能P帧刷Islice时,会生成一个I帧,且需等下一个GOP的IDR帧才能生效;关闭P帧刷Islice参数时会立即生效。