Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
RTSPPusher.h
1#pragma once
2
3#include "Module.h"
4
6{
7public:
8 RTSPPusherProps(std::string _URL, std::string _title) : URL(_URL), title(_title), isTCP(true), encoderTargetKbps(2*1024)
9 {
10 }
11
13 {
14 }
15
16 std::string URL;
17 std::string title;
18 bool isTCP;
20};
21
22class RTSPPusher : public Module
23{
24public:
32
34 virtual ~RTSPPusher();
35
36 bool init();
37 bool term();
38
39protected:
40 bool process(frame_container &frames);
41 bool validateInputPins();
42 bool shouldTriggerSOS();
43 bool processSOS(frame_sp &frame);
44 bool processEOS(string& pinId);
45
46private:
47 class Detail;
48 boost::shared_ptr<Detail> mDetail;
49};
Definition FacialLandmarksCV.cpp:17
Definition Module.h:33
Definition Module.h:151
Definition RTSPPusher.h:6
std::string URL
Definition RTSPPusher.h:16
~RTSPPusherProps()
Definition RTSPPusher.h:12
RTSPPusherProps(std::string _URL, std::string _title)
Definition RTSPPusher.h:8
uint32_t encoderTargetKbps
Definition RTSPPusher.h:19
bool isTCP
Definition RTSPPusher.h:18
std::string title
Definition RTSPPusher.h:17
Definition RTSPPusher.h:23
bool processEOS(string &pinId)
Definition RTSPPusher.cpp:410
bool init()
Definition RTSPPusher.cpp:305
bool shouldTriggerSOS()
Definition RTSPPusher.cpp:405
RTSPPusher(RTSPPusherProps props)
Definition RTSPPusher.cpp:292
bool process(frame_container &frames)
Definition RTSPPusher.cpp:354
bool processSOS(frame_sp &frame)
Definition RTSPPusher.cpp:381
virtual ~RTSPPusher()
Definition RTSPPusher.cpp:300
EventType
Definition RTSPPusher.h:26
@ CONNECTION_FAILED
Definition RTSPPusher.h:28
@ WRITE_FAILED
Definition RTSPPusher.h:29
@ CONNECTION_READY
Definition RTSPPusher.h:27
@ STREAM_ENDED
Definition RTSPPusher.h:30
bool validateInputPins()
Definition RTSPPusher.cpp:329
boost::shared_ptr< Detail > mDetail
Definition RTSPPusher.h:48
bool term()
Definition RTSPPusher.cpp:315