X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fconfig.h;fp=src%2Flib%2Fconfig.h;h=40497e2193e1d1ce8b9bce4fa4cb95dfbc194339;hp=1d40a3b1579e4d1b32e3353c59727ec43cdd0a1b;hb=d5c059a2ff9bab5c2973db6bc4860591679dd42b;hpb=5b2b8279d8eb33d31166027d876b4c9f86087bfd diff --git a/src/lib/config.h b/src/lib/config.h index 1d40a3b15..40497e219 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -91,6 +91,7 @@ public: HISTORY, SHOW_EXPERIMENTAL_AUDIO_PROCESSORS, AUDIO_MAPPING, + AUTO_CROP_THRESHOLD, OTHER }; @@ -571,6 +572,9 @@ public: return _default_kdm_type; } + double auto_crop_threshold () const { + return _auto_crop_threshold; + } /* SET (mostly) */ @@ -1096,6 +1100,10 @@ public: maybe_set (_default_kdm_type, type); } + void set_auto_crop_threshold (double threshold) { + maybe_set (_auto_crop_threshold, threshold, AUTO_CROP_THRESHOLD); + } + void changed (Property p = OTHER); boost::signals2::signal Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -1316,6 +1324,7 @@ private: bool _write_kdms_to_disk; bool _email_kdms; dcp::Formulation _default_kdm_type; + double _auto_crop_threshold; static int const _current_version;