diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cpl.cc | 16 | ||||
| -rw-r--r-- | src/cpl.h | 4 |
2 files changed, 17 insertions, 3 deletions
@@ -747,3 +747,19 @@ CPL::set_additional_subtitle_languages (vector<dcp::LanguageTag> const& langs) _additional_subtitle_languages.push_back (i.to_string()); } } + + +void +CPL::set_main_picture_active_area(dcp::Size area) +{ + if (area.width % 2) { + throw BadSettingError("Main picture active area width is not a multiple of 2"); + } + + if (area.height % 2) { + throw BadSettingError("Main picture active area height is not a multiple of 2"); + } + + _main_picture_active_area = area; +} + @@ -307,9 +307,7 @@ public: return _main_picture_active_area; } - void set_main_picture_active_area (dcp::Size s) { - _main_picture_active_area = s; - } + void set_main_picture_active_area(dcp::Size area); std::vector<std::string> additional_subtitle_languages () const { return _additional_subtitle_languages; |
