If PNG 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 PNGD functions, see Functions and Restrictions.
The current system supports PNG image decoding and output of RGB and RGBA images. The key APIs are described as follows:
Before creating a channel, call acldvppCreateChannelDesc to create a channel description.
Before allocating output buffer, call acldvppPngPredictDecSize to predict the required buffer allocation for the decoding output based on the size of the PNG image.
Also call aclrtSynchronizeStream to wait for the stream tasks to complete.
After destroying the channel, call acldvppDestroyChannelDesc to destroy the channel description.