- : _num_local_encoding_threads (max (2U, boost::thread::hardware_concurrency()))
- , _server_port_base (6192)
- , _use_any_servers (true)
- , _tms_path (".")
- , _cinema_sound_processor (CinemaSoundProcessor::from_id (N_("dolby_cp750")))
- , _allow_any_dcp_frame_rate (false)
- , _default_still_length (10)
- , _default_scale (VideoContentScale (Ratio::from_id ("185")))
- , _default_container (Ratio::from_id ("185"))
- , _default_dcp_content_type (DCPContentType::from_isdcf_name ("TST"))
- , _default_j2k_bandwidth (100000000)
- , _default_audio_delay (0)
- , _check_for_updates (false)
- , _check_for_test_updates (false)
- , _maximum_j2k_bandwidth (250000000)
- , _log_types (Log::TYPE_GENERAL | Log::TYPE_WARNING | Log::TYPE_ERROR)
+{
+ set_defaults ();
+}
+
+void
+Config::set_defaults ()
+{
+ _num_local_encoding_threads = max (2U, boost::thread::hardware_concurrency ());
+ _server_port_base = 6192;
+ _use_any_servers = true;
+ _tms_path = ".";
+ _cinema_sound_processor = CinemaSoundProcessor::from_id (N_("dolby_cp750"));
+ _allow_any_dcp_frame_rate = false;
+ _default_still_length = 10;
+ _default_container = Ratio::from_id ("185");
+ _default_dcp_content_type = DCPContentType::from_isdcf_name ("FTR");
+ _default_j2k_bandwidth = 100000000;
+ _default_audio_delay = 0;
+ _check_for_updates = false;
+ _check_for_test_updates = false;
+ _maximum_j2k_bandwidth = 250000000;
+ _log_types = Log::TYPE_GENERAL | Log::TYPE_WARNING | Log::TYPE_ERROR | Log::TYPE_DEBUG;