X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fv4l%2Fv4lcapture.h;h=03bd9c3b35c9a62d736fc5d24c0b9e33d194572c;hb=ac5f5c9f6d4bdffeb76f3f2098b80f27bc532606;hp=4a72ed1338919a7e5494d9fc19a8733088ce795a;hpb=13caa29beb9cd02136e4616300d7da72363354ff;p=kdenlive diff --git a/src/v4l/v4lcapture.h b/src/v4l/v4lcapture.h index 4a72ed13..03bd9c3b 100644 --- a/src/v4l/v4lcapture.h +++ b/src/v4l/v4lcapture.h @@ -20,7 +20,6 @@ #ifndef __V4LCAPTUREHANDLER_H__ #define __V4LCAPTUREHANDLER_H__ -#include "../stopmotion/capturehandler.h" #include "src.h" #include @@ -28,37 +27,12 @@ #include #include -class MyDisplay; - -class V4lCaptureHandler : public CaptureHandler +class V4lCaptureHandler { - 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()); -private: - bool m_update; - MyDisplay *m_display; - QString m_captureFramePath; - QImage m_overlayImage; - QString m_device; - int m_width; - int m_height; - -private slots: - void slotUpdate(); +public: + V4lCaptureHandler(); + static QStringList getDeviceName(QString input); };