Function: dvpp_set_jpege_config_level

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Sets an encoding configuration.

Prototype

  • C Prototype
    1
    aclError acldvppSetJpegeConfigLevel(acldvppJpegeConfig *jpegeConfig, uint32_t level)
    
  • Python Function
    1
    ret = acl.media.dvpp_set_jpege_config_level(dvpp_jpege_config, level)
    

Parameter Description

Parameter

Description

dvpp_jpege_config

Int, pointer address of the encoding configuration data. acl.media.dvpp_create_jpege_config is called to create encoding configuration data.

level

Int, encoding quality level.

For the Atlas training products, the value range is [0, 100]. The quality of level 0 is similar to that of level 100. A smaller value in the range of [1, 100] indicates poorer output image quality.

For the Atlas inference products, the value range is [1, 100]. A smaller value indicates poorer output image quality.

For the Atlas A2 training products/Atlas A2 inference products, the value range is [1, 100]. A smaller value indicates poorer output image quality.

For the Atlas 200I/500 A2 inference products, the value range is [1, 100]. A smaller value indicates poorer output image quality.

For the Atlas A3 training products/Atlas A3 inference products, the value range is [1, 100]. A smaller value indicates poorer output image quality.

Return Value Description

Return Value

Description

ret

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