acldvppJpegPredictDecSize
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Description
Predicts the size of the output buffer allocation required for JPEG decoding based on the JPEG input buffer.
Prototype
1 2 3 4 |
aclError acldvppJpegPredictDecSize(const void *data, uint32_t dataSize, acldvppPixelFormat outputPixelFormat, uint32_t *decSize) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
data |
Input |
Pointer to the address of the memory that stores the JPEG image. |
|
dataSize |
Input |
Buffer size in bytes. |
|
outputPixelFormat |
Input |
Format of the decoded output image. For details about the type definition, see acldvppPixelFormat. |
|
decSize |
Output |
Pointer to the predicted allocation in bytes for the output image. |
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.