MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
VideoDisplayProfile Class Reference

#include <videodisplayprofile.h>

Collaboration diagram for VideoDisplayProfile:
Collaboration graph
[legend]

Public Member Functions

 VideoDisplayProfile ()
 
 ~VideoDisplayProfile ()=default
 
void SetInput (const QSize &size, float framerate=0, const QString &codecName=QString())
 
void SetOutput (float framerate)
 
float GetOutput (void) const
 
void SetVideoRenderer (const QString &video_renderer)
 
bool CheckVideoRendererGroup (const QString &renderer)
 
QString GetDecoder (void) const
 
bool IsDecoderCompatible (const QString &decoder)
 
uint GetMaxCPUs (void) const
 
bool IsSkipLoopEnabled (void) const
 
QString GetVideoRenderer (void) const
 
QString GetOSDRenderer (void) const
 
bool IsOSDFadeEnabled (void) const
 
QString GetDeinterlacer (void) const
 
QString GetFallbackDeinterlacer (void) const
 
QString GetFilters (void) const
 
QString GetFilteredDeint (const QString &override)
 
QString toString (void) const
 
QString GetActualVideoRenderer (void) const
 

Static Public Member Functions

static QStringList GetDecoders (void)
 
static QStringList GetDecoderNames (void)
 
static QString GetDecoderName (const QString &decoder)
 
static QString GetDecoderHelp (const QString &decoder=QString())
 
static QString GetDefaultProfileName (const QString &hostname)
 
static void SetDefaultProfileName (const QString &profilename, const QString &hostname)
 
static uint GetProfileGroupID (const QString &profilename, const QString &hostname)
 
static QStringList GetProfiles (const QString &hostname)
 
static bool DeleteProfileGroup (const QString &groupname, const QString &hostname)
 
static uint CreateProfileGroup (const QString &profilename, const QString &hostname)
 
static void CreateProfile (uint groupid, uint priority, const QString &cmp0, uint width0, uint height0, const QString &cmp1, uint width1, uint height1, const QString &decoder, uint max_cpus, bool skiploop, const QString &videorenderer, const QString &osdrenderer, bool osdfade, const QString &deint0, const QString &deint1, const QString &filters)
 
static void CreateProfile (uint groupid, uint priority, const QString &width, const QString &height, const QString &codecs, const QString &decoder, uint max_cpus, bool skiploop, const QString &videorenderer, const QString &osdrenderer, bool osdfade, const QString &deint0, const QString &deint1, const QString &filters)
 
static void DeleteProfiles (const QString &hostname)
 
static void CreateProfiles (const QString &hostname)
 
static QStringList GetVideoRenderers (const QString &decoder)
 
static QString GetVideoRendererHelp (const QString &renderer)
 
static QString GetPreferredVideoRenderer (const QString &decoder)
 
static QStringList GetDeinterlacers (const QString &video_renderer)
 
static QString GetDeinterlacerName (const QString &short_name)
 
static QString GetDeinterlacerHelp (const QString &deint)
 
static QStringList GetOSDs (const QString &video_renderer)
 
static QString GetOSDHelp (const QString &osd)
 
static bool IsFilterAllowed (const QString &video_renderer)
 
static QStringList GetFilteredRenderers (const QString &decoder, const QStringList &renderers)
 
static QString GetBestVideoRenderer (const QStringList &renderers)
 
static item_list_t LoadDB (uint groupid)
 
static bool DeleteDB (uint groupid, const item_list_t &)
 
static bool SaveDB (uint groupid, item_list_t &)
 

Private Member Functions

item_list_t::const_iterator FindMatch (const QSize &size, float framerate, const QString &codecName)
 
void LoadBestPreferences (const QSize &size, float framerate, const QString &codecName)
 
QString GetPreference (const QString &key) const
 
void SetPreference (const QString &key, const QString &value)
 

Static Private Member Functions

static void init_statics (void)
 

Private Attributes

QMutex lock
 
QSize last_size
 
float last_rate
 
QString last_codecName
 
QString last_video_renderer
 
pref_map_t pref
 
item_list_t all_pref
 

Static Private Attributes

static QMutex s_safe_lock
 
static bool s_safe_initialized = false
 
static safe_map_t s_safe_renderer
 
static safe_map_t s_safe_renderer_group
 
static safe_map_t s_safe_deint
 
static safe_map_t s_safe_osd
 
static safe_map_t s_safe_equiv_dec
 
static safe_list_t s_safe_custom
 
static priority_map_t s_safe_renderer_priority
 
static pref_map_t s_dec_name
 
static safe_list_t s_safe_decoders
 

Detailed Description

Definition at line 85 of file videodisplayprofile.h.

Constructor & Destructor Documentation

