]> git.sesse.net Git - kdenlive/blobdiff - src/docclipbase.h
* Allow to edit transparent background for images in group properties
[kdenlive] / src / docclipbase.h
index f016c18d497aab8a215e8e2a1239d03c7eb19ff9..a130e16ad4e592c6c708e79cd1c392cfa11a02a6 100644 (file)
@@ -26,6 +26,8 @@
 #include <QPixmap>
 #include <QObject>
 #include <QTimer>
+#include <QProcess>
+#include <QFuture>
 
 #include <KUrl>
 
@@ -180,7 +182,7 @@ Q_OBJECT public:
     void setProducerProperty(const char *name, const char *data);
     void resetProducerProperty(const char *name);
     void clearProducers();
-    void deleteProducers();
+    void deleteProducers(bool clearThumbCreator = true);
 
     /** Set default play zone for clip monitor */
     void setZone(QPoint zone);
@@ -189,6 +191,7 @@ Q_OBJECT public:
 
     /** Returns true is clip is missing but user wants to keep it as placeholder */
     bool isPlaceHolder() const;
+    void setValid();
     static QString getHash(const QString &path);
 
     void addCutZone(int in, int out, QString desc = QString());
@@ -197,6 +200,15 @@ Q_OBJECT public:
     QList <CutZoneInfo> cutZones() const;
     void updateCutZone(int oldin, int oldout, int in, int out, QString desc = QString());
 
+    bool hasVideoCodec(const QString &codec) const;
+    bool hasAudioCodec(const QString &codec) const;
+    bool checkHash() const;
+    void setPlaceHolder(bool place);
+    /** @brief Generate a proxy clip (lower resolution copy) named like the clip's hash. */
+    void generateProxy(KUrl proxyFolder, QString params);
+    /** @brief Abort creation of the proxy clip (lower resolution copy). */
+    void abortProxy();
+
 private:   // Private attributes
 
     /** The number of times this clip is used in the project - the number of references to this clip
@@ -231,6 +243,10 @@ private:   // Private attributes
     QMap <QString, QString> m_properties;
     /** Holds clip metadata like author, copyright,... */
     QMap <QString, QString> m_metadata;
+
+    QFuture<void> m_proxyThread;
+    /** Used to kill the proxy thread */
+    bool m_abortProxy;
     /** Create connections for audio thumbnails */
     void slotCreateAudioTimer();
     void slotRefreshProducer();
@@ -242,7 +258,6 @@ public slots:
     void updateAudioThumbnail(QMap<int, QMap<int, QByteArray> > data);
     bool slotGetAudioThumbs();
     QList < CommentedTime > commentedSnapMarkers() const;
-    void setSnapMarkers(QList < CommentedTime > markers);
     GenTime findNextSnapMarker(const GenTime & currTime);
     GenTime findPreviousSnapMarker(const GenTime & currTime);
     GenTime hasSnapMarkers(const GenTime & time);
@@ -258,10 +273,12 @@ public slots:
     QMap <QString, QString> properties() const;
     QMap <QString, QString> metadata() const;
 
+private slots:
+    void slotGenerateProxy(QStringList parameters);
 
 signals:
-    void getAudioThumbs();
     void gotAudioData();
+    void proxyReady(const QString &, bool success);
 };
 
 #endif