acldvppSetJpegeConfigLevel

Applicable Products

Product

Supported

Ascend 950PR&950DT products

x

Atlas A3 products

√

Atlas A2 products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function

Sets an encoding configuration.

Prototype

1
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.

The value range is [1, 100]. A smaller value indicates poorer output image quality.

Returns

0 on success; else, failure. For details, see aclError.