MxGstBase
Function
It is the GStreamer plugin class declaration, which is used to store class attribute information.
Structure Definition
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_;
};
Parameter Description
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 attribute configuration information, which is transferred during plugin initialization. |
input |
Buffer array. |
inputQueue |
Input queue. |
inputMutex_ |
Input operation lock. |
eventMutex_ |
Event operation lock. |
condition_ |
Input operation condition variable. |
Parent topic: Data Structure