acldvppPngPredictDecSize
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Description
Predicts the size of the output buffer allocation required for PNG decoding based on the input PNG image buffer.
Prototype
1 2 3 4 |
aclError acldvppPngPredictDecSize(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 PNG image. |
|
dataSize |
Input |
Buffer size in bytes. |
|
outputPixelFormat |
Input |
Format of the decoded output image. For details about the type definition, see acldvppPixelFormat. The following formats are supported:
|
|
decSize |
Output |
Pointer to the size of the output buffer for the decoded PNG image, in bytes. |
Returns
0 on success; otherwise, failure. For details, see aclError.