DvppJpegPredictDecSize
Function Usage
Predicts the size of the output buffer allocation required for JPEG decoding based on the JPEG input buffer.
Prototype
1 | APP_ERROR DvppWrapper::DvppJpegPredictDecSize(const void *imageData, uint32_t dataSize, MxbasePixelFormat outputPixelFormat, uint32_t &decSize); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
imageData |
Input |
Buffer address for storing JPEG image data on the host. It cannot be the buffer address on the device. |
dataSize |
Input |
Buffer size, in bytes. |
outputPixelFormat |
Input |
Format of the decoded output image. |
decSize |
Output |
Predicted allocation in bytes for the output image. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: DvppWrapper