-
Notifications
You must be signed in to change notification settings - Fork 0
/
recordedvideopipelinebuilder.h
51 lines (39 loc) · 1.52 KB
/
recordedvideopipelinebuilder.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
50
51
#ifndef RECORDEDVIDEOPIPELINE_H
#define RECORDEDVIDEOPIPELINE_H
#include <QDebug>
#include "ipipelinebuilder.h"
class RecordedVideoPipelineBuilder: public IPipelineBuilder{
Pipeline mPipeline;
long long int mWinId;
std::string mFileLocation;
void setBin(std::string);
void setSource(std::string, std::string);
void setVolume(std::string, std::string);
void setLevel(std::string, std::string);
void setDemuxer(std::string, std::string);
void setVideoQueue(std::string, std::string);
void setVideoDecoder(std::string, std::string);
void setVideoSink(std::string, std::string);
void setAudioQueue(std::string, std::string);
void setAudioDecoder(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 getMessageFromBusForRecordedVideo(GstBus * bus, GstMessage * message, gpointer data);
friend void onPadAddedForRecordedVideo(GstElement *src, GstPad *newPad, gpointer sink);
public:
RecordedVideoPipelineBuilder();
~RecordedVideoPipelineBuilder();
void buildPipeline(std::string, long long int);
Pipeline & getPipeline(){ return mPipeline; }
std::string getFileLocation(){ return mFileLocation; }
long long int getWinId(){ return mWinId; }
signals:
void resetVideo();
};
#endif // RECORDEDVIDEOPIPELINE_H