Skip to content

Commit

Permalink
VideoDisplayProfile: Convert the profile group creation to new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Sep 30, 2019
1 parent 3512c2e commit 420e69e
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions mythtv/libs/libmythtv/videodisplayprofile.cpp
Expand Up @@ -1134,23 +1134,23 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
groupid = CreateProfileGroup("OpenGL High Quality", HostName);
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl",
"greedyhdoubleprocessdeint", "greedyhdeint", "");
"shader:high", "shader:high", "");
}

if (!profiles.contains("OpenGL Normal")) {
(void) QObject::tr("OpenGL Normal", "Sample: OpenGL average quality");
(void) QObject::tr("OpenGL Normal", "Sample: OpenGL medium quality");
groupid = CreateProfileGroup("OpenGL Normal", HostName);
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl",
"opengldoubleratekerneldeint", "openglkerneldeint", "");
"shader:medium", "shader:medium", "");
}

if (!profiles.contains("OpenGL Slim")) {
(void) QObject::tr("OpenGL Slim", "Sample: OpenGL low power GPU");
groupid = CreateProfileGroup("OpenGL Slim", HostName);
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 1, true, "opengl",
"opengldoubleratelinearblend", "opengllinearblend", "");
"medium", "medium", "");
}
#endif

Expand All @@ -1159,11 +1159,21 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
(void) QObject::tr("VAAPI Normal", "Sample: VAAPI average quality");
groupid = CreateProfileGroup("VAAPI Normal", HostName);
CreateProfile(groupid, 1, "", "", "",
"vaapi", 2, true, "opengl",
"none", "none", "");
"vaapi", 2, true, "opengl-hw",
"shader:driver:high", "shader:driver:high", "");
CreateProfile(groupid, 2, "", "", "",
"ffmpeg", 2, true, "opengl",
"opengldoubleratekerneldeint", "openglkerneldeint", "");
"shader:high", "shader:high", "");
}
#endif

#ifdef USING_VDPAU
if (!profiles.contains("VDPAU Normal")) {
(void) QObject::tr("VDPAU Normal", "Sample: VDPAU medium quality");
groupid = CreateProfileGroup("VDPAU Normal", HostName);
CreateProfile(groupid, 1, "", "", "",
"vdpau", 2, true, "opengl-hw",
"driver:medium", "driver:medium", "");
}
#endif

Expand All @@ -1174,29 +1184,27 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
groupid = CreateProfileGroup("MediaCodec Normal", hostname);
CreateProfile(groupid, 1, "", "", "",
"mediacodec-dec", 4, true, "opengl",
"opengldoubleratelinearblend", "opengllinearblend", "");
"shader:driver:medium", "shader:driver:medium", "");
}
#endif

#if defined(USING_VAAPI) && defined(USING_OPENGL_VIDEO)
if (!profiles.contains("VAAPI2 Normal")) {
(void) QObject::tr("VAAPI2 Normal",
"Sample: VAAPI2 Normal");
groupid = CreateProfileGroup("VAAPI2 Normal", HostName);
#if defined(USING_NVDEC) && defined(USING_OPENGL_VIDEO)
if (!profiles.contains("NVDEC Normal")) {
(void) QObject::tr("NVDEC Normal", "Sample: NVDEC Normal");
groupid = CreateProfileGroup("NVDEC Normal", HostName);
CreateProfile(groupid, 1, "", "", "",
"vaapi-dec", 4, true, "opengl",
"vaapi2doubleratedefault", "vaapi2default", "");
"nvdec", 4, true, "opengl-hw",
"shader:driver:high", "shader:driver:high", "");
}
#endif

#if defined(USING_NVDEC) && defined(USING_OPENGL_VIDEO)
if (!profiles.contains("NVDEC Normal")) {
(void) QObject::tr("NVDEC Normal",
"Sample: NVDEC Normal");
groupid = CreateProfileGroup("NVDEC Normal", HostName);
#if defined(USING_VTB) && defined(USING_OPENGL_VIDEO)
if (!profiles.contains("VideoToolBox Normal")) {
(void) QObject::tr("VideoToolBox Normal", "Sample: VideoToolBox Normal");
groupid = CreateProfileGroup("VideoToolBox Normal", HostName);
CreateProfile(groupid, 1, "", "", "",
"nvdec", 4, true, "opengl",
"nvdecdoublerateadaptive", "nvdecadaptive", "");
"vtb", 4, true, "opengl-hw",
"shader:driver:medium", "shader:driver:medium", "");
}
#endif

Expand Down

0 comments on commit 420e69e

Please sign in to comment.