DvppDataInfo

Description

Defines the DVPP entity data.

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
struct DvppDataInfo {
    uint32_t width = 0;                                    
    uint32_t height = 0;                                  
    uint32_t widthStride = 0;                              
    uint32_t heightStride = 0;                             
    MxbasePixelFormat format = MXBASE_PIXEL_FORMAT_YUV_SEMIPLANAR_420;  
    uint32_t frameId = 0;                                  
    uint32_t channelId = 0;                                
    uint32_t dataSize = 0;
    uint32_t outDataSize = 0;
    uint32_t dataType = 0;                                
    uint8_t* data = nullptr;                              
    uint8_t* outData = nullptr;
    uint32_t resizeWidth = 0;
    uint32_t resizeHeight = 0;
    std::string device = "host:0";
    uint32_t deviceId = 0; 
    void (*destory)(void *) = nullptr;        
};

Parameters

Parameter

Description

width

Width of the source image

height

Height of the source image

widthStride

Width of the source image after alignment

heightStride

Height of the source image after alignment

format

Image format. The default value is MXBASE_PIXEL_FORMAT_YUV_SEMIPLANAR_420.

For details about the definition of the DVPP image format, see MxbasePixelFormat.

frameId

ID of an image frame

channelId

ID of an image channel

dataSize

Image data size, in bytes.

The size must be the same as the actual image size. Otherwise, a core dump may occur.

outDataSize

Size of the output image data, in bytes.

The value of outDataSize must be the same as that of the output image. Otherwise, a core dump may occur.

dataType

Image data type

data

Image data

outData

Address of the pre-allocated memory, which is used to store the image data after video decoding.

resizeWidth

Resizes the width during video decoding.

Currently, only Atlas inference product support this parameter.

The default value is 0, indicating that no resizing is performed. The value range is [10, 4096].

resizeHeight

Resizes the height during video decoding.

Currently, only Atlas inference product support this parameter.

The default value is 0, indicating that no resizing is performed. The value range is [6, 4096].

device

Device ID

deviceId

Device ID

destroy

Callback function for destroying the DVPP data