Function: dvpp_get_jpege_config_level

C Prototype

uint32_t acldvppGetJpegeConfigLevel(const acldvppJpegeConfig *jpegeConfig)

Python Function

level = acl.media.dvpp_get_jpege_config_level(dvpp_jpege_config)

Function Usage

Obtains encoding configuration data.

Input 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

level: int, encoding quality level.

For the Atlas 200/300/500 Inference 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 Training Series 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.