]> git.sesse.net Git - kdenlive/blobdiff - src/definitions.h
Working on FFT based correlation
[kdenlive] / src / definitions.h
index b01ef370b1c25df5667f28d3a85abf8fb85bb525..a9c55c85aad0105b6a2e5ce471952c493725497d 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <QTreeWidgetItem>
 #include <KLocale>
+#include <QDebug>
 
 const int MAXCLIPDURATION = 15000;
 
@@ -57,7 +58,7 @@ enum MessageType {
 
 enum TRACKTYPE { AUDIOTRACK = 0, VIDEOTRACK = 1 };
 
-enum PROXYSTATUS { NOPROXY = 0, PROXYWAITING = -1, CREATINGPROXY = -2, PROXYDONE = -3, PROXYCRASHED = -4};
+enum CLIPJOBSTATUS { NOJOB = 0, JOBWAITING = -1, JOBWORKING = -2, JOBDONE = -3, JOBCRASHED = -4, JOBABORTED = -5};
 
 struct TrackInfo {
     TRACKTYPE type;
@@ -70,6 +71,7 @@ struct TrackInfo {
 };
 
 typedef QMap<QString, QString> stringMap;
+typedef QMap <int, QMap <int, QByteArray> > audioByteArray;
 
 struct ItemInfo {
     /** startPos is the position where the clip starts on the track */
@@ -96,6 +98,22 @@ struct MltVideoProfile {
     int display_aspect_num;
     int display_aspect_den;
     int colorspace;
+    bool operator==(const MltVideoProfile& point) const
+    {
+        if (!description.isEmpty() && point.description  == description) return true;
+        return      point.frame_rate_num == frame_rate_num &&
+                    point.frame_rate_den  == frame_rate_den  &&
+                    point.width == width &&
+                    point.height == height &&
+                    point.progressive == progressive &&
+                    point.sample_aspect_num == sample_aspect_num &&
+                    point.sample_aspect_den == sample_aspect_den &&
+                    point.display_aspect_den == display_aspect_den &&
+                    point.colorspace == colorspace;
+    }
+    bool operator!=(const MltVideoProfile &other) const {
+        return !(*this == other);
+    }
 };
 
 
@@ -198,5 +216,7 @@ private:
 
 };
 
+QDebug operator << (QDebug qd, const ItemInfo &info);
+
 
 #endif