X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_subtitle_stream.h;h=a39b10ffd6624804baa80916a1cfe1f894d32a9e;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=b16b825e7d76b3a401bc36c94a28b382771b1cd8;hpb=f90d74f7a0382f0dc63eef81bd553d7a7b38edb2;p=dcpomatic.git diff --git a/src/lib/ffmpeg_subtitle_stream.h b/src/lib/ffmpeg_subtitle_stream.h index b16b825e7..a39b10ffd 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 + Copyright (C) 2013-2015 Carl Hetherington 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 @@ -26,11 +26,16 @@ public: FFmpegSubtitleStream (std::string n, int i) : FFmpegStream (n, i) {} - + FFmpegSubtitleStream (cxml::ConstNodePtr); void as_xml (xmlpp::Node *) const; - std::vector periods; + void add_subtitle (ContentTimePeriod period); + std::list subtitles_during (ContentTimePeriod period, bool starting) const; + ContentTime find_subtitle_to (ContentTime from) const; + +private: + std::map _subtitles; };