Function: venc_get_frame_config_force_i_frame

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

Function Usage

Obtains a single-frame encoding configuration.

Prototype

  • C Prototype
    1
    uint8_t aclvencGetFrameConfigForceIFrame(const aclvencFrameConfig *config);
    
  • Python Function
    1
    force_i_frame = acl.media.venc_get_frame_config_force_i_frame(config)
    

Parameter Description

Parameter

Description

config

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

force_i_frame

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

  • 0: No
  • 1: Yes

Return Value Description

Return Value

Description

ret

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