]> git.sesse.net Git - kdenlive/blobdiff - src/stopmotion/capturehandler.h
coverity fix
[kdenlive] / src / stopmotion / capturehandler.h
index 29deea04e870bb0bfbf55b7a96bdbe1310476cbe..fe730a46bf534c24f7c25ff23431ca5cbd0b707b 100644 (file)
@@ -28,9 +28,9 @@ class CaptureHandler : public QObject
 {
     Q_OBJECT
 public:
-    CaptureHandler(QVBoxLayout *lay, QWidget *parent = 0);
+    explicit CaptureHandler(QVBoxLayout *lay, QWidget *parent = 0);
     ~CaptureHandler();
-    virtual void startPreview(int deviceId, int captureMode) = 0;
+    virtual void startPreview(int deviceId, int captureMode, bool audio = true) = 0;
     virtual void stopPreview() = 0;
     virtual void startCapture(const QString &path) = 0;
     virtual void stopCapture();
@@ -38,16 +38,22 @@ public:
     virtual void showOverlay(QImage img, bool transparent = true) = 0;
     virtual void hideOverlay() = 0;
     virtual void hidePreview(bool hide) = 0;
-    static void yuv2rgb(unsigned char *yuv_buffer, unsigned char *rgb_buffer, int width, int height);
+    virtual QStringList getDeviceName(QString input) = 0;
+    virtual void setDevice(const QString input, QString size = QString()) = 0;
+    void setAnalyse(bool isOn);
+    static void uyvy2rgb(unsigned char *yuv_buffer, unsigned char *rgb_buffer, int width, int height);
+    static void yuyv2rgb(unsigned char *yuv_buffer, unsigned char *rgb_buffer, int width, int height);
 
 protected:
     QVBoxLayout *m_layout;
     QWidget *m_parent;
+    bool m_analyseFrame;
 
 signals:
     void gotTimeCode(ulong);
     void gotMessage(const QString &);
-    void frameSaved(const QString);
+    void frameSaved(const QString &);
+    void gotFrame(QImage);
 };