summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_subtitle_stream.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-13 00:41:50 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-13 00:41:50 +0100
commit83e5567530d0be24490abdda46d196e4279c5030 (patch)
treeae1b8f679fa448d7fc48b7a0521e52c256611cd6 /src/lib/ffmpeg_subtitle_stream.h
parent2bfd531137f1a4874493186015046e33c5a07c1e (diff)
Look up unknown subtitle end times from the data prepared by the examiner.
Diffstat (limited to 'src/lib/ffmpeg_subtitle_stream.h')
-rw-r--r--src/lib/ffmpeg_subtitle_stream.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_subtitle_stream.h b/src/lib/ffmpeg_subtitle_stream.h
index b16b825e7..3ed931b8c 100644
--- a/src/lib/ffmpeg_subtitle_stream.h
+++ b/src/lib/ffmpeg_subtitle_stream.h
@@ -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;
};