Function: dvpp_png_get_image_info

C Prototype

aclError acldvppPngGetImageInfo(const void *data, uint32_t dataSize, uint32_t *width, uint32_t *height,

int32_t *components)

Python Function

width, height, components, ret = acl.media.dvpp_png_get_image_info(data, data_size)

Function Usage

Obtains the width and height of a PNG image from the image memory.

Input Description

data: int, pointer address of the memory location that stores the PNG image data.

data_size: int, buffer size, in bytes.

Return Value

width: int, image width.

height: int, image height.

components: int, number of color channels.

ret: int, error code.