X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=thumbnailer%2Fwestleypreview.h;h=290146015f81b244794d3eaeea9438b470f60d88;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=be33e09d88b05fc2a7b59096d4525032d63c8d6f;hpb=c42a026234a44a2d766e57bc64a6ac7bbd094000;p=kdenlive diff --git a/thumbnailer/westleypreview.h b/thumbnailer/westleypreview.h index be33e09d..29014601 100644 --- a/thumbnailer/westleypreview.h +++ b/thumbnailer/westleypreview.h @@ -25,40 +25,24 @@ #include +#include + #include #include #include -class QProcess; -class KTempDir; -class KRandomSequence; - -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