acldvppJpegDecodeAsync

Description

Decodes a .jpg, .jpeg, .JPG, or .JPEG image. This API is asynchronous.

Restrictions

This API is asynchronous. The API call delivers a task rather than executes a task. After this API is called, call the synchronization API (for example, aclrtSynchronizeStream) to ensure that the task is complete.

Prototype

aclError acldvppJpegDecodeAsync(acldvppChannelDesc *channelDesc,

const void *data,

uint32_t size,

acldvppPicDesc *outputDesc,

aclrtStream stream)

Parameters

Parameter

Input/Output

Description

channelDesc

Input

Pointer to the channel description.

Must be the same as the channelDesc argument passed to the acldvppCreateChannel call.

data

Input

Pointer to the input buffer address.

size

Input

Actual size of the input image, in bytes.

outputDesc

Input/Output

Pointer to the output image description.

When outputDesc is used as an input, the user needs to:

When outputDesc is used as an output, you can obtain the decoding output from the buffer address and call the acldvppGetPicDesc series to obtain the width and height of the output image.

stream

Input

Stream.

Returns

0 on successful task delivery; else, failure.

See Also

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