#include <videodisplayprofile.h>
Definition at line 69 of file videodisplayprofile.h.
Public Member Functions | |
| VideoDisplayProfile () | |
| ~VideoDisplayProfile () | |
| void | SetInput (const QSize &size) |
| void | SetOutput (float framerate) |
| void | SetVideoRenderer (const QString &video_renderer) |
| QString | GetDecoder (void) const |
| bool | IsDecoderCompatible (const QString &decoder) |
| uint | GetMaxCPUs (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 |
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, 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 | CreateOldProfiles (const QString &hostname) |
| static void | CreateNewProfiles (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 | GetActualVideoRenderer (void) const |
| 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_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 |
| VideoDisplayProfile::VideoDisplayProfile | ( | ) |
Definition at line 205 of file videodisplayprofile.cpp.
| VideoDisplayProfile::~VideoDisplayProfile | ( | ) |
Definition at line 236 of file videodisplayprofile.cpp.
| void VideoDisplayProfile::SetInput | ( | const QSize & | size | ) |
Definition at line 240 of file videodisplayprofile.cpp.
Referenced by VideoOutput::Create(), VideoOutputQuartz::CreateQuartzBuffers(), VideoOutputXv::GetBestSupportedCodec(), VideoOutputQuartz::GetBestSupportedCodec(), VideoOutputXv::GrabSuitableXvPort(), VideoOutput::Init(), VideoOutputXv::InitSetupBuffers(), VideoOutput::InputChanged(), AvFormatDecoder::ScanStreams(), and VideoDisplayProfile().
| void VideoDisplayProfile::SetOutput | ( | float | framerate | ) |
Definition at line 250 of file videodisplayprofile.cpp.
Referenced by VideoOutput::SetVideoFrameRate(), and VideoDisplayProfile().
| void VideoDisplayProfile::SetVideoRenderer | ( | const QString & | video_renderer | ) |
Definition at line 260 of file videodisplayprofile.cpp.
Referenced by VideoOutputQuartz::CreateQuartzBuffers(), VideoOutputNull::Init(), VideoOutputIvtv::Init(), VideoOutputDX::Init(), VideoOutputD3D::Init(), VideoOutputXv::InitSetupBuffers(), VideoOutputXv::InitVideoBuffers(), VideoOutputNull::InputChanged(), VideoOutputDX::InputChanged(), VideoOutputD3D::InputChanged(), and VideoOutputQuartz::SetDVDVDecoder().
| QString VideoDisplayProfile::GetDecoder | ( | void | ) | const [inline] |
Definition at line 80 of file videodisplayprofile.h.
Referenced by VideoOutputXv::GetBestSupportedCodec(), VideoOutputQuartz::GetBestSupportedCodec(), IsDecoderCompatible(), and AvFormatDecoder::ScanStreams().
| bool VideoDisplayProfile::IsDecoderCompatible | ( | const QString & | decoder | ) |
| uint VideoDisplayProfile::GetMaxCPUs | ( | void | ) | const [inline] |
| QString VideoDisplayProfile::GetVideoRenderer | ( | void | ) | const [inline] |
Definition at line 87 of file videodisplayprofile.h.
Referenced by VideoOutput::Create(), VideoOutputQuartz::CreateQuartzBuffers(), VideoOutputXv::InitSetupBuffers(), VideoOutputXv::InitVideoBuffers(), and SetVideoRenderer().
| QString VideoDisplayProfile::GetOSDRenderer | ( | void | ) | const [inline] |
Definition at line 90 of file videodisplayprofile.h.
Referenced by VideoOutputXv::GrabSuitableXvPort(), VideoOutputXv::InitSetupBuffers(), and SetVideoRenderer().
| bool VideoDisplayProfile::IsOSDFadeEnabled | ( | void | ) | const [inline] |
| QString VideoDisplayProfile::GetDeinterlacer | ( | void | ) | const [inline] |
Definition at line 95 of file videodisplayprofile.h.
Referenced by GetFilteredDeint(), and SetVideoRenderer().
| QString VideoDisplayProfile::GetFallbackDeinterlacer | ( | void | ) | const [inline] |
Definition at line 97 of file videodisplayprofile.h.
Referenced by VideoOutput::FallbackDeint(), and SetVideoRenderer().
| QString VideoDisplayProfile::GetFilters | ( | void | ) | const [inline] |
| QString VideoDisplayProfile::GetFilteredDeint | ( | const QString & | override | ) |
Definition at line 313 of file videodisplayprofile.cpp.
Referenced by VideoOutput::SetupDeinterlace(), and VideoOutputXv::SetupDeinterlaceOpenGL().
| QString VideoDisplayProfile::toString | ( | void | ) | const |
Definition at line 1379 of file videodisplayprofile.cpp.
Referenced by VideoOutputQuartz::CreateQuartzBuffers(), and SetVideoRenderer().
| QStringList VideoDisplayProfile::GetDecoders | ( | void | ) | [static] |
Definition at line 563 of file videodisplayprofile.cpp.
Referenced by GetDecoderNames(), ProfileItem::IsValid(), and PlaybackProfileItemConfig::load().
| QStringList VideoDisplayProfile::GetDecoderNames | ( | void | ) | [static] |
Definition at line 577 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::load().
| QString VideoDisplayProfile::GetDecoderName | ( | const QString & | decoder | ) | [static] |
Definition at line 589 of file videodisplayprofile.cpp.
Referenced by GetDecoderNames(), and PlaybackProfileItemConfig::load().
| QString VideoDisplayProfile::GetDecoderHelp | ( | QString | decoder = QString::null |
) | [static] |
Definition at line 613 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), and PlaybackProfileItemConfig::load().
| QString VideoDisplayProfile::GetDefaultProfileName | ( | const QString & | hostname | ) | [static] |
Definition at line 714 of file videodisplayprofile.cpp.
Referenced by doUpgradeTVDatabaseSchema(), PlaybackProfileConfigs::PlaybackProfileConfigs(), and VideoDisplayProfile().
| void VideoDisplayProfile::SetDefaultProfileName | ( | const QString & | profilename, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 740 of file videodisplayprofile.cpp.
Referenced by doUpgradeTVDatabaseSchema(), and PlaybackProfileConfigs::PlaybackProfileConfigs().
| uint VideoDisplayProfile::GetProfileGroupID | ( | const QString & | profilename, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 747 of file videodisplayprofile.cpp.
Referenced by CreateProfileGroup(), PlaybackProfileConfig::PlaybackProfileConfig(), and VideoDisplayProfile().
| QStringList VideoDisplayProfile::GetProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 695 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), doUpgradeTVDatabaseSchema(), GetDefaultProfileName(), and PlaybackProfileConfigs::PlaybackProfileConfigs().
| bool VideoDisplayProfile::DeleteProfileGroup | ( | const QString & | groupname, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 902 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), CreateNewProfiles(), and CreateOldProfiles().
| uint VideoDisplayProfile::CreateProfileGroup | ( | const QString & | groupname, | |
| const QString & | hostname | |||
| ) | [static] |
Definition at line 882 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::btnPress(), CreateNewProfiles(), and CreateOldProfiles().
| void VideoDisplayProfile::CreateProfile | ( | uint | grpid, | |
| uint | priority, | |||
| QString | cmp0, | |||
| uint | width0, | |||
| uint | height0, | |||
| QString | cmp1, | |||
| uint | width1, | |||
| uint | height1, | |||
| QString | decoder, | |||
| uint | max_cpus, | |||
| QString | videorenderer, | |||
| QString | osdrenderer, | |||
| bool | osdfade, | |||
| QString | deint0, | |||
| QString | deint1, | |||
| QString | filters | |||
| ) | [static] |
Definition at line 798 of file videodisplayprofile.cpp.
Referenced by CreateNewProfiles(), and CreateOldProfiles().
| void VideoDisplayProfile::DeleteProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 767 of file videodisplayprofile.cpp.
| void VideoDisplayProfile::CreateProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1057 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfigs::PlaybackProfileConfigs().
| void VideoDisplayProfile::CreateOldProfiles | ( | const QString & | hostname | ) | [static] |
| void VideoDisplayProfile::CreateNewProfiles | ( | const QString & | hostname | ) | [static] |
Definition at line 1006 of file videodisplayprofile.cpp.
Referenced by CreateProfiles(), doUpgradeTVDatabaseSchema(), and PlaybackProfileConfigs::PlaybackProfileConfigs().
| QStringList VideoDisplayProfile::GetVideoRenderers | ( | const QString & | decoder | ) | [static] |
Definition at line 1063 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged(), GetFilteredRenderers(), GetPreferredVideoRenderer(), and ProfileItem::IsValid().
| QString VideoDisplayProfile::GetVideoRendererHelp | ( | const QString & | renderer | ) | [static] |
Definition at line 1076 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetPreferredVideoRenderer | ( | const QString & | decoder | ) | [static] |
Definition at line 1162 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::decoderChanged().
| QStringList VideoDisplayProfile::GetDeinterlacers | ( | const QString & | video_renderer | ) | [static] |
Definition at line 1167 of file videodisplayprofile.cpp.
Referenced by GetFilteredDeint(), ProfileItem::IsValid(), SetVideoRenderer(), and PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetDeinterlacerName | ( | const QString | short_name | ) | [static] |
Definition at line 656 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetDeinterlacerHelp | ( | const QString & | deint | ) | [static] |
Definition at line 1181 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::deint0Changed(), and PlaybackProfileItemConfig::deint1Changed().
| QStringList VideoDisplayProfile::GetOSDs | ( | const QString & | video_renderer | ) | [static] |
Definition at line 1270 of file videodisplayprofile.cpp.
Referenced by ProfileItem::IsValid(), SetVideoRenderer(), and PlaybackProfileItemConfig::vrenderChanged().
| QString VideoDisplayProfile::GetOSDHelp | ( | const QString & | osd | ) | [static] |
Definition at line 1283 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileItemConfig::orenderChanged().
| bool VideoDisplayProfile::IsFilterAllowed | ( | const QString & | video_renderer | ) | [static] |
Definition at line 1334 of file videodisplayprofile.cpp.
Referenced by ProfileItem::IsValid(), PlaybackProfileItemConfig::save(), and PlaybackProfileItemConfig::vrenderChanged().
| QStringList VideoDisplayProfile::GetFilteredRenderers | ( | const QString & | decoder, | |
| const QStringList & | renderers | |||
| ) | [static] |
| QString VideoDisplayProfile::GetBestVideoRenderer | ( | const QStringList & | renderers | ) | [static] |
Definition at line 1357 of file videodisplayprofile.cpp.
Referenced by VideoOutput::Create(), and GetPreferredVideoRenderer().
| item_list_t VideoDisplayProfile::LoadDB | ( | uint | groupid | ) | [static] |
Definition at line 380 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfig::PlaybackProfileConfig(), and VideoDisplayProfile().
| bool VideoDisplayProfile::DeleteDB | ( | uint | groupid, | |
| const item_list_t & | items | |||
| ) | [static] |
Definition at line 423 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfig::save().
| bool VideoDisplayProfile::SaveDB | ( | uint | groupid, | |
| item_list_t & | items | |||
| ) | [static] |
Definition at line 450 of file videodisplayprofile.cpp.
Referenced by PlaybackProfileConfig::save().
| item_list_t::const_iterator VideoDisplayProfile::FindMatch | ( | const QSize & | size, | |
| float | framerate | |||
| ) | [private] |
| void VideoDisplayProfile::LoadBestPreferences | ( | const QSize & | size, | |
| float | framerate | |||
| ) | [private] |
| QString VideoDisplayProfile::GetActualVideoRenderer | ( | void | ) | const [inline, private] |
| QString VideoDisplayProfile::GetPreference | ( | const QString & | key | ) | const [private] |
| void VideoDisplayProfile::SetPreference | ( | const QString & | key, | |
| const QString & | value | |||
| ) | [private] |
| void VideoDisplayProfile::init_statics | ( | void | ) | [static, private] |
Definition at line 1444 of file videodisplayprofile.cpp.
Referenced by GetBestVideoRenderer(), GetDeinterlacers(), GetOSDs(), GetVideoRenderers(), IsFilterAllowed(), and VideoDisplayProfile().
QMutex VideoDisplayProfile::lock [mutable, private] |
Definition at line 168 of file videodisplayprofile.h.
Referenced by GetFilteredDeint(), GetPreference(), SetInput(), SetOutput(), SetPreference(), and SetVideoRenderer().
QSize VideoDisplayProfile::last_size [private] |
float VideoDisplayProfile::last_rate [private] |
QString VideoDisplayProfile::last_video_renderer [private] |
pref_map_t VideoDisplayProfile::pref [private] |
Definition at line 172 of file videodisplayprofile.h.
Referenced by GetPreference(), LoadBestPreferences(), and SetPreference().
item_list_t VideoDisplayProfile::all_pref [private] |
Definition at line 173 of file videodisplayprofile.h.
Referenced by FindMatch(), LoadBestPreferences(), and VideoDisplayProfile().
QMutex VideoDisplayProfile::safe_lock [static, private] |
Definition at line 175 of file videodisplayprofile.h.
Referenced by GetBestVideoRenderer(), GetDecoderName(), GetDeinterlacers(), GetOSDs(), GetVideoRenderers(), IsDecoderCompatible(), IsFilterAllowed(), and VideoDisplayProfile().
bool VideoDisplayProfile::safe_initialized = false [static, private] |
safe_map_t VideoDisplayProfile::safe_renderer [static, private] |
Definition at line 177 of file videodisplayprofile.h.
Referenced by GetVideoRenderers(), and init_statics().
safe_map_t VideoDisplayProfile::safe_deint [static, private] |
Definition at line 178 of file videodisplayprofile.h.
Referenced by GetDeinterlacers(), and init_statics().
safe_map_t VideoDisplayProfile::safe_osd [static, private] |
safe_map_t VideoDisplayProfile::safe_equiv_dec [static, private] |
Definition at line 180 of file videodisplayprofile.h.
Referenced by init_statics(), and IsDecoderCompatible().
safe_list_t VideoDisplayProfile::safe_custom [static, private] |
Definition at line 181 of file videodisplayprofile.h.
Referenced by init_statics(), and IsFilterAllowed().
priority_map_t VideoDisplayProfile::safe_renderer_priority [static, private] |
Definition at line 182 of file videodisplayprofile.h.
Referenced by GetBestVideoRenderer(), and init_statics().
pref_map_t VideoDisplayProfile::dec_name [static, private] |
1.5.5