venc_set_streamcopy_param

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas training products

x

Atlas inference products

Atlas 200I/500 A2 inference products

x

Function Usage

Sets the frame copy parameter.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_venc_set_streamcopy_param(hi_venc_chn, const hi_venc_streamcopy_param *streamcopy_param)
    
  • Python Function
    1
    ret = acl.himpi.venc_set_streamcopy_param(chn, streamcopy_param)
    

Parameter Description

Parameter

Description

chn

Int, encoding channel ID.

streamcopy_param

Dict, frame copy parameter. For details, see hi_venc_streamcopy_param.

Return Value Description

Return Value

Description

ret

Int, error code.

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.