- Q_OBJECT
-public:
- V4lCaptureHandler(QVBoxLayout *lay, QWidget *parent = 0);
- ~V4lCaptureHandler();
- void startPreview(int deviceId, int captureMode, bool audio = true);
- void stopPreview();
- void startCapture(const QString &path);
- void stopCapture();
- void captureFrame(const QString &fname);
- void showOverlay(QImage img, bool transparent = true);
- void hideOverlay();
- void hidePreview(bool hide);
- QStringList getDeviceName(QString input);
- /** @brief Sets the path to the capture devide and optionnaly the width / height of the capture. */
- void setDevice(const QString input, QString size = QString());