Function: dvpp_png_predict_dec_size
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Predicts the output buffer allocation required for PNG decoding based on the buffer of the input PNG image.
Prototype
- C Prototype
1aclError acldvppPngPredictDecSize(const void *data,uint32_t dataSize,acldvppPixelFormat outputPixelFormat,uint32_t *decSize)
- Python Function
1dec_size ,ret = acl.media.dvpp_png_predict_dec_size(data, data_size, output_pixel_format)
Parameter Description
|
Parameter |
Description |
|---|---|
|
data |
Int, pointer address of the buffer location that stores the PNG image data. |
|
data_size |
Int, buffer size, in bytes. |
|
output_pixel_format |
Int, format of the decoded output image: |
Return Value Description
|
Return Value |
Description |
|---|---|
|
dec_size |
Int, output buffer size in bytes required for the decoded PNG image. |
|
ret |
Int, error code: 0 on success; else, failure. |