-
Notifications
You must be signed in to change notification settings - Fork 0
/
livevideopipelinebuilder.h
49 lines (38 loc) · 1.5 KB
/
livevideopipelinebuilder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef LIVEVIDEOPIPELINEBUILDER_H
#define LIVEVIDEOPIPELINEBUILDER_H
#include <QDebug>
#include "ipipelinebuilder.h"
class LiveVideoPipelineBuilder : public IPipelineBuilder{
Pipeline mPipeline;
long long int mWindId;
void setBin(std::string);
void setSource(std::string, std::string);
void setVolume(std::string, std::string);
void setLevel(std::string, std::string);
void setVideoQueue(std::string, std::string);
void setVideoDepayloader(std::string, std::string);
void setVideoDecoder(std::string, std::string);
void setVideoSink(std::string, std::string);
void setAudioDepayloader(std::string, std::string);
void setAudioQueue(std::string, std::string);
void setAudioDecoder(std::string, std::string);
void setAudioConvertor(std::string, std::string);
void setAudioSink(std::string, std::string);
void setState(GstState);
void setLiveness(bool);
void setPropertiesOfGstElement(std::string, long long int);
void addElements();
void linkElements();
void setBus();
void destroyPipeline();
friend gboolean getMessageFromBusForLiveVideo(GstBus * bus, GstMessage * message, gpointer data);
friend void onPadAddedForLiveVideo(GstElement *src, GstPad *newPad, gpointer sink);
public:
LiveVideoPipelineBuilder();
~LiveVideoPipelineBuilder();
void buildPipeline(std::string, long long int);
Pipeline & getPipeline(){ return mPipeline; }
signals:
void resetVideo();
};
#endif // LIVEVIDEOPIPELINEBUILDER_H