|
MythTV master
|
#include <libmythtv/mythvideoprofile.h>
Signals | |
| void | DeinterlacersChanged (const QString &Single, const QString &Double) |
| void | UpscalerChanged (const QString &Upscaler) |
Public Member Functions | |
| MythVideoProfile () | |
| ~MythVideoProfile () override=default | |
| void | SetInput (QSize Size, float Framerate=0, const QString &CodecName=QString(), const QStringList &DisallowedDecoders=QStringList()) |
| void | SetOutput (float Framerate) |
| float | GetOutput () const |
| void | SetVideoRenderer (const QString &VideoRenderer) |
| QString | GetDecoder () const |
| bool | IsDecoderCompatible (const QString &Decoder) const |
| uint | GetMaxCPUs () const |
| bool | IsSkipLoopEnabled () const |
| QString | GetVideoRenderer () const |
| QString | toString () const |
| QString | GetSingleRatePreferences () const |
| QString | GetDoubleRatePreferences () const |
| QString | GetUpscaler () const |
Static Public Member Functions | |
| static void | InitStatics (bool Reinit=false) |
| static const QList< QPair< QString, QString > > & | GetDeinterlacers () |
| static QStringList | GetDecoders () |
| static QStringList | GetDecoderNames () |
| static std::vector< std::pair< QString, QString > > | GetUpscalers () |
| static QString | GetDecoderName (const QString &Decoder) |
| static QString | GetDecoderHelp (const QString &Decoder=QString()) |
| static QString | GetVideoRendererName (const QString &Renderer) |
| 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 &Width, const QString &Height, const QString &Codecs, const QString &Decoder, uint MaxCpus, bool SkipLoop, const QString &VideoRenderer, const QString &Deint1, const QString &Deint2, const QString &Upscale=UPSCALE_DEFAULT) |
| 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 | GetFilteredRenderers (const QString &Decoder, const QStringList &Renderers) |
| static QString | GetBestVideoRenderer (const QStringList &Renderers) |
| static std::vector< MythVideoProfileItem > | LoadDB (uint GroupId) |
| static bool | DeleteDB (uint GroupId, const std::vector< MythVideoProfileItem > &Items) |
| static bool | SaveDB (uint GroupId, std::vector< MythVideoProfileItem > &Items) |
Private Member Functions | |
| std::vector< MythVideoProfileItem >::const_iterator | FindMatch (QSize Size, float Framerate, const QString &CodecName, const QStringList &DisallowedDecoders=QStringList()) |
| void | LoadBestPreferences (QSize Size, float Framerate, const QString &CodecName, const QStringList &DisallowedDecoders=QStringList()) |
| QString | GetPreference (const QString &Key) const |
| void | SetPreference (const QString &Key, const QString &Value) |
Private Attributes | |
| QRecursiveMutex | m_lock |
| QSize | m_lastSize { 0, 0 } |
| float | m_lastRate { 0.0F } |
| QString | m_lastCodecName |
| QMap< QString, QString > | m_currentPreferences |
| std::vector< MythVideoProfileItem > | m_allowedPreferences |
Static Private Attributes | |
| static QRecursiveMutex | kSafeLock |
| static bool | kSafeInitialized = false |
| static QMap< QString, QStringList > | kSafeRenderer = {} |
| static QMap< QString, QStringList > | kSafeRendererGroup = {} |
| static QMap< QString, QStringList > | kSafeEquivDec = {} |
| static QStringList | kSafeCustom = {} |
| static QMap< QString, uint > | kSafeRendererPriority = {} |
| static QMap< QString, QString > | kDecName = {} |
| static QMap< QString, QString > | kRendName = {} |
| static QStringList | kSafeDecoders = {} |
Definition at line 83 of file mythvideoprofile.h.
| MythVideoProfile::MythVideoProfile | ( | ) |
Definition at line 297 of file mythvideoprofile.cpp.
|
overridedefault |
|
static |
Definition at line 938 of file mythvideoprofile.cpp.
Referenced by CreateProfiles().
|
static |
Definition at line 1012 of file mythvideoprofile.cpp.
Referenced by PlaybackSettings::CreateNewPlaybackProfileSlot(), and CreateProfiles().
|
static |
Definition at line 1083 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile().
|
signal |
Referenced by LoadBestPreferences().
|
static |
Definition at line 556 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
static |
Definition at line 1031 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
private |
Definition at line 439 of file mythvideoprofile.cpp.
Referenced by LoadBestPreferences().
|
static |
Definition at line 1279 of file mythvideoprofile.cpp.
Referenced by MythVideoOutputGPU::Create(), and GetPreferredVideoRenderer().
| QString MythVideoProfile::GetDecoder | ( | void | ) | const |
Definition at line 360 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack(), and IsDecoderCompatible().
|
static |
Definition at line 775 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 740 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::InitLabel(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 722 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::Load().
|
static |
Definition at line 715 of file mythvideoprofile.cpp.
Referenced by MythVideoProfileItem::IsValid(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 894 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile(), VideoSetupWizard::loadData(), MythVideoProfile(), and VideoSetupWizard::playVideoTest().
|
static |
Definition at line 1309 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::PlaybackProfileItemConfig().
| QString MythVideoProfile::GetDoubleRatePreferences | ( | ) | const |
Definition at line 370 of file mythvideoprofile.cpp.
Referenced by MythNVDECContext::SetDeinterlacing().
|
static |
Definition at line 1266 of file mythvideoprofile.cpp.
Referenced by MythVideoOutputGPU::Create().
| uint MythVideoProfile::GetMaxCPUs | ( | ) | const |
Definition at line 380 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack(), and MythDeinterlacer::Initialise().
| float MythVideoProfile::GetOutput | ( | ) | const |
Definition at line 355 of file mythvideoprofile.cpp.
|
private |
Definition at line 418 of file mythvideoprofile.cpp.
Referenced by GetDecoder(), GetDoubleRatePreferences(), GetMaxCPUs(), GetSingleRatePreferences(), GetUpscaler(), GetVideoRenderer(), IsSkipLoopEnabled(), LoadBestPreferences(), and toString().
|
static |
Definition at line 1261 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged().
|
static |
Definition at line 918 of file mythvideoprofile.cpp.
Referenced by CreateProfileGroup(), MythVideoProfile(), and PlaybackProfileConfig::PlaybackProfileConfig().
|
static |
Definition at line 875 of file mythvideoprofile.cpp.
Referenced by PlaybackSettings::CreateNewPlaybackProfileSlot(), CreateProfiles(), CurrentPlaybackProfile(), GetDefaultProfileName(), and VideoSetupWizard::loadData().
| QString MythVideoProfile::GetSingleRatePreferences | ( | ) | const |
Definition at line 365 of file mythvideoprofile.cpp.
Referenced by MythNVDECContext::SetDeinterlacing().
| QString MythVideoProfile::GetUpscaler | ( | ) | const |
Definition at line 375 of file mythvideoprofile.cpp.
|
static |
Definition at line 730 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::PlaybackProfileItemConfig().
| QString MythVideoProfile::GetVideoRenderer | ( | ) | const |
Definition at line 390 of file mythvideoprofile.cpp.
Referenced by SetVideoRenderer().
|
static |
Definition at line 1228 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::vrenderChanged().
|
static |
Definition at line 857 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::InitLabel().
|
static |
Definition at line 1217 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), GetFilteredRenderers(), GetPreferredVideoRenderer(), InitStatics(), and MythVideoProfileItem::IsValid().
Definition at line 1322 of file mythvideoprofile.cpp.
Referenced by GetBestVideoRenderer(), GetDecoderNames(), GetDecoders(), GetProfiles(), GetVideoRenderers(), main(), and MythVideoProfile().
| bool MythVideoProfile::IsDecoderCompatible | ( | const QString & | Decoder | ) | const |
Definition at line 408 of file mythvideoprofile.cpp.
| bool MythVideoProfile::IsSkipLoopEnabled | ( | ) | const |
Definition at line 385 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack().
|
private |
Definition at line 448 of file mythvideoprofile.cpp.
Referenced by SetInput(), and SetOutput().
|
static |
Definition at line 501 of file mythvideoprofile.cpp.
Referenced by MythVideoProfile(), and PlaybackProfileConfig::PlaybackProfileConfig().
|
static |
Definition at line 582 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
static |
Definition at line 913 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile(), VideoSetupWizard::playVideoTest(), and VideoSetupWizard::save().
| void MythVideoProfile::SetInput | ( | QSize | Size, |
| float | Framerate = 0, |
||
| const QString & | CodecName = QString(), |
||
| const QStringList & | DisallowedDecoders = QStringList() |
||
| ) |
Definition at line 320 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack().
| void MythVideoProfile::SetOutput | ( | float | Framerate | ) |
Definition at line 345 of file mythvideoprofile.cpp.
|
private |
Definition at line 432 of file mythvideoprofile.cpp.
Referenced by LoadBestPreferences(), and SetVideoRenderer().
| void MythVideoProfile::SetVideoRenderer | ( | const QString & | VideoRenderer | ) |
Definition at line 395 of file mythvideoprofile.cpp.
| QString MythVideoProfile::toString | ( | void | ) | const |
Definition at line 1298 of file mythvideoprofile.cpp.
Referenced by SetVideoRenderer().
|
signal |
Referenced by LoadBestPreferences(), and MythVideoGPU::MythVideoGPU().
|
inlinestaticprivate |
Definition at line 165 of file mythvideoprofile.h.
Referenced by GetDecoderName().
|
inlinestaticprivate |
Definition at line 166 of file mythvideoprofile.h.
Referenced by GetVideoRendererName().
|
inlinestaticprivate |
Definition at line 163 of file mythvideoprofile.h.
Referenced by InitStatics().
|
inlinestaticprivate |
Definition at line 167 of file mythvideoprofile.h.
Referenced by GetDecoderNames(), GetDecoders(), and InitStatics().
|
inlinestaticprivate |
Definition at line 162 of file mythvideoprofile.h.
Referenced by InitStatics(), and IsDecoderCompatible().
Definition at line 159 of file mythvideoprofile.h.
Referenced by InitStatics().
|
inlinestaticprivate |
Definition at line 158 of file mythvideoprofile.h.
Referenced by GetBestVideoRenderer(), GetDecoderName(), GetDecoderNames(), GetDecoders(), GetVideoRendererName(), GetVideoRenderers(), InitStatics(), IsDecoderCompatible(), and MythVideoProfile().
|
inlinestaticprivate |
Definition at line 160 of file mythvideoprofile.h.
Referenced by GetVideoRenderers(), and InitStatics().
|
inlinestaticprivate |
Definition at line 161 of file mythvideoprofile.h.
Referenced by InitStatics().
|
inlinestaticprivate |
Definition at line 164 of file mythvideoprofile.h.
Referenced by GetBestVideoRenderer(), and InitStatics().
|
private |
Definition at line 156 of file mythvideoprofile.h.
Referenced by FindMatch(), LoadBestPreferences(), and MythVideoProfile().
|
private |
Definition at line 155 of file mythvideoprofile.h.
Referenced by GetPreference(), LoadBestPreferences(), and SetPreference().
|
private |
Definition at line 154 of file mythvideoprofile.h.
Referenced by SetInput(), and SetOutput().
|
private |
Definition at line 153 of file mythvideoprofile.h.
Referenced by GetOutput(), SetInput(), and SetOutput().
|
private |
Definition at line 152 of file mythvideoprofile.h.
Referenced by SetInput(), and SetOutput().
|
mutableprivate |
Definition at line 151 of file mythvideoprofile.h.
Referenced by GetPreference(), SetInput(), SetOutput(), SetPreference(), and SetVideoRenderer().