summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-02 17:33:07 +0100
committerCarl Hetherington <cth@carlh.net>2016-03-21 16:41:06 +0000
commitb0d41c5a78f852619cde4249860c6bbe490804ff (patch)
treeb59c902cb36a6214301e1a098ddfc690dd29d880 /src/lib/config.h
parent82be5b24a943f1f31e0de20f0e2e2bb5a8a531bf (diff)
Basic classes for different JPEG2000 encoders; config to choose one.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index e5795d2c3..603af8c5e 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -37,6 +37,7 @@ class CinemaSoundProcessor;
class DCPContentType;
class Ratio;
class Cinema;
+class JPEG2000Encoder;
/** @class Config
* @brief A singleton class holding configuration.
@@ -244,6 +245,9 @@ public:
return _win32_console;
}
#endif
+ boost::optional<std::string> encoder () {
+ return _encoder;
+ }
std::vector<boost::filesystem::path> history () const {
return _history;
@@ -457,6 +461,15 @@ public:
void set_cinemas_file (boost::filesystem::path file);
+ void set_encoder (std::string id) {
+ if (_encoder && _encoder.get() == id) {
+ return;
+ }
+
+ _encoder = id;
+ changed ();
+ }
+
void clear_history () {
_history.clear ();
changed ();
@@ -559,6 +572,7 @@ private:
#ifdef DCPOMATIC_WINDOWS
bool _win32_console;
#endif
+ boost::optional<std::string> _encoder;
std::vector<boost::filesystem::path> _history;
std::vector<dcp::EncryptedKDM> _dkdms;
boost::filesystem::path _cinemas_file;