diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 11:27:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 11:27:26 +0100 |
| commit | bde76c3341775bd02da59932d285e14eade64ae0 (patch) | |
| tree | 7f0922faf1e64e74c029037afe8857c63f25e51a /src/lib/subtitle_content.cc | |
| parent | c7b68d663ac3db10dcf2bfcc11009dce46f820dc (diff) | |
Basics of DCP subtitle import.
Diffstat (limited to 'src/lib/subtitle_content.cc')
| -rw-r--r-- | src/lib/subtitle_content.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/subtitle_content.cc b/src/lib/subtitle_content.cc index 88e48b420..8c94a94b9 100644 --- a/src/lib/subtitle_content.cc +++ b/src/lib/subtitle_content.cc @@ -26,6 +26,7 @@ #include "i18n.h" using std::string; +using std::stringstream; using std::vector; using std::cout; using boost::shared_ptr; @@ -155,3 +156,15 @@ SubtitleContent::set_subtitle_scale (double s) } signal_changed (SubtitleContentProperty::SUBTITLE_SCALE); } + +string +SubtitleContent::identifier () const +{ + stringstream s; + s << Content::identifier() + << "_" << raw_convert<string> (subtitle_scale()) + << "_" << raw_convert<string> (subtitle_x_offset()) + << "_" << raw_convert<string> (subtitle_y_offset()); + + return s.str (); +} |
