VdecConfig
Description
Defines the structure for video stream decoding.
Structure Definition
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | struct VdecConfig { uint32_t width = 0; uint32_t height = 0; MxbaseStreamFormat inputVideoFormat = MXBASE_STREAM_FORMAT_H264_MAIN_LEVEL; MxbasePixelFormat outputImageFormat = MXBASE_PIXEL_FORMAT_YUV_SEMIPLANAR_420; uint32_t channelId = 0; uint32_t deviceId = 0; pthread_t threadId = 0; DecodeCallBackFunction callbackFunc = nullptr; uint32_t outMode = 0; uint32_t videoChannel = 0; uint32_t skipInterval = 0; uint32_t cscMatrix = 0; void* userData = nullptr; }; |
Parameters
Parameter |
Input/Output |
Description |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
width |
Input |
Image width. |
||||||||||||
height |
Input |
Image height. |
||||||||||||
inputVideoFormat |
Input |
Format of the input image. |
||||||||||||
outputImageFormat |
Input |
Format of the output image. |
||||||||||||
channelId |
Input |
ID of a decoding channel. |
||||||||||||
deviceId |
Input |
Device ID. |
||||||||||||
threadId |
Input |
ID of a callback thread. |
||||||||||||
callbackFunc |
Input |
Callback function. The structure is as follows: APP_ERROR (*DecodeCallBackFunction)(std::shared_ptr<void> buffer, DvppDataInfo& dvppDataInfo, void* userData)
|
||||||||||||
outMode |
Input |
Frame output mode. The value can be 0 or 1. The default value is 0.
|
||||||||||||
videoChannel |
Input |
Reserved. |
||||||||||||
skipInterval |
Input |
Frame skipping parameter. |
||||||||||||
cscMatrix |
Input |
CSC option. Only
|
||||||||||||
userData |
Input |
User-defined data. |
Parent topic: General Data Structures