summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_subtitle_period.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-26 20:27:45 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-26 20:27:45 +0100
commit6b62e9c77b2a45fd1d7084626f2bb2949e832e5f (patch)
tree486f58182c8b740a8ba2be20d59e002f2d8c55dd /src/lib/ffmpeg_subtitle_period.h
parente7e9347cdd1f43e0dd3d1ca35632e9493a010fc6 (diff)
Separate FFmpegSubtitlePeriod.
Diffstat (limited to 'src/lib/ffmpeg_subtitle_period.h')
-rw-r--r--src/lib/ffmpeg_subtitle_period.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_subtitle_period.h b/src/lib/ffmpeg_subtitle_period.h
new file mode 100644
index 000000000..b6565a2a2
--- /dev/null
+++ b/src/lib/ffmpeg_subtitle_period.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (C) 2012-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
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "dcpomatic_time.h"
+#include <boost/optional.hpp>
+
+class FFmpegSubtitlePeriod
+{
+public:
+ FFmpegSubtitlePeriod (ContentTime f)
+ : from (f)
+ {}
+
+ FFmpegSubtitlePeriod (ContentTime f, ContentTime t)
+ : from (f)
+ , to (t)
+ {}
+
+ ContentTime from;
+ boost::optional<ContentTime> to;
+};