20Settings *Settings::m_pInstance =
nullptr;
27 m_pInstance =
new Settings;
28 m_pInstance->OMP_THREADS = omp_get_num_procs();
29 m_pInstance->FF_THREADS = omp_get_num_procs();
30 auto env_debug = std::getenv(
"LIBOPENSHOT_DEBUG");
31 if (env_debug !=
nullptr)
32 m_pInstance->DEBUG_TO_STDERR =
true;
Header file for global Settings class.
This class is contains settings used by libopenshot (and can be safely toggled at any point).
static Settings * Instance()
Create or get an instance of this logger singleton (invoke the class with this method).
This namespace is the default namespace for all code in the openshot library.