Function: venc_set_frame_config_eos

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

Sets a single-frame encoding configuration.

Prototype

  • C Prototype
    1
    aclError aclvencSetFrameConfigEos(aclvencFrameConfig *config, uint8_t eos)
    
  • Python Function
    1
    ret = acl.media.venc_set_frame_config_eos(config, eos)
    

Parameter Description

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.

eos

Int, whether a frame is EOS.

  • 0: No
  • 1: Yes

Return Value Description

Return Value

Description

ret

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