14#include <egt/object.h>
15#include <egt/signal.h>
45 std::unique_ptr<detail::GstDecoderImpl>
m_impl;
77 const std::string& device =
"/dev/video0");
Capture a camera video feed directly to an output file.
Definition capture.h:41
SignalW< const std::string & > on_error
Event signal.
Definition capture.h:56
std::unique_ptr< detail::GstDecoderImpl > m_impl
Internal capture implementation.
Definition capture.h:45
void set_output(const std::string &output, const Size &size, PixelFormat format=PixelFormat::yuyv)
Set the output.
CameraCapture & operator=(CameraCapture &&)=default
~CameraCapture() override
CameraCapture & operator=(const CameraCapture &)=delete
CameraCapture(const CameraCapture &)=delete
void stop()
Stop camera capture and finish the output.
SignalW< const std::string & > on_disconnect
Generated when an USB camera disconnected.
Definition capture.h:66
CameraCapture(CameraCapture &&)=default
bool start()
Initialize camera pipeline to capture from the camera.
SignalW< const std::string & > on_connect
Generated when an USB camera connected.
Definition capture.h:61
CameraCapture(const std::string &output, PixelFormat format=PixelFormat::yuyv, const std::string &device="/dev/video0")
Base object class with fundamental properties.
Definition object.h:32
PixelFormat
Supported pixel formats.
Definition types.h:94
EGT framework namespace.
Definition animation.h:24