X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fdefinitions.h;h=a9c55c85aad0105b6a2e5ce471952c493725497d;hb=fc658bb3f49618e4f83a88b48ea1bc06151b99b6;hp=1a3a255769ca9f47a027050d24c3c213173eb6f7;hpb=201f0e8a9ff002326bc1e3d66fc287edaf7807b0;p=kdenlive diff --git a/src/definitions.h b/src/definitions.h index 1a3a2557..a9c55c85 100644 --- a/src/definitions.h +++ b/src/definitions.h @@ -26,6 +26,7 @@ #include #include +#include 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; @@ -97,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); + } }; @@ -199,5 +216,7 @@ private: }; +QDebug operator << (QDebug qd, const ItemInfo &info); + #endif