InitJpegEncodeChannel
Function Usage
JPEG image channel initialization function for JPEG encoding.
Prototype
1 | APP_ERROR DvppWrapper::InitJpegEncodeChannel(const JpegEncodeChnConfig& config); |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
config |
Input |
Channel configuration parameter. The value range is [32, 8192]. That is, the maximum image width and height are both 8192 x 8192. This parameter is invalid for Currently, only the width and height (maxPicWidth and maxPicHeight) of the channel for image encoding can be configured, which are automatically 16-pixel aligned internally. If the height is smaller than the width, the height is automatically aligned upwards to the length of the width. Reserve proper width and height based on the actual image encoding scenario. The corresponding data structure is as follows:
|
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |