Support auto-crop for YUV422P10LE.
[dcpomatic.git] / src / lib / config.h
index 1d40a3b1579e4d1b32e3353c59727ec43cdd0a1b..e425a976cf6c2315dfe31dd3129e33866c5c2571 100644 (file)
@@ -28,6 +28,7 @@
 
 
 #include "audio_mapping.h"
+#include "rough_duration.h"
 #include "state.h"
 #include "types.h"
 #include <dcp/name_format.h>
@@ -91,6 +92,7 @@ public:
                HISTORY,
                SHOW_EXPERIMENTAL_AUDIO_PROCESSORS,
                AUDIO_MAPPING,
+               AUTO_CROP_THRESHOLD,
                OTHER
        };
 
@@ -571,6 +573,13 @@ public:
                return _default_kdm_type;
        }
 
+       RoughDuration default_kdm_duration () const {
+               return _default_kdm_duration;
+       }
+
+       double auto_crop_threshold () const {
+               return _auto_crop_threshold;
+       }
 
        /* SET (mostly) */
 
@@ -1096,6 +1105,14 @@ 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);
+       }
+
        void changed (Property p = OTHER);
        boost::signals2::signal<void (Property)> Changed;
        /** Emitted if read() failed on an existing Config file.  There is nothing
@@ -1316,6 +1333,8 @@ 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;