summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-03 00:37:04 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-03 00:37:04 +0200
commit26866fdeba6dd868b1809de49799690555164f70 (patch)
treeb32d2945ae420080e262cc112e1a8b4a923b0e2b /src/lib/config.h
parentf4b53f21561e581464a3a4f58c5b18d819b7969b (diff)
Add preference for default KDM duration (#2224).
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 40497e219..e425a976c 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -28,6 +28,7 @@
#include "audio_mapping.h"
+#include "rough_duration.h"
#include "state.h"
#include "types.h"
#include <dcp/name_format.h>
@@ -572,6 +573,10 @@ public:
return _default_kdm_type;
}
+ RoughDuration default_kdm_duration () const {
+ return _default_kdm_duration;
+ }
+
double auto_crop_threshold () const {
return _auto_crop_threshold;
}
@@ -1100,6 +1105,10 @@ public:
maybe_set (_default_kdm_type, type);
}
+ void set_default_kdm_duration (RoughDuration duration) {
+ maybe_set (_default_kdm_duration, duration);
+ }
+
void set_auto_crop_threshold (double threshold) {
maybe_set (_auto_crop_threshold, threshold, AUTO_CROP_THRESHOLD);
}
@@ -1324,6 +1333,7 @@ private:
bool _write_kdms_to_disk;
bool _email_kdms;
dcp::Formulation _default_kdm_type;
+ RoughDuration _default_kdm_duration;
double _auto_crop_threshold;
static int const _current_version;