InitJpegEncodeChannel
Function Usage
JPEGE image channel initialization function for JPEG encoding.
Not supported by the Atlas 800I A2 inference product.
Prototype
1 | APP_ERROR ImageProcessor::InitJpegEncodeChannel(const JpegEncodeChnConfig& config = JPEG_ENCODE_CHN_CONFIG); |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
config |
Input |
Channel configuration parameter. The value range is [32, 8192], and the default value is JPEG_ENCODE_CHN_CONFIG, which means that the maximum image width and height are 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. |