◆ VideoDisplayProfile()

VideoDisplayProfile::VideoDisplayProfile ( )

Definition at line 384 of file videodisplayprofile.cpp.

◆ ~VideoDisplayProfile()

VideoDisplayProfile::~VideoDisplayProfile ( )
default

Member Function Documentation

◆ SetInput()

void VideoDisplayProfile::SetInput ( const QSize &  size,
float  framerate = 0,
const QString &  codecName = QString() 
)

◆ SetOutput()

void VideoDisplayProfile::SetOutput ( float  framerate)

Definition at line 436 of file videodisplayprofile.cpp.

Referenced by VideoOutput::SetVideoFrameRate().

◆ GetOutput()

float VideoDisplayProfile::GetOutput ( void  ) const
inline

Definition at line 94 of file videodisplayprofile.h.

Referenced by VideoOutput::ResizeForVideo().

◆ SetVideoRenderer()

void VideoDisplayProfile::SetVideoRenderer ( const QString &  video_renderer)

◆ CheckVideoRendererGroup()

bool VideoDisplayProfile::CheckVideoRendererGroup ( const QString &  renderer)

Definition at line 489 of file videodisplayprofile.cpp.

◆ GetDecoder()

QString VideoDisplayProfile::GetDecoder ( void  ) const
inline

Definition at line 99 of file videodisplayprofile.h.

Referenced by IsDecoderCompatible(), and AvFormatDecoder::ScanStreams().

◆ IsDecoderCompatible()

bool VideoDisplayProfile::IsDecoderCompatible ( const QString &  decoder)

Definition at line 507 of file videodisplayprofile.cpp.

Referenced by VideoOutput::Create().

◆ GetMaxCPUs()

uint VideoDisplayProfile::GetMaxCPUs ( void  ) const
inline

◆ IsSkipLoopEnabled()

bool VideoDisplayProfile::IsSkipLoopEnabled ( void  ) const
inline

Definition at line 106 of file videodisplayprofile.h.

Referenced by AvFormatDecoder::ScanStreams().

◆ GetVideoRenderer()

QString VideoDisplayProfile::GetVideoRenderer ( void  ) const
inline

◆ GetOSDRenderer()

QString VideoDisplayProfile::GetOSDRenderer ( void  ) const
inline

◆ IsOSDFadeEnabled()

bool VideoDisplayProfile::IsOSDFadeEnabled ( void  ) const
inline

Definition at line 114 of file videodisplayprofile.h.

Referenced by VideoOutput::InitOSD().

◆ GetDeinterlacer()

QString VideoDisplayProfile::GetDeinterlacer ( void  ) const
inline

Definition at line 117 of file videodisplayprofile.h.

Referenced by GetFilteredDeint(), and SetVideoRenderer().

◆ GetFallbackDeinterlacer()

QString VideoDisplayProfile::GetFallbackDeinterlacer ( void  ) const
inline

◆ GetFilters()

QString VideoDisplayProfile::GetFilters ( void  ) const
inline

Definition at line 122 of file videodisplayprofile.h.

Referenced by VideoOutput::GetFilters().

◆ GetFilteredDeint()

QString VideoDisplayProfile::GetFilteredDeint ( const QString &  override)

◆ toString()

QString VideoDisplayProfile::toString ( void  ) const

Definition at line 1939 of file videodisplayprofile.cpp.

Referenced by SetVideoRenderer().

◆ GetDecoders()

QStringList VideoDisplayProfile::GetDecoders ( void  )
static

◆ GetDecoderNames()

QStringList VideoDisplayProfile::GetDecoderNames ( void  )
static

Definition at line 820 of file videodisplayprofile.cpp.

Referenced by PlaybackProfileItemConfig::Load().

◆ GetDecoderName()

QString VideoDisplayProfile::GetDecoderName ( const QString &  decoder)
static

Definition at line 833 of file videodisplayprofile.cpp.

Referenced by GetDecoderNames(), and PlaybackProfileItemConfig::Load().

◆ GetDecoderHelp()

QString VideoDisplayProfile::GetDecoderHelp ( const QString &  decoder = QString())
static

◆ GetDefaultProfileName()

QString VideoDisplayProfile::GetDefaultProfileName ( const QString &  hostname)
static

◆ SetDefaultProfileName()

void VideoDisplayProfile::SetDefaultProfileName ( const QString &  profilename,
const QString &  hostname 
)
static

◆ GetProfileGroupID()

uint VideoDisplayProfile::GetProfileGroupID ( const QString &  profilename,
const QString &  hostname 
)
static

◆ GetProfiles()

QStringList VideoDisplayProfile::GetProfiles ( const QString &  hostname)
static

◆ DeleteProfileGroup()

