Function: dvpp_jpeg_predict_enc_size
Applicable Products
|
Product |
Supported (√/x) |
|---|---|
|
|
x |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Description
Predicts the size of the output buffer allocation required for image encoding based on the input image description and image encoding configuration.
Prototype
- C Prototype
1aclError acldvppJpegPredictEncSize(const acldvppPicDesc *inputDesc, const acldvppJpegeConfig *config, uint32_t *size)
- Python Function
1size, ret = acl.media.dvpp_jpeg_predict_enc_size(input_dvpp_pic_desc, config)
Parameters
|
Parameter |
Description |
|---|---|
|
input_dvpp_pic_desc |
Int, pointer address of the description of input images.
|
|
config |
Int, pointer address of the image encoding configuration. Call acl.media.dvpp_create_jpege_config to create the image encoding configuration. |
Return Values
|
Return Value |
Description |
|---|---|
|
size |
Int, predicted allocation in bytes for the output image. The estimated output buffer size is greater than the actual one. The latter is obtained from the output parameter size of the acl.media.dvpp_jpeg_encode_async call. |
|
ret |
Int, error code: 0 on success; else, failure. |