Add basic windowed-sinc audio filters.
[dcpomatic.git] / src / lib / dcpomatic_time.cc
index 98888646d0a841e26bcb077a426be8ac66e1e8e4..812c756ec27891224495b1a57b3e374ee793321d 100644 (file)
@@ -49,3 +49,15 @@ operator<< (ostream& s, DCPTime t)
        s << "[DCP " << t.get() << " " << t.seconds() << "s]";
        return s;
 }
+
+bool
+ContentTimePeriod::overlaps (ContentTimePeriod const & other) const
+{
+       return (from < other.to && to >= other.from);
+}
+
+bool
+ContentTimePeriod::contains (ContentTime const & other) const
+{
+       return (from <= other && other < to);
+}