Init

Function Usage

DVPP initialization function, which must be used together with DeInit.

It is applicable to functions other than video decoding and encoding. For video decoding initialization, use InitVdec; for video encoding initialization, use InitVenc. After initialization, call the deinitialization function of the corresponding function to destroy resources.

Prototype

1
APP_ERROR DvppWrapper::Init(void);  // Applicable to the Atlas 200/300/500 inference product and Atlas 200I/500 A2 inference product.
1
APP_ERROR DvppWrapper::Init(MxbaseDvppChannelMode dvppChannelMode);  // Applicable to the Atlas 200/300/500 inference product, Atlas 200I/500 A2 inference product, and Atlas inference product.

Parameters

Parameter

Input/Output

Description

dvppChannelMode

Input

Channel mode.

  • On the Atlas 200/300/500 inference product, the default value is 0.
    1
    MXBASE_DVPP_CHNMODE_DEFAULT = 0    // Include VPC, JPEGD, JPEGE, and PNG.
    
  • On the Atlas 200I/500 A2 inference product, the default value is 0.
    1
    MXBASE_DVPP_CHNMODE_DEFAULT = 0    // Include VPC, JPEGD, JPEGE, and PNG.
    
  • On the Atlas inference product, select a specific channel mode from the following parameters:
    1
    2
    3
    4
    MXBASE_DVPP_CHNMODE_VPC = 1  // Image cropping and resizing
    MXBASE_DVPP_CHNMODE_JPEGD  = 2 // Image decoding
    MXBASE_DVPP_CHNMODE_JPEGE = 3 // Image encoding
    MXBASE_DVPP_CHNMODE_PNGD = 4 // PNG decoding
    

Response Parameters

Data Structure

Description

APP_ERROR

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