]> git.sesse.net Git - kdenlive/blobdiff - thumbnailer/westleypreview.h
Const'ref
[kdenlive] / thumbnailer / westleypreview.h
index f2501804fa9cfde407e56fe5f2b7b5a5f9abb938..290146015f81b244794d3eaeea9438b470f60d88 100644 (file)
 
 #include <kio/thumbcreator.h>
 
+#include <mlt++/Mlt.h>
+
 #include <qstring.h>
 #include <qstringlist.h>
 #include <qobject.h>
 
-class QProcess;
-class KTempDir;
-class KRandomSequence;
-
 class MltPreview : public QObject, public ThumbCreator
 {
     Q_OBJECT
@@ -43,21 +41,8 @@ public:
     virtual Flags flags() const;
 
 protected:
-    QImage getFrame(const QString &path);
-    static uint imageVariance(QImage image);
-
-private:
-    QProcess *m_meltProcess;
-    KRandomSequence *m_rand;
-    QString m_playerBin;
-    bool startAndWaitProcess(const QStringList &args);
-    enum frameflags { framerandom = 0x1, framestart = 0x2, frameend = 0x4 };
-    struct {
-        int towidth;
-        int toheight;
-        int fps;
-        int seconds;
-    } fileinfo;
+    static uint imageVariance(const QImage &image);
+    QImage getFrame(Mlt::Producer* producer, int framepos, int width, int height);
 };
 
 #endif