acldvppPngGetImageInfo
Description
Reads the width and height of a PNG image from the memory that stores the PNG image data.
Prototype
aclError acldvppPngGetImageInfo(const void *data,
uint32_t dataSize,
uint32_t *width,
uint32_t *height,
int32_t *components)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
data |
Input |
Pointer to the address of the memory that stores the PNG image. |
dataSize |
Input |
Buffer size in bytes. |
width |
Output |
Pointer to the image width. |
height |
Output |
Pointer to the image height. |
components |
Output |
Pointer to the number of color channels. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: PNGD Image Decoding