21 #ifndef GV_CAPTURE_TEST__H
22 #define GV_CAPTURE_TEST__H
50 virtual void start()
override ;
53 virtual void stop()
override ;
56 virtual bool simple()
const override ;
59 virtual bool read(
unsigned char * ,
size_t )
override ;
65 virtual int fd()
const override ;
68 virtual unsigned int dx()
const override ;
71 virtual unsigned int dy()
const override ;
74 virtual bool active()
const override ;
77 virtual std::string
info()
const override ;
80 static int dx(
int ) ;
83 static int dy(
int ) ;
87 bool createSockets() ;
92 virtual void onException( std::exception & )
override ;
103 unique_ptr<CaptureBuffer> m_buffer ;
104 std::string m_config ;
106 unsigned int m_sleep_ms ;
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events and t...
virtual bool simple() const override
Override from Capture.
virtual unsigned int dx() const override
Override from Capture.
An abstract interface for filling a YUYV capture buffer with a generated image.
virtual void start() override
Override from Capture.
virtual int fd() const override
Override from Capture.
A structure holding capture buffer dimensions.
virtual bool read(unsigned char *, size_t) override
Override from Capture.
virtual bool active() const override
Override from Capture.
A callback interface for the Gv::Capture class.
virtual void stop() override
Override from Capture.
virtual ~CaptureTest()
Destructor.
CaptureTest(const std::string &config, ImageGenerator *)
Constructor.
A video capture abstract interface, exposing a file descriptor and a method to handle read events on ...
A Gv::Capture implementation that serves up dummy frames created by a Gv::ImageGenerator.
virtual std::string info() const override
Override from Capture.
virtual unsigned int dy() const override
Override from Capture.
A timer class template in which the timeout is delivered to the specified method. ...