- 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);