bool VideoDisplayProfile::DeleteProfileGroup ( const QString &  groupname,
const QString &  hostname 
)
static

Definition at line 1267 of file videodisplayprofile.cpp.

Referenced by PlaybackProfileConfig::Save().

◆ CreateProfileGroup()

uint VideoDisplayProfile::CreateProfileGroup ( const QString &  profilename,
const QString &  hostname 
)
static

◆ CreateProfile() [1/2]

void VideoDisplayProfile::CreateProfile ( uint  groupid,
uint  priority,
const QString &  cmp0,
uint  width0,
uint  height0,
const QString &  cmp1,
uint  width1,
uint  height1,
const QString &  decoder,
uint  max_cpus,
bool  skiploop,
const QString &  videorenderer,
const QString &  osdrenderer,
bool  osdfade,
const QString &  deint0,
const QString &  deint1,
const QString &  filters 
)
static

Definition at line 1129 of file videodisplayprofile.cpp.

Referenced by CreateProfiles().

◆ CreateProfile() [2/2]

void VideoDisplayProfile::CreateProfile ( uint  groupid,
uint  priority,
const QString &  width,
const QString &  height,
const QString &  codecs,
const QString &  decoder,
uint  max_cpus,
bool  skiploop,
const QString &  videorenderer,
const QString &  osdrenderer,
bool  osdfade,
const QString &  deint0,
const QString &  deint1,
const QString &  filters 
)
static

Definition at line 1165 of file videodisplayprofile.cpp.

◆ DeleteProfiles()

void VideoDisplayProfile::DeleteProfiles ( const QString &  hostname)
static

Definition at line 1097 of file videodisplayprofile.cpp.

◆ CreateProfiles()

void VideoDisplayProfile::CreateProfiles ( const QString &  hostname)
static

Definition at line 1320 of file videodisplayprofile.cpp.

Referenced by CurrentPlaybackProfile().

◆ GetVideoRenderers()

QStringList VideoDisplayProfile::GetVideoRenderers ( const QString &  decoder)
static

◆ GetVideoRendererHelp()

QString VideoDisplayProfile::GetVideoRendererHelp ( const QString &  renderer)
static

Definition at line 1555 of file videodisplayprofile.cpp.

Referenced by PlaybackProfileItemConfig::vrenderChanged().

◆ GetPreferredVideoRenderer()

QString VideoDisplayProfile::GetPreferredVideoRenderer ( const QString &  decoder)
static

Definition at line 1649 of file videodisplayprofile.cpp.

Referenced by PlaybackProfileItemConfig::decoderChanged().

◆ GetDeinterlacers()

QStringList VideoDisplayProfile::GetDeinterlacers ( const QString &  video_renderer)
static

◆ GetDeinterlacerName()

QString VideoDisplayProfile::GetDeinterlacerName ( const QString &  short_name)
static

◆ GetDeinterlacerHelp()

QString VideoDisplayProfile::GetDeinterlacerHelp ( const QString &  deint)
static

◆ GetOSDs()

QStringList VideoDisplayProfile::GetOSDs ( const QString &  video_renderer)
static

◆ GetOSDHelp()

QString VideoDisplayProfile::GetOSDHelp ( const QString &  osd)
static

Definition at line 1847 of file videodisplayprofile.cpp.

Referenced by PlaybackProfileItemConfig::orenderChanged().

◆ IsFilterAllowed()

bool VideoDisplayProfile::IsFilterAllowed ( const QString &  video_renderer)
static

◆ GetFilteredRenderers()

QStringList VideoDisplayProfile::GetFilteredRenderers ( const QString &  decoder,
const QStringList &  renderers 
)
static

Definition at line 1901 of file videodisplayprofile.cpp.

Referenced by VideoOutput::Create().

◆ GetBestVideoRenderer()

QString VideoDisplayProfile::GetBestVideoRenderer ( const QStringList &  renderers)
static

Definition at line 1917 of file videodisplayprofile.cpp.

Referenced by VideoOutput::Create(), and GetPreferredVideoRenderer().

◆ LoadDB()

item_list_t VideoDisplayProfile::LoadDB ( uint  groupid)
static

◆ DeleteDB()

bool VideoDisplayProfile::DeleteDB ( uint  groupid,
const item_list_t items 
)
static

Definition at line 653 of file videodisplayprofile.cpp.

Referenced by PlaybackProfileConfig::Save().

◆ SaveDB()

bool VideoDisplayProfile::SaveDB ( uint  groupid,
item_list_t items 
)
static

Definition at line 680 of file videodisplayprofile.cpp.

Referenced by PlaybackProfileConfig::Save().

◆ GetActualVideoRenderer()

QString VideoDisplayProfile::GetActualVideoRenderer ( void  ) const
inline

