diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-10 22:43:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-10 23:00:15 +0000 |
| commit | 0af38a850f967fd1848850a18432abc6314e9cc4 (patch) | |
| tree | 0796f547efd4174b5f8fdb1c9b0bf0fa88c9be49 /src/lib/config.h | |
| parent | 17f9254f68fabfe5d8136d256b69a65fc58724ee (diff) | |
Save decoding resolution reduction between launches (#1195).
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index db32c58a0..d50e585e3 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -376,6 +376,12 @@ public: return _frames_in_memory_multiplier; } + boost::optional<int> decode_reduction () const { + return _decode_reduction; + } + + /* SET (mostly) */ + void set_master_encoding_threads (int n) { maybe_set (_master_encoding_threads, n); } @@ -651,6 +657,10 @@ public: maybe_set (_frames_in_memory_multiplier, m); } + void set_decode_reduction (boost::optional<int> r) { + maybe_set (_decode_reduction, r); + } + void clear_history () { _history.clear (); changed (); @@ -832,6 +842,7 @@ private: boost::optional<KDMWriteType> _last_kdm_write_type; boost::optional<DKDMWriteType> _last_dkdm_write_type; int _frames_in_memory_multiplier; + boost::optional<int> _decode_reduction; /** Singleton instance, or 0 */ static Config* _instance; |
