If JPEG image decoding is involved during app development, ensure that your app contains the code logic for such image decoding. For details about the API call sequence, see API Call Sequence. For details about the JPEGD functions, see Functions and Restrictions.
The current system supports .jpg, .jpeg, .JPG, and .JPEG image decoding. Different source image encoding formats lead to different output formats. The key APIs are described as follows:
Before creating a channel, call acldvppCreateChannelDesc to create a channel description.
Before allocating output buffer, call acldvppJpegPredictDecSize to predict the required output allocation size based on the JPEG image size.
Also call aclrtSynchronizeStream to wait for the stream tasks to complete.
After destroying the channel, call acldvppDestroyChannelDesc to destroy the channel description.