summaryrefslogtreecommitdiff
path: root/src/subtitle.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-05 16:35:34 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-05 16:35:34 +0000
commit6c5e5435d105685a537561ca0e6a223d34af85e1 (patch)
treeb2415a607f5fdaadc4a37edb7e7a68a5ef0bc7cc /src/subtitle.h
parent095dcf9a0fb075ca84537beff2fe6a41c837e8da (diff)
Support for conversions of things that have multiple representations.
Diffstat (limited to 'src/subtitle.h')
-rw-r--r--src/subtitle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/subtitle.h b/src/subtitle.h
index b60b7f7..889f405 100644
--- a/src/subtitle.h
+++ b/src/subtitle.h
@@ -27,6 +27,7 @@
#include "effect.h"
#include <boost/optional.hpp>
#include <string>
+#include <list>
namespace sub {
@@ -50,6 +51,8 @@ public:
boost::optional<float> proportional;
/** in points */
boost::optional<int> points;
+
+ void convert ();
} font_size;
/** vertical position of the baseline of the text */
@@ -87,6 +90,9 @@ public:
bool operator< (Subtitle const & a, Subtitle const & b);
+void convert_font_sizes (std::list<Subtitle> &, int screen_height_in_points);
+void convert_times (std::list<Subtitle> &, float frames_per_second);
+
}
#endif