X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fconfig.h;h=fed297ad00f91018029f3b51b214bbf3b46c3bfd;hp=c41437efbe290f6aacad37ec5387fd21dc4d99db;hb=b1873c51b2e8265a01a8f0eced7fc3465f1677dc;hpb=494b6ee180e531358bab39e72f6123e90f9314e5 diff --git a/src/lib/config.h b/src/lib/config.h index c41437efb..fed297ad0 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -27,6 +27,7 @@ #include #include #include +#include "dci_metadata.h" class ServerDescription; class Scaler; @@ -98,6 +99,10 @@ public: return _allowed_dcp_frame_rates; } + DCIMetadata default_dci_metadata () const { + return _default_dci_metadata; + } + /** @param n New number of local encoding threads */ void set_num_local_encoding_threads (int n) { _num_local_encoding_threads = n; @@ -149,6 +154,10 @@ public: _allowed_dcp_frame_rates = r; } + void set_default_dci_metadata (DCIMetadata d) { + _default_dci_metadata = d; + } + void write () const; static Config* instance (); @@ -181,6 +190,8 @@ private: /** Our sound processor */ SoundProcessor const * _sound_processor; std::list _allowed_dcp_frame_rates; + /** Default DCI metadata for newly-created Films */ + DCIMetadata _default_dci_metadata; /** Singleton instance, or 0 */ static Config* _instance;