11b5bf6229b8713dffde89a777cd5181335136f6 from master; default colour conversions...
[dcpomatic.git] / src / lib / ffmpeg_subtitle_stream.h
index b16b825e7d76b3a401bc36c94a28b382771b1cd8..3ed931b8c996b1691cf0acbe25dc9434d28b1cd1 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -31,6 +31,11 @@ public:
 
        void as_xml (xmlpp::Node *) const;
 
-       std::vector<ContentTimePeriod> periods;
+       void add_subtitle (ContentTimePeriod period);
+       std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod period, bool starting) const;
+       ContentTime find_subtitle_to (ContentTime from) const;
+
+private:
+       std::map<ContentTime, ContentTime> _subtitles;
 };