MxGstBase

Description

Declares the GStreamer plugin class, which is used to store class attribute information.

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
struct MxGstBase {
    GstElement element;
    guint padIdx;   
    guint flushStartNum;
    guint flushStopNum;
    std::vector<GstPad *> sinkPadVec;
    std::vector<GstPad *> srcPadVec;
    MxPluginBase* pluginInstance;
    std::unique_ptr<std::map<std::string, std::shared_ptr<void>>> configParam;
    std::vector<MxpiBuffer *> input;
    std::vector<MxpiBuffer *> inputQueue;
    std::mutex inputMutex_;
    std::mutex eventMutex_;
    std::condition_variable condition_;

};

Parameters

Parameter

Description

element

Stores the element data of the plugin.

padIdx

Request index.

flushStartNum

Number of flush start times.

flushStopNum

Number of flush stop times.

sinkPadVec

Array, which is used to save the plugin output pad.

srcPadVec

Array, which is used to save the plugin input pad.

pluginInstance

Stores the plugin base class instance.

configParam

Stores the attribute configuration, which is passed during plugin initialization.

input

Buffer array.

inputQueue

Input queue.

inputMutex_

Input operation lock.

eventMutex_

Event operation lock.

condition_

Input operation condition variable.