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 Atlas 200/300/500 inference product and Atlas 200I/500 A2 inference product. It is valid only for Atlas inference product.

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:

1
2
3
4
struct JpegEncodeChnConfig {
    uint32_t maxPicWidth = MAX_HIMPI_VENC_PIC_WIDTH;
    uint32_t maxPicHeight = MAX_HIMPI_VENC_PIC_HEIGHT;
};

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.