hi_mpi_venc_set_streamcopy_param

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Sets the frame copy parameter.

Restrictions

  • Only H.264/H.265 encoding channels support this API.
  • When frame copy is enabled with a copy interval set to 0, the H.265 SPS/Slice follows the new protocol, while the H.264 protocol remains unchanged. The copy interval can be adjusted later, and there is no need to request an I frame for the copy to take effect in this case. If frame copy is disabled, it can be dynamically enabled at a later time, but it only takes effect in the new IDR.
  • After frame copy is enabled, the temporal motion vector (TMV) automatically becomes invalid.

Prototype

hi_s32 hi_mpi_venc_set_streamcopy_param(hi_venc_chn chn, const hi_venc_streamcopy_param *streamcopy_param)

Parameters

Parameter

Input/Output

Description

chn

Input

Encoding channel ID.

streamcopy_param

Input

Frame copy parameter.

Returns