X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fstopmotion%2Fcapturehandler.h;h=fe730a46bf534c24f7c25ff23431ca5cbd0b707b;hb=ddd3e50e4fc7f2744ad8de03650b66714441bc24;hp=f43fddae8b2d631e89d984d9f21ad9302f249db7;hpb=e2d9e6fe8472f8170c6bb7be61a2e781fefac9ff;p=kdenlive diff --git a/src/stopmotion/capturehandler.h b/src/stopmotion/capturehandler.h index f43fddae..fe730a46 100644 --- a/src/stopmotion/capturehandler.h +++ b/src/stopmotion/capturehandler.h @@ -28,7 +28,7 @@ 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, bool audio = true) = 0; virtual void stopPreview() = 0; @@ -38,17 +38,22 @@ public: virtual void showOverlay(QImage img, bool transparent = true) = 0; virtual void hideOverlay() = 0; virtual void hidePreview(bool hide) = 0; - virtual QString getDeviceName(QString input, int *width, int *height) = 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); };