X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=thumbnailer%2Fwestleypreview.h;h=678d2a24353380460e2edf589cf17d884f629417;hb=b2f37cecd90d42af8cc8f655462c91cf6624cb01;hp=3b85cf151a83dc4ab17a3b1d1278bce1d09cf562;hpb=cd85961a9520f2f3c909e889dacd8de539468b89;p=kdenlive diff --git a/thumbnailer/westleypreview.h b/thumbnailer/westleypreview.h index 3b85cf15..678d2a24 100644 --- a/thumbnailer/westleypreview.h +++ b/thumbnailer/westleypreview.h @@ -25,39 +25,23 @@ #include -#include -#include -#include +#include -class QProcess; -class KTempDir; -class KRandomSequence; +#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; + static uint imageVariance(const QImage &image); + QImage getFrame(Mlt::Producer* producer, int framepos, int width, int height); }; #endif