38 Settings *Settings::m_pInstance =
nullptr;
56 auto env_debug = std::getenv(
"LIBOPENSHOT_DEBUG");
57 if (env_debug !=
nullptr)
int FF_THREADS
Number of threads that ffmpeg uses.
bool HIGH_QUALITY_SCALING
Scale mode used in FFmpeg decoding and encoding (used as an optimization for faster previews) ...
This class is contains settings used by libopenshot (and can be safely toggled at any point) ...
bool DEBUG_TO_STDERR
Whether to dump ZeroMQ debug messages to stderr.
int OMP_THREADS
Number of threads of OpenMP.
std::string PLAYBACK_AUDIO_DEVICE_NAME
The audio device name to use during playback.
int HARDWARE_DECODER
Use video codec for faster video decoding (if supported)
Header file for global Settings class.
int HW_DE_DEVICE_SET
Which GPU to use to decode (0 is the first)
This namespace is the default namespace for all code in the openshot library.
static Settings * Instance()
Create or get an instance of this logger singleton (invoke the class with this method) ...
int HW_EN_DEVICE_SET
Which GPU to use to encode (0 is the first)
int DE_LIMIT_WIDTH_MAX
Maximum columns that hardware decode can handle.
int DE_LIMIT_HEIGHT_MAX
Maximum rows that hardware decode can handle.