diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-25 10:27:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-25 13:36:16 +0100 |
| commit | 59f0ccd3fc0c0875a9914ec035cc686e442511b7 (patch) | |
| tree | 1bf363d5fe80ffa926cd6b773ebd5b60bfdb7555 /src/lib/subtitle_content.h | |
| parent | 407a17c2053047ebb0be427b21fafb853abf65e3 (diff) | |
Add burn_subtitles property to SubtitleContent.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 7f2e3b136..99cf3b382 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -32,6 +32,7 @@ public: static int const SUBTITLE_X_SCALE; static int const SUBTITLE_Y_SCALE; static int const USE_SUBTITLES; + static int const BURN_SUBTITLES; static int const SUBTITLE_LANGUAGE; static int const FONTS; }; @@ -60,6 +61,7 @@ public: void add_font (boost::shared_ptr<Font> font); void set_use_subtitles (bool); + void set_burn_subtitles (bool); void set_subtitle_x_offset (double); void set_subtitle_y_offset (double); void set_subtitle_x_scale (double); @@ -71,6 +73,11 @@ public: return _use_subtitles; } + bool burn_subtitles () const { + boost::mutex::scoped_lock lm (_mutex); + return _burn_subtitles; + } + double subtitle_x_offset () const { boost::mutex::scoped_lock lm (_mutex); return _subtitle_x_offset; @@ -111,6 +118,7 @@ private: void connect_to_fonts (); bool _use_subtitles; + bool _burn_subtitles; /** x offset for placing subtitles, as a proportion of the container width; * +ve is further right, -ve is further left. */ |