Definition at line 182 of file videodisplayprofile.h.

Referenced by VideoOutput::GetDeinterlacers(), and GetFilteredDeint().

◆ FindMatch()

item_list_t::const_iterator VideoDisplayProfile::FindMatch ( const QSize &  size,
float  framerate,
const QString &  codecName 
)
private

Definition at line 560 of file videodisplayprofile.cpp.

◆ LoadBestPreferences()

void VideoDisplayProfile::LoadBestPreferences ( const QSize &  size,
float  framerate,
const QString &  codecName 
)
private

Definition at line 573 of file videodisplayprofile.cpp.

Referenced by SetInput(), and SetOutput().

◆ GetPreference()

QString VideoDisplayProfile::GetPreference ( const QString &  key) const
private

Definition at line 534 of file videodisplayprofile.cpp.

Referenced by toString().

◆ SetPreference()

void VideoDisplayProfile::SetPreference ( const QString &  key,
const QString &  value 
)
private

Definition at line 548 of file videodisplayprofile.cpp.

Referenced by SetVideoRenderer().

◆ init_statics()

void VideoDisplayProfile::init_statics ( void  )
staticprivate

Member Data Documentation

◆ lock

QMutex VideoDisplayProfile::lock
mutableprivate

◆ last_size

QSize VideoDisplayProfile::last_size
private

Definition at line 197 of file videodisplayprofile.h.

Referenced by SetInput(), and SetOutput().

◆ last_rate

float VideoDisplayProfile::last_rate
private

Definition at line 198 of file videodisplayprofile.h.

Referenced by SetInput(), and SetOutput().

◆ last_codecName

QString VideoDisplayProfile::last_codecName
private

Definition at line 199 of file videodisplayprofile.h.

Referenced by SetInput(), and SetOutput().

◆ last_video_renderer

QString VideoDisplayProfile::last_video_renderer
private

Definition at line 200 of file videodisplayprofile.h.

Referenced by CheckVideoRendererGroup(), and SetVideoRenderer().

◆ pref

pref_map_t VideoDisplayProfile::pref
private

Definition at line 201 of file videodisplayprofile.h.

Referenced by GetPreference(), and SetPreference().

◆ all_pref

item_list_t VideoDisplayProfile::all_pref
private

Definition at line 202 of file videodisplayprofile.h.

Referenced by VideoDisplayProfile().

◆ s_safe_lock

QMutex VideoDisplayProfile::s_safe_lock
staticprivate

◆ s_safe_initialized

bool VideoDisplayProfile::s_safe_initialized = false
staticprivate

Definition at line 205 of file videodisplayprofile.h.

Referenced by init_statics().

◆ s_safe_renderer

safe_map_t VideoDisplayProfile::s_safe_renderer
staticprivate

Definition at line 206 of file videodisplayprofile.h.

Referenced by GetVideoRenderers(), and init_statics().

◆ s_safe_renderer_group

safe_map_t VideoDisplayProfile::s_safe_renderer_group
staticprivate

Definition at line 207 of file videodisplayprofile.h.

Referenced by CheckVideoRendererGroup(), and init_statics().

◆ s_safe_deint

safe_map_t VideoDisplayProfile::s_safe_deint
staticprivate

Definition at line 208 of file videodisplayprofile.h.

Referenced by GetDeinterlacers(), and init_statics().

◆ s_safe_osd

safe_map_t VideoDisplayProfile::s_safe_osd
staticprivate

Definition at line 209 of file videodisplayprofile.h.

Referenced by GetOSDs(), and init_statics().

◆ s_safe_equiv_dec

safe_map_t VideoDisplayProfile::s_safe_equiv_dec
staticprivate

Definition at line 210 of file videodisplayprofile.h.

Referenced by init_statics(), and IsDecoderCompatible().

◆ s_safe_custom

safe_list_t VideoDisplayProfile::s_safe_custom
staticprivate

Definition at line 211 of file videodisplayprofile.h.

Referenced by init_statics(), and IsFilterAllowed().

◆ s_safe_renderer_priority

priority_map_t VideoDisplayProfile::s_safe_renderer_priority
staticprivate

Definition at line 212 of file videodisplayprofile.h.

Referenced by GetBestVideoRenderer(), and init_statics().

◆ s_dec_name

pref_map_t VideoDisplayProfile::s_dec_name
staticprivate

Definition at line 213 of file videodisplayprofile.h.

Referenced by GetDecoderName().

◆ s_safe_decoders

safe_list_t VideoDisplayProfile::s_safe_decoders
staticprivate

Definition at line 214 of file videodisplayprofile.h.

Referenced by GetDecoders(), and init_statics().


The documentation for this class was generated from the following files: