Function: venc_set_frame_config_force_i_frame

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

Atlas A3 training product/Atlas A3 inference product

x

Atlas A2 training product/Atlas A2 inference product

x

Atlas training product

x

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Sets the single-frame encoding parameters.

Prototype

  • C Prototype
    1
    aclError aclvencSetFrameConfigForceIFrame(aclvencFrameConfig *config, uint8_t forceIFrame);
    
  • Python Function
    1
    ret = acl.media.venc_set_frame_config_force_i_frame(config, force_i_frame)
    

Parameters

Parameter

Description

config

Int, pointer address of the single-frame encoding configuration.

Call acl.media.venc_create_frame_config to create data of the aclvencFrameConfig type in advance.

force_i_frame

Int, whether to forcibly restart the I-frame interval.

  • 0: off
  • 1: I-frame restarted

Return Value

Return Value

Description

ret

Int, error code. 0 on success; else, failure.