acldvppPngPredictDecSize
Description
Predicts the size of the output buffer allocation required for PNG decoding based on the input PNG image buffer.
Prototype
aclError acldvppPngPredictDecSize(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 PNG image. |
|
size |
Input |
Buffer size in bytes. |
|
outputPixelFormat |
Input |
Destination format.
|
|
decSize |
Output |
Pointer to the size of the output buffer for the decoded PNG image, in bytes. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: PNGD Image Decoding