X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=thumbnailer%2Fwestleypreview.h;h=ca974c4e7eb21c7f1e46fc57898dd86cb12e94e4;hb=366a54600eec9536b005dd81b5dc1bcd5fb6243d;hp=79820accb33e5c7df5a708c8811b1d9f80142267;hpb=7bd8db921d8bcb0a76c74afe598b73423b6d4a79;p=kdenlive diff --git a/thumbnailer/westleypreview.h b/thumbnailer/westleypreview.h index 79820acc..ca974c4e 100644 --- a/thumbnailer/westleypreview.h +++ b/thumbnailer/westleypreview.h @@ -20,46 +20,29 @@ ***************************************************************************/ -#ifndef _westleypreview_H_ -#define _westleypreview_H_ - -#include +#ifndef WESTLEYPREVIEW_H +#define WESTLEYPREVIEW_H #include -#include - -class QProcess; -class KTempDir; -class KRandomSequence; - +#include +#include +#include +#include -class WestleyPreview : public QObject, public ThumbCreator { +class MltPreview : public QObject, public ThumbCreator +{ Q_OBJECT public: - WestleyPreview(); - virtual ~WestleyPreview(); + MltPreview(); + virtual ~MltPreview(); virtual bool create(const QString &path, int width, int height, QImage &img); virtual Flags flags() const; protected: - QImage getFrame(const QString &path); static uint imageVariance(QImage image); - -private: - QProcess *m_inigoprocess; - QStringList customargs; - KRandomSequence *m_rand; - QString playerBin; - bool startAndWaitProcess(const QStringList &args); - enum frameflags { framerandom = 0x1, framestart = 0x2, frameend = 0x4 }; - struct { - int towidth; - int toheight; - int fps; - int seconds; - } fileinfo; + QImage getFrame(Mlt::Producer* producer, int framepos, int width, int height); }; #endif