X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkthumb.h;h=b8bc3d0d1bfb11b0d36f4e2489d2b8608af1159c;hb=87914857d36c5b051b006f3f74d489af3801af4d;hp=dd23ed217aae972d658297c7877f829541447f79;hpb=09aae6cd42927b370af1b7bc7a94db03fd6a7cf6;p=kdenlive diff --git a/src/kthumb.h b/src/kthumb.h index dd23ed21..b8bc3d0d 100644 --- a/src/kthumb.h +++ b/src/kthumb.h @@ -63,14 +63,15 @@ Q_OBJECT public: bool hasProducer() const; void clearProducer(); void updateThumbUrl(const QString &hash); - void extractImage(int frame, int frame2); + void extractImage(QList frames); QPixmap extractImage(int frame, int width, int height); #if KDE_IS_VERSION(4,5,0) /** @brief Request thumbnails for the frame range. */ void queryIntraThumbs(QList missingFrames); /** @brief Query cached thumbnail. */ - QImage findCachedThumb(const QString path); + QImage findCachedThumb(const QString &path); #endif + void getThumb(int frame); public slots: void updateClipUrl(KUrl url, const QString &hash); @@ -106,9 +107,6 @@ private: Mlt::Producer *m_producer; ClipManager *m_clipManager; QString m_id; - QList m_requestedThumbs; - /** @brief Controls the thumbnails process. */ - QFuture m_future; /** @brief Controls the intra frames thumbnails process (cached thumbnails). */ QFuture m_intra; QFile m_audioThumbFile; @@ -121,7 +119,6 @@ private: /** @brief List of frame numbers from which we want to extract thumbnails. */ QList m_intraFramesQueue; QMutex m_mutex; - void doGetThumbs(); QImage getProducerFrame(int framepos, int frameWidth, int displayWidth, int height); signals: