]> git.sesse.net Git - kdenlive/blobdiff - src/v4l/v4lcapture.h
Fix small display issue in render widget
[kdenlive] / src / v4l / v4lcapture.h
index bbcbf8833116a7cfb04c3345d76f76a8eb2fccea..4a72ed1338919a7e5494d9fc19a8733088ce795a 100644 (file)
@@ -36,7 +36,7 @@ class V4lCaptureHandler : public CaptureHandler
 public:
     V4lCaptureHandler(QVBoxLayout *lay, QWidget *parent = 0);
     ~V4lCaptureHandler();
-    void startPreview(int deviceId, int captureMode);
+    void startPreview(int deviceId, int captureMode, bool audio = true);
     void stopPreview();
     void startCapture(const QString &path);
     void stopCapture();
@@ -44,16 +44,22 @@ public:
     void showOverlay(QImage img, bool transparent = true);
     void hideOverlay();
     void hidePreview(bool hide);
-    QString getDeviceName(QString input);
+    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();
+
 };