acldvppJpegGetImageInfo
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Description
Reads the width, height, and color channel count from the buffer that stores the JPEG image data.
This API checks whether the image format supports decoding. If the image format does not support decoding, the API returns the ACL_ERROR_UNSUPPORTED_JPEG error code. For details about the error code, see aclError.
Prototype
1 2 3 4 5 | aclError acldvppJpegGetImageInfo(const void *data, uint32_t size, 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 JPEG image. |
size |
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
If the value is 0, the information is obtained successfully. If the value is not 0, the information fails to be obtained. For details, see aclError.