|
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 298 of file mythvideoprofile.cpp.
|
overridedefault |
|
static |
Definition at line 939 of file mythvideoprofile.cpp.
Referenced by CreateProfiles().
|
static |
Definition at line 1013 of file mythvideoprofile.cpp.
Referenced by PlaybackSettings::CreateNewPlaybackProfileSlot(), and CreateProfiles().
|
static |
Definition at line 1084 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile().
|
signal |
Referenced by LoadBestPreferences().
|
static |
Definition at line 557 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
static |
Definition at line 1032 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
private |
Definition at line 440 of file mythvideoprofile.cpp.
Referenced by LoadBestPreferences().
|
static |
Definition at line 1280 of file mythvideoprofile.cpp.
Referenced by MythVideoOutputGPU::Create(), and GetPreferredVideoRenderer().
| QString MythVideoProfile::GetDecoder | ( | void | ) | const |
Definition at line 361 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack(), and IsDecoderCompatible().
|
static |
Definition at line 776 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 741 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::InitLabel(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 723 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::Load().
|
static |
Definition at line 716 of file mythvideoprofile.cpp.
Referenced by MythVideoProfileItem::IsValid(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 895 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile(), VideoSetupWizard::loadData(), MythVideoProfile(), and VideoSetupWizard::playVideoTest().
|
static |
Definition at line 1310 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::PlaybackProfileItemConfig().
| QString MythVideoProfile::GetDoubleRatePreferences | ( | ) | const |
Definition at line 371 of file mythvideoprofile.cpp.
Referenced by MythNVDECContext::SetDeinterlacing().
|
static |
Definition at line 1267 of file mythvideoprofile.cpp.
Referenced by MythVideoOutputGPU::Create().
| uint MythVideoProfile::GetMaxCPUs | ( | ) | const |
Definition at line 381 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack(), and MythDeinterlacer::Initialise().
| float MythVideoProfile::GetOutput | ( | ) | const |
Definition at line 356 of file mythvideoprofile.cpp.
|
private |
Definition at line 419 of file mythvideoprofile.cpp.
Referenced by GetDecoder(), GetDoubleRatePreferences(), GetMaxCPUs(), GetSingleRatePreferences(), GetUpscaler(), GetVideoRenderer(), IsSkipLoopEnabled(), LoadBestPreferences(), and toString().
|
static |
Definition at line 1262 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged().
|
static |
Definition at line 919 of file mythvideoprofile.cpp.
Referenced by CreateProfileGroup(), MythVideoProfile(), and PlaybackProfileConfig::PlaybackProfileConfig().
|
static |
Definition at line 876 of file mythvideoprofile.cpp.
Referenced by PlaybackSettings::CreateNewPlaybackProfileSlot(), CreateProfiles(), CurrentPlaybackProfile(), GetDefaultProfileName(), and VideoSetupWizard::loadData().
| QString MythVideoProfile::GetSingleRatePreferences | ( | ) | const |
Definition at line 366 of file mythvideoprofile.cpp.
Referenced by MythNVDECContext::SetDeinterlacing().
| QString MythVideoProfile::GetUpscaler | ( | ) | const |
Definition at line 376 of file mythvideoprofile.cpp.
|
static |
Definition at line 731 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::PlaybackProfileItemConfig().
| QString MythVideoProfile::GetVideoRenderer | ( | ) | const |
Definition at line 391 of file mythvideoprofile.cpp.
Referenced by SetVideoRenderer().
|
static |
Definition at line 1229 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::vrenderChanged().
|
static |
Definition at line 858 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::InitLabel().
|
static |
Definition at line 1218 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), GetFilteredRenderers(), GetPreferredVideoRenderer(), InitStatics(), and MythVideoProfileItem::IsValid().
|
static |
Definition at line 1323 of file mythvideoprofile.cpp.
Referenced by GetBestVideoRenderer(), GetDecoderNames(), GetDecoders(), GetProfiles(), GetVideoRenderers(), main(), and MythVideoProfile().
| bool MythVideoProfile::IsDecoderCompatible | ( | const QString & | Decoder | ) | const |
Definition at line 409 of file mythvideoprofile.cpp.
| bool MythVideoProfile::IsSkipLoopEnabled | ( | ) | const |
Definition at line 386 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack().
|
private |
Definition at line 449 of file mythvideoprofile.cpp.
Referenced by SetInput(), and SetOutput().
|
static |
Definition at line 502 of file mythvideoprofile.cpp.
Referenced by MythVideoProfile(), and PlaybackProfileConfig::PlaybackProfileConfig().
|
static |
Definition at line 583 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
static |
Definition at line 914 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 321 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::autoSelectVideoTrack().
| void MythVideoProfile::SetOutput | ( | float | Framerate | ) |
Definition at line 346 of file mythvideoprofile.cpp.
|
private |
Definition at line 433 of file mythvideoprofile.cpp.
Referenced by LoadBestPreferences(), and SetVideoRenderer().
| void MythVideoProfile::SetVideoRenderer | ( | const QString & | VideoRenderer | ) |
Definition at line 396 of file mythvideoprofile.cpp.
| QString MythVideoProfile::toString | ( | void | ) | const |
Definition at line 1299 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().
|
inlinestaticprivate |
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().