Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jyaimac:mythtv jyavenard$ cat newprofiles.diff
- diff --git a/mythtv/libs/libmythbase/mythversion.h b/mythtv/libs/libmythbase/mythversion.h
- index 1799ab8..25a4c49 100644
- --- a/mythtv/libs/libmythbase/mythversion.h
- +++ b/mythtv/libs/libmythbase/mythversion.h
- @@ -12,7 +12,7 @@
- /// Update this whenever the plug-in API changes.
- /// Including changes in the libmythbase, libmyth, libmythtv, libmythav* and
- /// libmythui class methods used by plug-ins.
- -#define MYTH_BINARY_VERSION "0.25.20120307-2"
- +#define MYTH_BINARY_VERSION "0.25.20120314-2"
- /** \brief Increment this whenever the MythTV network protocol changes.
- *
- diff --git a/mythtv/libs/libmythtv/privatedecoder_vda.h b/mythtv/libs/libmythtv/privatedecoder_vda.h
- index 4c6d291..ec16525 100644
- --- a/mythtv/libs/libmythtv/privatedecoder_vda.h
- +++ b/mythtv/libs/libmythtv/privatedecoder_vda.h
- @@ -17,7 +17,7 @@
- class VDALibrary
- {
- public:
- - static VDALibrary* GetVDALibrary(void);
- + static MTV_PUBLIC VDALibrary* GetVDALibrary(void);
- VDALibrary();
- bool IsValid(void) const { return m_valid; }
- diff --git a/mythtv/libs/libmythtv/videodisplayprofile.cpp b/mythtv/libs/libmythtv/videodisplayprofile.cpp
- index 799f3c8..4736c9e 100644
- --- a/mythtv/libs/libmythtv/videodisplayprofile.cpp
- +++ b/mythtv/libs/libmythtv/videodisplayprofile.cpp
- @@ -1094,6 +1094,74 @@ void VideoDisplayProfile::CreateVDPAUProfiles(const QString &hostname)
- "vdpauskipchroma,vdpaucolorspace=auto");
- }
- +#if defined(Q_OS_MACX)
- +void VideoDisplayProfile::CreateVDAProfiles(const QString &hostname)
- +{
- + (void) QObject::tr("VDA High Quality", "Sample: VDA high quality");
- + DeleteProfileGroup("VDA High Quality", hostname);
- + uint groupid = CreateProfileGroup("VDA High Quality", hostname);
- + CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0,
- + "vda", 2, true, "opengl", "opengl2", true,
- + "greedyhdoubleprocessdeint", "greedyhdeint",
- + "");
- + CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0,
- + "ffmpeg", 2, true, "opengl", "opengl2", true,
- + "greedyhdoubleprocessdeint", "greedyhdeint",
- + "");
- +
- + (void) QObject::tr("VDA Normal", "Sample: VDA average quality");
- + DeleteProfileGroup("VDA Normal", hostname);
- + groupid = CreateProfileGroup("VDA Normal", hostname);
- + CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0,
- + "vda", 2, true, "opengl", "opengl2", true,
- + "opengldoubleratekerneldeint", "openglkerneldeint",
- + "");
- + CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0,
- + "ffmpeg", 2, true, "opengl", "opengl2", true,
- + "opengldoubleratekerneldeint", "openglkerneldeint",
- + "");
- +
- + (void) QObject::tr("VDA Slim", "Sample: VDA low power GPU");
- + DeleteProfileGroup("VDA Slim", hostname);
- + groupid = CreateProfileGroup("VDA Slim", hostname);
- + CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0,
- + "vda", 2, true, "opengl", "opengl2", true,
- + "opengldoubleratelinearblend", "opengllinearblend",
- + "");
- + CreateProfile(groupid, 2, ">", 0, 0, "", 0, 0,
- + "ffmpeg", 2, true, "opengl", "opengl2", true,
- + "opengldoubleratelinearblend", "opengllinearblend",
- + "");
- +}
- +#endif
- +
- +void VideoDisplayProfile::CreateOpenGLProfiles(const QString &hostname)
- +{
- + (void) QObject::tr("OpenGL High Quality", "Sample: OpenGL high quality");
- + DeleteProfileGroup("OpenGL High Quality", hostname);
- + uint groupid = CreateProfileGroup("OpenGL High Quality", hostname);
- + CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0,
- + "ffmpeg", 2, true, "opengl", "opengl2", true,
- + "greedyhdoubleprocessdeint", "greedyhdeint",
- + "");
- +
- + (void) QObject::tr("OpenGL Normal", "Sample: OpenGL average quality");
- + DeleteProfileGroup("OpenGL Normal", hostname);
- + groupid = CreateProfileGroup("OpenGL Normal", hostname);
- + CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0,
- + "ffmpeg", 2, true, "opengl", "opengl2", true,
- + "opengldoubleratekerneldeint", "openglkerneldeint",
- + "");
- +
- + (void) QObject::tr("OpenGL Slim", "Sample: OpenGL low power GPU");
- + DeleteProfileGroup("OpenGL Slim", hostname);
- + groupid = CreateProfileGroup("OpenGL Slim", hostname);
- + CreateProfile(groupid, 1, ">", 0, 0, "", 0, 0,
- + "ffmpeg", 1, true, "opengl", "opengl2", true,
- + "opengldoubleratelinearblend", "opengllinearblend",
- + "");
- +}
- +
- void VideoDisplayProfile::CreateProfiles(const QString &hostname)
- {
- CreateNewProfiles(hostname);
- diff --git a/mythtv/libs/libmythtv/videodisplayprofile.h b/mythtv/libs/libmythtv/videodisplayprofile.h
- index 70d9ba0..3df92bf 100644
- --- a/mythtv/libs/libmythtv/videodisplayprofile.h
- +++ b/mythtv/libs/libmythtv/videodisplayprofile.h
- @@ -150,6 +150,10 @@ class MTV_PUBLIC VideoDisplayProfile
- static void CreateProfiles(const QString &hostname);
- static void CreateNewProfiles(const QString &hostname);
- static void CreateVDPAUProfiles(const QString &hostname);
- +#if defined(Q_OS_MACX)
- + static void CreateVDAProfiles(const QString &hostname);
- +#endif
- + static void CreateOpenGLProfiles(const QString &hostname);
- static QStringList GetVideoRenderers(const QString &decoder);
- static QString GetVideoRendererHelp(const QString &renderer);
- diff --git a/mythtv/programs/mythfrontend/globalsettings.cpp b/mythtv/programs/mythfrontend/globalsettings.cpp
- index efde374..b98a6c3 100644
- --- a/mythtv/programs/mythfrontend/globalsettings.cpp
- +++ b/mythtv/programs/mythfrontend/globalsettings.cpp
- @@ -39,6 +39,10 @@
- #include "mythdirs.h"
- #include "mythuihelper.h"
- +#if defined(Q_OS_MACX)
- +#include "privatedecoder_vda.h"
- +#endif
- +
- static HostCheckBox *DecodeExtraAudio()
- {
- HostCheckBox *gc = new HostCheckBox("DecodeExtraAudio");
- @@ -1150,6 +1154,27 @@ PlaybackProfileConfigs::PlaybackProfileConfigs(const QString &str) :
- profiles = VideoDisplayProfile::GetProfiles(host);
- }
- +#if defined(Q_OS_MACX)
- + if (VDALibrary::GetVDALibrary() != NULL)
- + {
- + if (!profiles.contains("VDA Normal") &&
- + !profiles.contains("VDA High Quality") &&
- + !profiles.contains("VDA Slim"))
- + {
- + VideoDisplayProfile::CreateVDAProfiles(host);
- + profiles = VideoDisplayProfile::GetProfiles(host);
- + }
- + }
- +#endif
- +
- + if (!profiles.contains("OpenGL Normal") &&
- + !profiles.contains("OpenGL High Quality") &&
- + !profiles.contains("OpenGL Slim"))
- + {
- + VideoDisplayProfile::CreateOpenGLProfiles(host);
- + profiles = VideoDisplayProfile::GetProfiles(host);
- + }
- +
- QString profile = VideoDisplayProfile::GetDefaultProfileName(host);
- if (!profiles.contains(profile))
- {
- jyaimac:mythtv jyavenard$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement