summaryrefslogtreecommitdiff
path: root/src/subtitle.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-14 17:39:32 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-20 11:20:25 +0000
commit3f630fb8334238ab8a58fbe1a0f513ae2c00de80 (patch)
tree4b773b91029d6374bfd4f2194053d3e249d597cd /src/subtitle.h
parent49cafda01b3e07c47e3b20dd5ee91e1426446aea (diff)
Simplify time representation; better in-tree DCP subtitle parser.
Diffstat (limited to 'src/subtitle.h')
-rw-r--r--src/subtitle.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/subtitle.h b/src/subtitle.h
index 6afdc51..3906314 100644
--- a/src/subtitle.h
+++ b/src/subtitle.h
@@ -20,12 +20,9 @@
#ifndef LIBSUB_SUBTITLE_H
#define LIBSUB_SUBTITLE_H
-#include "frame_time.h"
-#include "metric_time.h"
#include "colour.h"
#include "vertical_reference.h"
#include "effect.h"
-#include "time_pair.h"
#include "font_size.h"
#include "vertical_position.h"
#include "raw_subtitle.h"
@@ -55,7 +52,7 @@ public:
/** Subtitle text in UTF-8 */
std::string text;
- std::string font;
+ boost::optional<std::string> font;
/** font size */
FontSize font_size;
@@ -106,12 +103,12 @@ public:
Subtitle (RawSubtitle s);
/** from time */
- TimePair from;
+ Time from;
/** to time */
- TimePair to;
+ Time to;
- boost::optional<MetricTime> fade_up;
- boost::optional<MetricTime> fade_down;
+ boost::optional<Time> fade_up;
+ boost::optional<Time> fade_down;
std::list<Line> lines;