video_streamer_vlc
Capturer.hpp
Go to the documentation of this file.
1 /* Generated from orogen/lib/orogen/templates/tasks/Task.hpp */
2 
3 #ifndef VIDEO_STREAMER_VLC_CAPTURER_TASK_HPP
4 #define VIDEO_STREAMER_VLC_CAPTURER_TASK_HPP
5 
6 #include "video_streamer_vlc/CapturerBase.hpp"
7 #include <video_capture_vlc/VlcCapture.h>
8 
9 namespace video_streamer_vlc {
10 
12  RTT::OutputPort< ::RTT::extras::ReadOnlyPointer< ::base::samples::frame::Frame > > *port;
13  VlcCapture *capturer;
14  base::samples::frame::Frame frame;
15  RTT::extras::ReadOnlyPointer<base::samples::frame::Frame> output;
16  std::string uri;
17  };
18 
19  class Capturer : public CapturerBase, public VlcCaptureConsumer
20  {
21  friend class CapturerBase;
22  protected:
23 
24  virtual bool createStream(::std::string const & portname, ::std::string const & uri);
25  std::vector<PortHelperCapture> my_ports;
26  public:
31  Capturer(std::string const& name = "video_streamer_vlc::Capturer");
32 
38  Capturer(std::string const& name, RTT::ExecutionEngine* engine);
39 
42  ~Capturer();
43 
58  bool configureHook();
59 
65  bool startHook();
66 
81  void updateHook();
82 
89  void errorHook();
90 
94  void stopHook();
95 
100  void cleanupHook();
101 
102  void imageCallback();
103  };
104 }
105 
106 #endif
107 
Definition: Capturer.hpp:9
std::string uri
Definition: Capturer.hpp:16
base::samples::frame::Frame frame
Definition: Capturer.hpp:14
VlcCapture * capturer
Definition: Capturer.hpp:13
RTT::extras::ReadOnlyPointer< base::samples::frame::Frame > output
Definition: Capturer.hpp:15
Definition: Capturer.hpp:11
RTT::OutputPort< ::RTT::extras::ReadOnlyPointer< ::base::samples::frame::Frame > > * port
Definition: Capturer.hpp:12
std::vector< PortHelperCapture > my_ports
Definition: Capturer.hpp:25
Definition: Capturer.hpp:19