Function: dvpp_get_jpege_config_level

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Obtains encoding configuration data.

Prototype

  • C Prototype
    1
    uint32_t acldvppGetJpegeConfigLevel(const acldvppJpegeConfig *jpegeConfig)
    
  • Python Function
    1
    level = acl.media.dvpp_get_jpege_config_level(dvpp_jpege_config)
    

Parameters

Parameter

Description

dvpp_jpege_config

Int, pointer address of the encoding configuration data. acl.media.dvpp_create_jpege_config is called to create the data of the acldvppJpegeConfig type, and acl.media.dvpp_set_jpege_config_level is called to set the encoding configuration data.

Return Value

Return Value

Description

level

Int, encoding quality level.

For the Atlas training product, 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 product, the value range is [1, 100]. A smaller value indicates poorer output image quality.

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

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

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