diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-25 10:50:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-25 10:50:19 +0100 |
| commit | 4a5fcd19ca16447ba8b204986a378072a9c730b2 (patch) | |
| tree | af96095183aff5d1331b370283f6623570d5ff65 /src/lib/subtitle_content.h | |
| parent | e2d0781d45fccd67649a8943f1fb45442f5d2cbc (diff) | |
Make burnt-in subtitle outline width configurable (#940).
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 ddc97ce9f..7278b5408 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -46,6 +46,7 @@ public: static int const LINE_SPACING; static int const FADE_IN; static int const FADE_OUT; + static int const OUTLINE_WIDTH; }; /** @class SubtitleContent @@ -80,6 +81,7 @@ public: void set_line_spacing (double s); void set_fade_in (ContentTime); void set_fade_out (ContentTime); + void set_outline_width (int); bool use () const { boost::mutex::scoped_lock lm (_mutex); @@ -156,6 +158,11 @@ public: return _fade_out; } + int outline_width () const { + boost::mutex::scoped_lock lm (_mutex); + return _outline_width; + } + static boost::shared_ptr<SubtitleContent> from_xml (Content* parent, cxml::ConstNodePtr, int version); protected: @@ -194,6 +201,7 @@ private: double _line_spacing; ContentTime _fade_in; ContentTime _fade_out; + int _outline_width; }; #endif |
