13 #ifndef OPENSHOT_SETTINGS_H
14 #define OPENSHOT_SETTINGS_H
50 int applied_omp_threads = 0;
53 int default_omp_threads = 2;
56 int default_ff_threads = 2;
This class is contains settings used by libopenshot (and can be safely toggled at any point)
int PLAYBACK_AUDIO_BUFFER_SIZE
Size of playback buffer before audio playback starts.
int DE_LIMIT_WIDTH_MAX
Maximum columns that hardware decode can handle.
int OMP_THREADS
Number of OpenMP threads.
int MaxAllowedThreads() const
Return the maximum allowed thread override based on this machine.
std::string PLAYBACK_AUDIO_DEVICE_NAME
The audio device name to use during playback.
std::string PLAYBACK_AUDIO_DEVICE_TYPE
The device type for the playback audio devices.
std::string PATH_OPENSHOT_INSTALL
int HW_DE_DEVICE_SET
Which GPU to use to decode (0 is the first)
int CACHE_MIN_FRAMES
Minimum number of frames for frame-count-based caches.
void ApplyOpenMPSettings()
Apply any explicit OpenMP thread override to the runtime.
int DE_LIMIT_HEIGHT_MAX
Maximum rows that hardware decode can handle.
static Settings * Instance()
Create or get an instance of this logger singleton (invoke the class with this method)
int VIDEO_CACHE_MIN_PREROLL_FRAMES
Minimum number of frames to cache before playback begins.
int HARDWARE_DECODER
Use video codec for faster video decoding (if supported)
bool HIGH_QUALITY_SCALING
Scale mode used in FFmpeg decoding and encoding (used as an optimization for faster previews)
int VIDEO_CACHE_MAX_FRAMES
Max number of frames (when paused) to cache for playback.
int FF_THREADS
Number of threads that ffmpeg uses.
float VIDEO_CACHE_PERCENT_AHEAD
Percentage of cache in front of the playhead (0.0 to 1.0)
bool ENABLE_PLAYBACK_CACHING
Enable/Disable the cache thread to pre-fetch and cache video frames before we need them.
int DefaultFFThreads() const
Return the machine default FFmpeg thread count detected at startup.
int DefaultOMPThreads() const
Return the machine default OpenMP thread count detected at startup.
int EffectiveOMPThreads() const
Return the effective OpenMP worker budget used by libopenshot heuristics.
int HW_EN_DEVICE_SET
Which GPU to use to encode (0 is the first)
int VIDEO_CACHE_MAX_PREROLL_FRAMES
Max number of frames (ahead of playhead) to cache during playback.
bool DEBUG_TO_STDERR
Whether to dump ZeroMQ debug messages to stderr.
This namespace is the default namespace for all code in the openshot library.