diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-12 22:54:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-12 22:54:17 +0100 |
| commit | fe0b4d0512d289caf3bc327a3791edcdd0fa3d0c (patch) | |
| tree | 9d5b635ea2494af2dddf78efe2ba800d483c2274 /src/lib/config.h | |
| parent | b6d38b0b7125811b7eb58b55adcd5b8b7aac9266 (diff) | |
Add default scale-to (#664).
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index fc6315242..4406f1649 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -163,6 +163,10 @@ public: return _default_container; } + Ratio const * default_scale_to () const { + return _default_scale_to; + } + DCPContentType const * default_dcp_content_type () const { return _default_dcp_content_type; } @@ -431,6 +435,10 @@ public: maybe_set (_default_container, c); } + void set_default_scale_to (Ratio const * c) { + maybe_set (_default_scale_to, c); + } + void set_default_dcp_content_type (DCPContentType const * t) { maybe_set (_default_dcp_content_type, t); } @@ -697,6 +705,7 @@ private: /** Default length of still image content (seconds) */ int _default_still_length; Ratio const * _default_container; + Ratio const * _default_scale_to; DCPContentType const * _default_dcp_content_type; int _default_dcp_audio_channels; std::string _dcp_issuer; |
