OpenShot Library | libopenshot  0.6.0
Macros
OpenMPUtilities.h File Reference

Header file for OpenMPUtilities (set some common macros) More...

#include <omp.h>
#include <algorithm>
#include <string>
#include "Settings.h"
Include dependency graph for OpenMPUtilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FF_AUDIO_NUM_PROCESSORS   std::clamp(openshot::Settings::Instance()->FF_THREADS, 2, openshot::Settings::Instance()->MaxAllowedThreads())
 
#define FF_VIDEO_NUM_PROCESSORS   std::clamp(openshot::Settings::Instance()->FF_THREADS, 2, openshot::Settings::Instance()->MaxAllowedThreads())
 
#define OPEN_MP_MAX_ACTIVE   OPEN_MP_NUM_PROCESSORS
 
#define OPEN_MP_NUM_PROCESSORS   openshot::Settings::Instance()->EffectiveOMPThreads()
 

Detailed Description

Header file for OpenMPUtilities (set some common macros)

Author
Jonathan Thomas jonat.nosp@m.han@.nosp@m.opens.nosp@m.hot..nosp@m.org

License

Definition in file OpenMPUtilities.h.

Macro Definition Documentation

◆ FF_AUDIO_NUM_PROCESSORS

#define FF_AUDIO_NUM_PROCESSORS   std::clamp(openshot::Settings::Instance()->FF_THREADS, 2, openshot::Settings::Instance()->MaxAllowedThreads())

Definition at line 25 of file OpenMPUtilities.h.

◆ FF_VIDEO_NUM_PROCESSORS

#define FF_VIDEO_NUM_PROCESSORS   std::clamp(openshot::Settings::Instance()->FF_THREADS, 2, openshot::Settings::Instance()->MaxAllowedThreads())

Definition at line 24 of file OpenMPUtilities.h.

◆ OPEN_MP_MAX_ACTIVE

#define OPEN_MP_MAX_ACTIVE   OPEN_MP_NUM_PROCESSORS

Definition at line 32 of file OpenMPUtilities.h.

◆ OPEN_MP_NUM_PROCESSORS

#define OPEN_MP_NUM_PROCESSORS   openshot::Settings::Instance()->EffectiveOMPThreads()

Definition at line 23 of file OpenMPUtilities.h.