acldvppJpegPredictEncSize
Description
Predicts the size of the output buffer allocation required for image encoding based on the input image description and image encoding configuration.
Prototype
aclError acldvppJpegPredictEncSize(const acldvppPicDesc *inputDesc, const acldvppJpegeConfig *config, uint32_t *size)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
inputDesc |
Input |
Pointer to the description of input images. Call acldvppCreatePicDesc to create an image description, and call acldvppSetPicDesc to set the image description (including the image format, width, and height). |
|
config |
Input |
Pointer to the image encoding configuration. Call acldvppCreateJpegeConfig to create an image encoding configuration. |
|
size |
Output |
Pointer to the predicted allocation in bytes for the output image. The predicted size is greater than what is actually needed, which can be obtained from the size parameter returned by the acldvppJpegEncodeAsync call. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.