MythTV
master
|
#include <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 87 of file mythvideoprofile.h.
MythVideoProfile::MythVideoProfile | ( | ) |
Definition at line 287 of file mythvideoprofile.cpp.
|
overridedefault |
|
signal |
Referenced by LoadBestPreferences().
|
signal |
Referenced by LoadBestPreferences(), and MythVideoGPU::MythVideoGPU().
void MythVideoProfile::SetInput | ( | QSize | Size, |
float | Framerate = 0 , |
||
const QString & | CodecName = QString() , |
||
const QStringList & | DisallowedDecoders = QStringList() |
||
) |
Definition at line 310 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::ScanStreams().
void MythVideoProfile::SetOutput | ( | float | Framerate | ) |
Definition at line 335 of file mythvideoprofile.cpp.
float MythVideoProfile::GetOutput | ( | ) | const |
Definition at line 345 of file mythvideoprofile.cpp.
void MythVideoProfile::SetVideoRenderer | ( | const QString & | VideoRenderer | ) |
Definition at line 385 of file mythvideoprofile.cpp.
QString MythVideoProfile::GetDecoder | ( | ) | const |
Definition at line 350 of file mythvideoprofile.cpp.
Referenced by IsDecoderCompatible(), and AvFormatDecoder::ScanStreams().
bool MythVideoProfile::IsDecoderCompatible | ( | const QString & | Decoder | ) | const |
Definition at line 398 of file mythvideoprofile.cpp.
uint MythVideoProfile::GetMaxCPUs | ( | ) | const |
Definition at line 370 of file mythvideoprofile.cpp.
Referenced by MythDeinterlacer::Initialise(), and AvFormatDecoder::ScanStreams().
bool MythVideoProfile::IsSkipLoopEnabled | ( | ) | const |
Definition at line 375 of file mythvideoprofile.cpp.
Referenced by AvFormatDecoder::ScanStreams().
QString MythVideoProfile::GetVideoRenderer | ( | ) | const |
Definition at line 380 of file mythvideoprofile.cpp.
Referenced by SetVideoRenderer().
QString MythVideoProfile::toString | ( | ) | const |
Definition at line 1288 of file mythvideoprofile.cpp.
Referenced by SetVideoRenderer().
QString MythVideoProfile::GetSingleRatePreferences | ( | ) | const |
Definition at line 355 of file mythvideoprofile.cpp.
Referenced by MythNVDECContext::SetDeinterlacing().
QString MythVideoProfile::GetDoubleRatePreferences | ( | ) | const |
Definition at line 360 of file mythvideoprofile.cpp.
Referenced by MythNVDECContext::SetDeinterlacing().
QString MythVideoProfile::GetUpscaler | ( | ) | const |
Definition at line 365 of file mythvideoprofile.cpp.
Definition at line 1312 of file mythvideoprofile.cpp.
Referenced by GetBestVideoRenderer(), GetDecoderNames(), GetDecoders(), GetProfiles(), GetVideoRenderers(), main(), MythVideoProfile(), and VAAPIDevice().
|
static |
Definition at line 1299 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::PlaybackProfileItemConfig().
|
static |
Definition at line 705 of file mythvideoprofile.cpp.
Referenced by MythVideoProfileItem::IsValid(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 712 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::Load().
|
static |
Definition at line 720 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::PlaybackProfileItemConfig().
|
static |
Definition at line 730 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::InitLabel(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 765 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::Load().
|
static |
Definition at line 847 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::InitLabel().
|
static |
Definition at line 884 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile(), VideoSetupWizard::loadData(), MythVideoProfile(), and VideoSetupWizard::playVideoTest().
|
static |
Definition at line 903 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile(), VideoSetupWizard::playVideoTest(), and VideoSetupWizard::save().
|
static |
Definition at line 908 of file mythvideoprofile.cpp.
Referenced by CreateProfileGroup(), MythVideoProfile(), and PlaybackProfileConfig::PlaybackProfileConfig().
|
static |
Definition at line 865 of file mythvideoprofile.cpp.
Referenced by PlaybackSettings::CreateNewPlaybackProfileSlot(), CreateProfiles(), CurrentPlaybackProfile(), GetDefaultProfileName(), and VideoSetupWizard::loadData().
|
static |
Definition at line 1021 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
static |
Definition at line 1002 of file mythvideoprofile.cpp.
Referenced by PlaybackSettings::CreateNewPlaybackProfileSlot(), and CreateProfiles().
|
static |
Definition at line 928 of file mythvideoprofile.cpp.
Referenced by CreateProfiles().
|
static |
Definition at line 1073 of file mythvideoprofile.cpp.
Referenced by CurrentPlaybackProfile().
|
static |
Definition at line 1207 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), GetFilteredRenderers(), GetPreferredVideoRenderer(), InitStatics(), and MythVideoProfileItem::IsValid().
|
static |
Definition at line 1218 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::vrenderChanged().
|
static |
Definition at line 1251 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged().
|
static |
Definition at line 1256 of file mythvideoprofile.cpp.
Referenced by MythVideoOutputGPU::Create().
|
static |
Definition at line 1269 of file mythvideoprofile.cpp.
Referenced by MythVideoOutputGPU::Create(), and GetPreferredVideoRenderer().
|
static |
Definition at line 491 of file mythvideoprofile.cpp.
Referenced by MythVideoProfile(), and PlaybackProfileConfig::PlaybackProfileConfig().
|
static |
Definition at line 546 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
static |
Definition at line 572 of file mythvideoprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
|
private |
Definition at line 430 of file mythvideoprofile.cpp.
Referenced by LoadBestPreferences().
|
private |
Definition at line 438 of file mythvideoprofile.cpp.
Referenced by SetInput(), and SetOutput().
|
private |
Definition at line 408 of file mythvideoprofile.cpp.
Referenced by GetDecoder(), GetDoubleRatePreferences(), GetMaxCPUs(), GetSingleRatePreferences(), GetUpscaler(), GetVideoRenderer(), IsSkipLoopEnabled(), LoadBestPreferences(), and toString().
|
private |
Definition at line 422 of file mythvideoprofile.cpp.
Referenced by LoadBestPreferences(), and SetVideoRenderer().
|
mutableprivate |
Definition at line 158 of file mythvideoprofile.h.
Referenced by GetPreference(), SetInput(), SetOutput(), SetPreference(), and SetVideoRenderer().
|
private |
Definition at line 160 of file mythvideoprofile.h.
Referenced by SetInput(), and SetOutput().
|
private |
Definition at line 161 of file mythvideoprofile.h.
Referenced by GetOutput(), SetInput(), and SetOutput().
|
private |
Definition at line 162 of file mythvideoprofile.h.
Referenced by SetInput(), and SetOutput().
|
private |
Definition at line 163 of file mythvideoprofile.h.
Referenced by GetPreference(), LoadBestPreferences(), and SetPreference().
|
private |
Definition at line 164 of file mythvideoprofile.h.
Referenced by LoadBestPreferences(), and MythVideoProfile().
|
inlinestaticprivate |
Definition at line 169 of file mythvideoprofile.h.
Referenced by GetBestVideoRenderer(), GetDecoderName(), GetDecoderNames(), GetDecoders(), GetVideoRendererName(), GetVideoRenderers(), InitStatics(), IsDecoderCompatible(), and MythVideoProfile().
Definition at line 171 of file mythvideoprofile.h.
Referenced by InitStatics().
|
inlinestaticprivate |
Definition at line 172 of file mythvideoprofile.h.
Referenced by GetVideoRenderers(), and InitStatics().
|
inlinestaticprivate |
Definition at line 173 of file mythvideoprofile.h.
Referenced by InitStatics().
|
inlinestaticprivate |
Definition at line 174 of file mythvideoprofile.h.
Referenced by InitStatics(), and IsDecoderCompatible().
|
inlinestaticprivate |
Definition at line 175 of file mythvideoprofile.h.
Referenced by InitStatics().
|
inlinestaticprivate |
Definition at line 176 of file mythvideoprofile.h.
Referenced by GetBestVideoRenderer(), and InitStatics().
|
inlinestaticprivate |
Definition at line 177 of file mythvideoprofile.h.
Referenced by GetDecoderName().
|
inlinestaticprivate |
Definition at line 178 of file mythvideoprofile.h.
Referenced by GetVideoRendererName().
|
inlinestaticprivate |
Definition at line 179 of file mythvideoprofile.h.
Referenced by GetDecoderNames(), GetDecoders(), and InitStatics().