hi_mpi_venc_set_streamcopy_param

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Sets the frame copy parameter.

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.

Atlas inference products: The value range of the encoding channel ID is [0, 256). The JPEGE and VENC functions share the same channels, and the maximum number of channels is 256.

streamcopy_param

Input

Frame copy parameter.

Returns

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 later, but it only takes effect in the new IDR.
  • After frame copy is enabled, the TMV becomes invalid.