acldvppSetJpegeConfigLevel

Description

Sets an encoding configuration. This API is synchronous.

Prototype

aclError acldvppSetJpegeConfigLevel(acldvppJpegeConfig *jpegeConfig, uint32_t level)

Parameters

Parameter

Input/Output

Description

jpegeConfig

Output

Pointer to the encoding configuration.

Call acldvppCreateJpegeConfig to create data of the acldvppJpegeConfig type in advance.

level

Input

Encoding quality level.

For the Ascend 310 AI Processor, 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 Ascend 910 AI Processor, 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.

Ascend 310P AI Processor: The value range is [1, 100]. A smaller value indicates poorer output image quality.

Returns

0 on success; else, failure.