X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fv4l%2Fv4lcapture.h;h=9a742f651e62ce3df44bcffa3d889c6317ec2203;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=464bfa592d7c07c4ac6f65bb957b4ac3075b0668;hpb=25a898e070fd76a2e26c9eb5de42918e2859aa51;p=kdenlive diff --git a/src/v4l/v4lcapture.h b/src/v4l/v4lcapture.h index 464bfa59..9a742f65 100644 --- a/src/v4l/v4lcapture.h +++ b/src/v4l/v4lcapture.h @@ -19,41 +19,21 @@ #ifndef __V4LCAPTUREHANDLER_H__ #define __V4LCAPTUREHANDLER_H__ - -#include "../stopmotion/capturehandler.h" -#include "src.h" +//#include "src.h" #include #include #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); - -private: - bool m_update; - MyDisplay *m_display; - QString m_captureFramePath; - QImage m_overlayImage; - -private slots: - void slotUpdate(); + V4lCaptureHandler(); + static QStringList getDeviceName(const QString &input); + };