Function: dvpp_jpeg_get_image_info_v2
C Prototype |
aclError acldvppJpegGetImageInfoV2(const void *data, uint32_t size, uint32_t *width, uint32_t *height, int32_t *components, acldvppJpegFormat *format) |
|---|---|
Python Function |
width, height, components, format, ret = acl.media.dvpp_jpeg_get_image_info_v2(data, size) |
Function Usage |
Reads the width, height, color channel count, and format of a JPEG image from the buffer that stores the JPEG image data. This API checks whether the image format supports decoding. For an unsupported stream, the API returns the error code ACL_ERROR_UNSUPPORTED_JPEG. See aclError for more details. |
Input Description |
data: int, pointer address of the memory location that stores the JPEG image data. size: int, memory size, in bytes. |
Return Value |
width: int, pointer address of the image width. height: int, pointer address of the image height. components: int, pointer address of the number of color channels. format: int, pointer address of the JPEG source format. ret: int, error code.
|