Function: dvpp_jpeg_get_image_info_v2
Applicable Products
Product |
Supported (√/x) |
|---|---|
x |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Reads the width, height, color channel count, and format of a JPEG image from the memory that stores the JPEG image data.
Checks whether the image format supports decoding. For an unsupported stream, this API returns the error code ACL_ERROR_UNSUPPORTED_JPEG. See aclError for more details.
Prototype
- C Prototype
1aclError acldvppJpegGetImageInfoV2(const void *data, uint32_t size, uint32_t *width, uint32_t *height, int32_t *components, acldvppJpegFormat *format)
- Python Function
1width, height, components, format, ret = acl.media.dvpp_jpeg_get_image_info_v2(data, size)
Parameters
Parameter |
Description |
|---|---|
data |
Int, pointer address of the memory location that stores the JPEG image data. |
size |
Int, memory size, in bytes. |
Return Values
Return Value |
Description |
|---|---|
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: 0 on success; else, failure. |