diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-09-12 22:45:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-09-12 22:45:24 +0100 |
| commit | 4265db19ba68a995fca42bdd5fa815aead9c5c50 (patch) | |
| tree | bfce12d663f71080430cf4da74229fd5f48f214f /src/lib/subtitle_content.h | |
| parent | a8f51733f93bcf88d867d5a4b359e6e14ddad91a (diff) | |
Allow separate X and Y scale for subtitles.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 388637688..329368e44 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -27,7 +27,8 @@ class SubtitleContentProperty public: static int const SUBTITLE_X_OFFSET; static int const SUBTITLE_Y_OFFSET; - static int const SUBTITLE_SCALE; + static int const SUBTITLE_X_SCALE; + static int const SUBTITLE_Y_SCALE; }; class SubtitleContent : public virtual Content @@ -41,7 +42,8 @@ public: void set_subtitle_x_offset (double); void set_subtitle_y_offset (double); - void set_subtitle_scale (double); + void set_subtitle_x_scale (double); + void set_subtitle_y_scale (double); double subtitle_x_offset () const { boost::mutex::scoped_lock lm (_mutex); @@ -53,9 +55,14 @@ public: return _subtitle_y_offset; } - double subtitle_scale () const { + double subtitle_x_scale () const { boost::mutex::scoped_lock lm (_mutex); - return _subtitle_scale; + return _subtitle_x_scale; + } + + double subtitle_y_scale () const { + boost::mutex::scoped_lock lm (_mutex); + return _subtitle_y_scale; } private: @@ -69,8 +76,10 @@ private: * +ve is further down the frame, -ve is further up. */ double _subtitle_y_offset; - /** scale factor to apply to subtitles */ - double _subtitle_scale; + /** x scale factor to apply to subtitles */ + double _subtitle_x_scale; + /** y scale factor to apply to subtitles */ + double _subtitle_y_scale; }; #endif |
