]> git.sesse.net Git - kdenlive/blobdiff - src/kthumb.h
Workaround MLT not giving rgb images to fix thumbnails
[kdenlive] / src / kthumb.h
index a0255210178858285c1bd9b6de2db549b8325f19..1c4628c2c861c71d424af48e3cc878e3d2010c28 100644 (file)
@@ -72,17 +72,21 @@ class KThumb: public QObject {
 Q_OBJECT public:
 
 
-    KThumb(ClipManager *clipManager, KUrl url, int width, int height, QObject * parent = 0, const char *name = 0);
+    KThumb(ClipManager *clipManager, KUrl url, QObject * parent = 0, const char *name = 0);
     ~KThumb();
 
 public slots:
     void extractImage(int frame, int frame2);
+    void updateClipUrl(KUrl url);
     static QPixmap getImage(KUrl url, int width, int height);
+    static QPixmap getImage(QDomElement xml, int frame, int width, int height);
     /* void getImage(KUrl url, int frame, int width, int height);
      void getThumbs(KUrl url, int startframe, int endframe, int width, int height);*/
     void stopAudioThumbs();
     void removeAudioThumb();
     void getAudioThumbs(int channel, double frame, double frameLength, int arrayWidth);
+    static QPixmap getImage(KUrl url, int frame, int width, int height);
+    static QPixmap getFrame(Mlt::Producer* producer, int framepos, int width, int height);
 
 protected:
     virtual void customEvent(QEvent * event);
@@ -91,8 +95,6 @@ private:
     MyThread thumbProducer;
     KUrl m_url;
     QString m_thumbFile;
-    int m_width;
-    int m_height;
     Mlt::Profile *m_profile;
     ClipManager *m_clipManager;