#include <videodisplayprofile.h>
Public Member Functions | |
| VideoDisplayProfile () | |
| ~VideoDisplayProfile () | |
| void | SetInput (const QSize &size) |
| 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 (QString decoder=QString::null) |
| 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 &groupname, const QString &hostname) |
| static void | CreateProfile (uint grpid, uint priority, QString cmp0, uint width0, uint height0, QString cmp1, uint width1, uint height1, QString decoder, uint max_cpus, bool skiploop, QString videorenderer, QString osdrenderer, bool osdfade, QString deint0, QString deint1, QString filters) |
| static void | DeleteProfiles (const QString &hostname) |
| static void | CreateProfiles (const QString &hostname) |
| static void | CreateNewProfiles (const QString &hostname) |
| static void | CreateVDPAUProfiles (const QString &hostname) |
| static void | CreateVDAProfiles (const QString &hostname) |
| static void | CreateOpenGLProfiles (const QString &hostname) |
| static void | CreateVAAPIProfiles (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) |
| void | LoadBestPreferences (const QSize &size, float framerate) |
| 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_video_renderer |
| pref_map_t | pref |
| item_list_t | all_pref |
Static Private Attributes | |
| static QMutex | safe_lock |
| static bool | safe_initialized = false |
| static safe_map_t | safe_renderer |
| static safe_map_t | safe_renderer_group |
| static safe_map_t | safe_deint |
| static safe_map_t | safe_osd |
| static safe_map_t | safe_equiv_dec |
| static safe_list_t | safe_custom |
| static priority_map_t | safe_renderer_priority |
| static pref_map_t | dec_name |
| static safe_list_t | safe_decoders |
Definition at line 81 of file videodisplayprofile.h.
| VideoDisplayProfile::VideoDisplayProfile | ( | ) |
Definition at line 214 of file videodisplayprofile.cpp.
| VideoDisplayProfile::~VideoDisplayProfile | ( | ) |
Definition at line 245 of file videodisplayprofile.cpp.
| void VideoDisplayProfile::SetInput | ( | const QSize & | size | ) |
Definition at line 249 of file videodisplayprofile.cpp.
Referenced by VideoOutput::Create(), VideoOutputQuartz::CreateQuartzBuffers(), VideoOutputQuartz::GetBestSupportedCodec(), VideoOutputXv::GrabSuitableXvPort(), VideoOutput::Init(), VideoOutputXv::InitSetupBuffers(), VideoOutput::InputChanged(), VideoOutput::IsPreferredRenderer(), AvFormatDecoder::ScanStreams(), and VideoDisplayProfile().
| void VideoDisplayProfile::SetOutput | ( | float | framerate | ) |
Definition at line 259 of file videodisplayprofile.cpp.
Referenced by VideoOutput::SetVideoFrameRate(), and VideoDisplayProfile().
| float VideoDisplayProfile::GetOutput | ( | void | ) | const [inline] |
Definition at line 89 of file videodisplayprofile.h.
Referenced by VideoOutput::ResizeForVideo().
| void VideoDisplayProfile::SetVideoRenderer | ( | const QString & | video_renderer | ) |
Definition at line 269 of file videodisplayprofile.cpp.
Referenced by VideoOutputQuartz::CreateQuartzBuffers(), VideoOutputVDPAU::Init(), VideoOutputNullVDPAU::Init(), VideoOutputNullVAAPI::Init(), VideoOutputNull::Init(), VideoOutputXv::InitSetupBuffers(), VideoOutputXv::InitVideoBuffers(), VideoOutputNull::InputChanged(), VideoOutputOpenGLVAAPI::SetProfile(), VideoOutputOpenGL::SetProfile(), and VideoOutputD3D::SetProfile().
| bool VideoDisplayProfile::CheckVideoRendererGroup | ( | const QString | renderer | ) |
Definition at line 314 of file videodisplayprofile.cpp.
Referenced by VideoOutput::IsPreferredRenderer().
| QString VideoDisplayProfile::GetDecoder | ( | void | ) | const [inline] |
Definition at line 94 of file videodisplayprofile.h.
Referenced by VideoOutputQuartz::GetBestSupportedCodec(), IsDecoderCompatible(), and AvFormatDecoder::ScanStreams().
| bool VideoDisplayProfile::IsDecoderCompatible | ( | const QString & | decoder | ) |
Definition at line 332 of file videodisplayprofile.cpp.
Referenced by VideoOutput::Create().
| uint VideoDisplayProfile::GetMaxCPUs | ( | void | ) | const [inline] |
Definition at line 98 of file videodisplayprofile.h.
Referenced by AvFormatDecoder::ScanStreams(), and VideoOutput::SetupDeinterlace().
| bool VideoDisplayProfile::IsSkipLoopEnabled | ( | void | ) | const [inline] |
Definition at line 101 of file videodisplayprofile.h.
Referenced by AvFormatDecoder::ScanStreams().
| QString VideoDisplayProfile::GetVideoRenderer | ( | void | ) | const [inline] |
Definition at line 104 of file videodisplayprofile.h.
Referenced by VideoOutput::Create(), VideoOutputQuartz::CreateQuartzBuffers(), VideoOutputXv::InitSetupBuffers(), VideoOutput::IsPreferredRenderer(), and SetVideoRenderer().
| QString VideoDisplayProfile::GetOSDRenderer | ( | void | ) | const [inline] |
Definition at line 107 of file videodisplayprofile.h.
Referenced by VideoOutput::GetOSDRenderer(), VideoOutputXv::GrabSuitableXvPort(), VideoOutputXv::InitOSD(), and SetVideoRenderer().
| bool VideoDisplayProfile::IsOSDFadeEnabled | ( | void | ) | const [inline] |
Definition at line 109 of file videodisplayprofile.h.
Referenced by VideoOutput::InitOSD().
| QString VideoDisplayProfile::GetDeinterlacer | ( | void | ) | const [inline] |
Definition at line 112 of file videodisplayprofile.h.
Referenced by GetFilteredDeint(), and SetVideoRenderer().
| QString VideoDisplayProfile::GetFallbackDeinterlacer | ( | void | ) | const [inline] |
Definition at line 114 of file videodisplayprofile.h.
Referenced by VideoOutput::FallbackDeint(), and SetVideoRenderer().
| QString VideoDisplayProfile::GetFilters | ( | void | ) | const [inline] |
Definition at line 117 of file videodisplayprofile.h.
Referenced by VideoOutput::GetFilters().
| QString VideoDisplayProfile::GetFilteredDeint | ( | const QString & | override | ) |
Definition at line 342 of file videodisplayprofile.cpp.
Referenced by VideoOutput::SetupDeinterlace(), VideoOutputVDPAU::SetupDeinterlace(), and VideoOutputOpenGL::SetupDeinterlace().
| QString VideoDisplayProfile::toString | ( | void | ) | const |
Definition at line 1511 of file videodisplayprofile.cpp.
Referenced by VideoOutputQuartz::CreateQuartzBuffers(), and SetVideoRenderer().
| QStringList VideoDisplayProfile::GetDecoders | ( | void | ) | [static] |
Definition at line 614 of file videodisplayprofile.cpp.
Referenced by GetDecoderNames(), init_statics(), ProfileItem::IsValid(), and PlaybackProfileItemConfig::Load().
| QStringList VideoDisplayProfile::GetDecoderNames | ( | void | ) | [static] |
Definition at line 620 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::Load().
| QString VideoDisplayProfile::GetDecoderName | ( | const QString & | decoder | ) | [static] |
Definition at line 633 of file videodisplayprofile.cpp.
Referenced by GetDecoderNames(), and PlaybackProfileItemConfig::Load().
| QString VideoDisplayProfile::GetDecoderHelp | ( | QString | decoder = QString::null |
) | [static] |
Definition at line 659 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::Load().
| QString VideoDisplayProfile::GetDefaultProfileName | ( | const QString & | hostname | ) | [static] |
Definition at line 779 of file videodisplayprofile.cpp.
Referenced by VideoSetupWizard::loadData(), PlaybackProfileConfigs::PlaybackProfileConfigs(), VideoSetupWizard::playVideoTest(), and VideoDisplayProfile().
| void VideoDisplayProfile::SetDefaultProfileName | ( | const QString & | profilename, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 805 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::PlaybackProfileConfigs(), VideoSetupWizard::playVideoTest(), and VideoSetupWizard::save().
| uint VideoDisplayProfile::GetProfileGroupID | ( | const QString & | profilename, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 812 of file videodisplayprofile.cpp.
Referenced by CreateProfileGroup(), PlaybackProfileConfig::PlaybackProfileConfig(), and VideoDisplayProfile().
| QStringList VideoDisplayProfile::GetProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 759 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), GetDefaultProfileName(), VideoSetupWizard::loadData(), and PlaybackProfileConfigs::PlaybackProfileConfigs().
| bool VideoDisplayProfile::DeleteProfileGroup | ( | const QString & | groupname, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 970 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), CreateNewProfiles(), CreateOpenGLProfiles(), CreateVAAPIProfiles(), CreateVDAProfiles(), and CreateVDPAUProfiles().
| uint VideoDisplayProfile::CreateProfileGroup | ( | const QString & | groupname, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 950 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), CreateNewProfiles(), CreateOpenGLProfiles(), CreateVAAPIProfiles(), CreateVDAProfiles(), and CreateVDPAUProfiles().
| void VideoDisplayProfile::CreateProfile | ( | uint | grpid, | |
| uint | priority, | |||
| QString | cmp0, | |||
| uint | width0, | |||
| uint | height0, | |||
| QString | cmp1, | |||
| uint | width1, | |||
| uint | height1, | |||
| QString | decoder, | |||
| uint | max_cpus, | |||
| bool | skiploop, | |||
| QString | videorenderer, | |||
| QString | osdrenderer, | |||
| bool | osdfade, | |||
| QString | deint0, | |||
| QString | deint1, | |||
| QString | filters | |||
| ) | [static] |
Definition at line 863 of file videodisplayprofile.cpp.
Referenced by CreateNewProfiles(), CreateOpenGLProfiles(), CreateVAAPIProfiles(), CreateVDAProfiles(), and CreateVDPAUProfiles().
| void VideoDisplayProfile::DeleteProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 832 of file videodisplayprofile.cpp.
| void VideoDisplayProfile::CreateProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1186 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::PlaybackProfileConfigs().
| void VideoDisplayProfile::CreateNewProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1023 of file videodisplayprofile.cpp.
Referenced by CreateProfiles(), and PlaybackProfileConfigs::PlaybackProfileConfigs().
| void VideoDisplayProfile::CreateVDPAUProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1074 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::PlaybackProfileConfigs().
| void VideoDisplayProfile::CreateVDAProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1105 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::PlaybackProfileConfigs().
| void VideoDisplayProfile::CreateOpenGLProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1144 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::PlaybackProfileConfigs().
| void VideoDisplayProfile::CreateVAAPIProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1171 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::PlaybackProfileConfigs().
| QStringList VideoDisplayProfile::GetVideoRenderers | ( | const QString & | decoder | ) | [static] |
Definition at line 1191 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), GetFilteredRenderers(), GetPreferredVideoRenderer(), init_statics(), and ProfileItem::IsValid().
| QString VideoDisplayProfile::GetVideoRendererHelp | ( | const QString & | renderer | ) | [static] |
Definition at line 1205 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetPreferredVideoRenderer | ( | const QString & | decoder | ) | [static] |
Definition at line 1280 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged().
| QStringList VideoDisplayProfile::GetDeinterlacers | ( | const QString & | video_renderer | ) | [static] |
Definition at line 1285 of file videodisplayprofile.cpp.
Referenced by VideoOutput::GetDeinterlacers(), GetFilteredDeint(), ProfileItem::IsValid(), SetVideoRenderer(), and PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetDeinterlacerName | ( | const QString | short_name | ) | [static] |
Definition at line 701 of file videodisplayprofile.cpp.
Referenced by TV::FillOSDMenuVideo(), and PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetDeinterlacerHelp | ( | const QString & | deint | ) | [static] |
Definition at line 1300 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::deint0Changed(), and PlaybackProfileItemConfig::deint1Changed().
| QStringList VideoDisplayProfile::GetOSDs | ( | const QString & | video_renderer | ) | [static] |
Definition at line 1416 of file videodisplayprofile.cpp.
Referenced by ProfileItem::IsValid(), SetVideoRenderer(), and PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetOSDHelp | ( | const QString & | osd | ) | [static] |
Definition at line 1430 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::orenderChanged().
| bool VideoDisplayProfile::IsFilterAllowed | ( | const QString & | video_renderer | ) | [static] |
Definition at line 1463 of file videodisplayprofile.cpp.
Referenced by ProfileItem::IsValid(), PlaybackProfileItemConfig::Save(), and PlaybackProfileItemConfig::vrenderChanged().
| QStringList VideoDisplayProfile::GetFilteredRenderers | ( | const QString & | decoder, | |
| const QStringList & | renderers | |||
| ) | [static] |
Definition at line 1470 of file videodisplayprofile.cpp.
Referenced by VideoOutput::Create().
| QString VideoDisplayProfile::GetBestVideoRenderer | ( | const QStringList & | renderers | ) | [static] |
Definition at line 1486 of file videodisplayprofile.cpp.
Referenced by VideoOutput::Create(), and GetPreferredVideoRenderer().
| item_list_t VideoDisplayProfile::LoadDB | ( | uint | groupid | ) | [static] |
Definition at line 417 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfig::PlaybackProfileConfig(), and VideoDisplayProfile().
| bool VideoDisplayProfile::DeleteDB | ( | uint | groupid, | |
| const item_list_t & | items | |||
| ) | [static] |
Definition at line 474 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
| bool VideoDisplayProfile::SaveDB | ( | uint | groupid, | |
| item_list_t & | items | |||
| ) | [static] |
Definition at line 501 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfig::Save().
| QString VideoDisplayProfile::GetActualVideoRenderer | ( | void | ) | const [inline] |
Definition at line 175 of file videodisplayprofile.h.
Referenced by VideoOutput::GetDeinterlacers(), and GetFilteredDeint().
| item_list_t::const_iterator VideoDisplayProfile::FindMatch | ( | const QSize & | size, | |
| float | framerate | |||
| ) | [private] |
Definition at line 389 of file videodisplayprofile.cpp.
Referenced by LoadBestPreferences().
| void VideoDisplayProfile::LoadBestPreferences | ( | const QSize & | size, | |
| float | framerate | |||
| ) | [private] |
Definition at line 402 of file videodisplayprofile.cpp.
Referenced by SetInput(), and SetOutput().
| QString VideoDisplayProfile::GetPreference | ( | const QString & | key | ) | const [private] |
Definition at line 360 of file videodisplayprofile.cpp.
Referenced by toString().
| void VideoDisplayProfile::SetPreference | ( | const QString & | key, | |
| const QString & | value | |||
| ) | [private] |
Definition at line 376 of file videodisplayprofile.cpp.
Referenced by SetVideoRenderer().
| void VideoDisplayProfile::init_statics | ( | void | ) | [static, private] |
Definition at line 1522 of file videodisplayprofile.cpp.
Referenced by GetBestVideoRenderer(), GetDecoderNames(), GetDecoders(), GetDeinterlacers(), GetOSDs(), GetProfiles(), GetVideoRenderers(), IsFilterAllowed(), and VideoDisplayProfile().
QMutex VideoDisplayProfile::lock [mutable, private] |
Definition at line 188 of file videodisplayprofile.h.
Referenced by GetFilteredDeint(), GetPreference(), SetInput(), SetOutput(), SetPreference(), and SetVideoRenderer().
QSize VideoDisplayProfile::last_size [private] |
Definition at line 189 of file videodisplayprofile.h.
Referenced by SetInput(), and SetOutput().
float VideoDisplayProfile::last_rate [private] |
Definition at line 190 of file videodisplayprofile.h.
Referenced by SetInput(), and SetOutput().
QString VideoDisplayProfile::last_video_renderer [private] |
Definition at line 191 of file videodisplayprofile.h.
Referenced by CheckVideoRendererGroup(), and SetVideoRenderer().
pref_map_t VideoDisplayProfile::pref [private] |
Definition at line 192 of file videodisplayprofile.h.
Referenced by GetPreference(), LoadBestPreferences(), and SetPreference().
item_list_t VideoDisplayProfile::all_pref [private] |
Definition at line 193 of file videodisplayprofile.h.
Referenced by FindMatch(), LoadBestPreferences(), and VideoDisplayProfile().
QMutex VideoDisplayProfile::safe_lock [static, private] |
Definition at line 195 of file videodisplayprofile.h.
Referenced by GetBestVideoRenderer(), GetDecoderName(), GetDeinterlacers(), GetOSDs(), GetVideoRenderers(), IsDecoderCompatible(), IsFilterAllowed(), and VideoDisplayProfile().
bool VideoDisplayProfile::safe_initialized = false [static, private] |
Definition at line 196 of file videodisplayprofile.h.
Referenced by init_statics().
safe_map_t VideoDisplayProfile::safe_renderer [static, private] |
Definition at line 197 of file videodisplayprofile.h.
Referenced by GetVideoRenderers(), and init_statics().
safe_map_t VideoDisplayProfile::safe_renderer_group [static, private] |
Definition at line 198 of file videodisplayprofile.h.
Referenced by CheckVideoRendererGroup(), and init_statics().
safe_map_t VideoDisplayProfile::safe_deint [static, private] |
Definition at line 199 of file videodisplayprofile.h.
Referenced by GetDeinterlacers(), and init_statics().
safe_map_t VideoDisplayProfile::safe_osd [static, private] |
Definition at line 200 of file videodisplayprofile.h.
Referenced by GetOSDs(), and init_statics().
safe_map_t VideoDisplayProfile::safe_equiv_dec [static, private] |
Definition at line 201 of file videodisplayprofile.h.
Referenced by init_statics(), and IsDecoderCompatible().
safe_list_t VideoDisplayProfile::safe_custom [static, private] |
Definition at line 202 of file videodisplayprofile.h.
Referenced by init_statics(), and IsFilterAllowed().
priority_map_t VideoDisplayProfile::safe_renderer_priority [static, private] |
Definition at line 203 of file videodisplayprofile.h.
Referenced by GetBestVideoRenderer(), and init_statics().
pref_map_t VideoDisplayProfile::dec_name [static, private] |
Definition at line 204 of file videodisplayprofile.h.
Referenced by GetDecoderName().
safe_list_t VideoDisplayProfile::safe_decoders [static, private] |
Definition at line 205 of file videodisplayprofile.h.
Referenced by GetDecoders(), and init_statics().
1.6.3