Function: dvpp_png_predict_dec_size
Product Support
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
x |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Description
Predicts the output buffer allocation required for PNG decoding based on the memory 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)
Parameters
Return Value
|
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. |
Parent topic: PNGD