acldvppJpegPredictDecSize

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Predicts the size of the output buffer allocation required for JPEG decoding based on the JPEG input buffer.

Prototype

aclError acldvppJpegPredictDecSize(const void *data,
uint32_t dataSize,
acldvppPixelFormat outputPixelFormat,
uint32_t *decSize)

Parameters

Parameter

Input/Output

Description

data

Input

Pointer to the address of the memory that stores the JPEG image.

dataSize

Input

Buffer size in bytes.

outputPixelFormat

Input

Format of the decoded output image.

decSize

Output

Pointer to the predicted allocation in bytes for the output image.

Returns

0: The information is obtained successfully. Other values: The information fails to be obtained. For details, see aclError.

See Also

For details about the API call sequence and example, see JPEGD.