acl.himpi.venc_set_ref_param
C Prototype |
hi_s32 hi_mpi_venc_set_ref_param(hi_venc_chn chn, const hi_venc_ref_param *ref_param) |
|---|---|
Python Function |
ret = acl.himpi.venc_set_ref_param(chn, ref_param) |
Function Usage |
Sets the advanced frame skipping reference parameters of an H.264/H.265 encoding channel to change the inter-frame reference relationship. For details about the advanced frame skipping mode, see Advanced Frame Skipping Modes. The Atlas 200/300/500 Inference Product does not support this API. The Atlas Training Series Product does not support this API. |
Input Description |
chn: int, encoding channel ID.
ref_param: dict, dictionary of advanced frame skipping reference parameters for an H.264/H.265 encoding channel. For details, see hi_venc_ref_param. |
Return Value |
ret: int, error code.
|
Restrictions |
|
Advanced Frame Skipping Modes
The advanced frame skipping reference modes involve three parameters: base, enhance, and pred_en. For details about their meanings, see hi_venc_ref_param. The following figures show the advanced frame skipping reference modes.
- To configure the advanced frame skipping reference in dual_p mode when sp_interval is not 0, the following condition must be met: base x (enhance + 1) = sp_interval. Using the 4x advanced frame skipping reference (base = 2 and enhance = 1) as an example, sp_interval of the dual_p mode = 2 x (1 + 1) = 4.
- Schematic diagram of advanced frame skipping reference in normal_p mode




