X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkthumb.h;h=21b01fbff6ff5a94467e86b7f2a635b1a72bbb0a;hb=f4462e7ecb75f64e524746e3bb7c62a5e973d965;hp=f31da85a74435ec549b1ed331ce6a00609803de1;hpb=e7e19cd293ce575cfecee1ce99cd9670e331fc75;p=kdenlive diff --git a/src/kthumb.h b/src/kthumb.h index f31da85a..21b01fbf 100644 --- a/src/kthumb.h +++ b/src/kthumb.h @@ -42,7 +42,7 @@ namespace Mlt { class Producer; class Frame; -}; +} class ClipManager; @@ -59,11 +59,11 @@ public: bool hasProducer() const; void clearProducer(); void updateThumbUrl(const QString &hash); - void extractImage(QList frames); + void extractImage(const QList &frames); QImage 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); + void queryIntraThumbs(const QList &missingFrames); /** @brief Query cached thumbnail. */ QImage findCachedThumb(const QString &path); #endif @@ -71,7 +71,7 @@ public: void getGenericThumb(int frame, int height, int type); public slots: - void updateClipUrl(KUrl url, const QString &hash); + void updateClipUrl(const KUrl &url, const QString &hash); void slotCreateAudioThumbs(); public: @@ -85,7 +85,7 @@ public: /** @brief Calculates image variance, useful to know if a thumbnail is interesting. * @return an integer between 0 and 100. 0 means no variance, eg. black image while bigger values mean contrasted image * */ - static uint imageVariance(QImage image); + static uint imageVariance(const QImage &image); private slots: #if KDE_IS_VERSION(4,5,0) @@ -109,8 +109,8 @@ private: QImage getProducerFrame(int framepos, int frameWidth, int displayWidth, int height); signals: - void thumbReady(int, QImage); - void mainThumbReady(const QString &, QPixmap); + void thumbReady(int, const QImage&); + void mainThumbReady(const QString &, const QPixmap&); void audioThumbReady(const audioByteArray&); /** @brief We have finished caching all requested thumbs. */ void thumbsCached();