diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-01 21:20:51 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-16 00:38:53 +0100 |
| commit | 7b66e9c9de6df12f49b358d9496a9e64b68db550 (patch) | |
| tree | a7174cc9c15afb6ee7c8a462b4899d4e86ab4e82 /src/lib/config.h | |
| parent | 348c4507bc8d37de6da9f4b2ecd1ae1b180c47d2 (diff) | |
Primitive auto-crop (#1477).
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 5289656e3..bdf6c8395 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -84,6 +84,7 @@ public: HISTORY, SHOW_EXPERIMENTAL_AUDIO_PROCESSORS, AUDIO_MAPPING, + AUTO_CROP_THRESHOLD, OTHER }; @@ -547,6 +548,10 @@ public: return _add_files_path; } + double auto_crop_threshold () const { + return _auto_crop_threshold; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -1055,6 +1060,10 @@ public: changed (); } + 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 @@ -1268,6 +1277,7 @@ private: boost::optional<AudioMapping> _audio_mapping; std::vector<dcp::LanguageTag> _custom_languages; boost::optional<boost::filesystem::path> _add_files_path; + double _auto_crop_threshold; static int const _current_version; |
