From ef578569611e2fa0e91bdd5a726fc0c251540e6d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 5 Feb 2021 20:36:19 +0100 Subject: Testing: add minimum frame size configuration option. --- src/lib/config.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/lib/config.h') diff --git a/src/lib/config.h b/src/lib/config.h index 957a84666..0e8fccb53 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2020 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -536,6 +536,10 @@ public: AudioMapping audio_mapping (int output_channels); + int minimum_frame_size () const { + return _minimum_frame_size; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -1047,6 +1051,10 @@ public: void set_audio_mapping (AudioMapping m); void set_audio_mapping_to_default (); + void set_minimum_frame_size (int size) { + maybe_set (_minimum_frame_size, size); + } + void changed (Property p = OTHER); boost::signals2::signal Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -1260,6 +1268,7 @@ private: boost::optional _player_playlist_directory; boost::optional _player_kdm_directory; boost::optional _audio_mapping; + int _minimum_frame_size; static int const _current_version; -- cgit v1.2.3