]> git.sesse.net Git - kdenlive/blobdiff - src/kthumb.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / kthumb.h
index f31da85a74435ec549b1ed331ce6a00609803de1..21b01fbff6ff5a94467e86b7f2a635b1a72bbb0a 100644 (file)
@@ -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 <int> frames);
+    void extractImage(const QList<int> &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 <int> missingFrames);
+    void queryIntraThumbs(const QList <int> &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();