Skip to content

Commit

Permalink
VideoDisplayProfile: Ensure each profile group has a software fallback
Browse files Browse the repository at this point in the history
- and has sensible defaults (if it uses hardware decoders)

(cherry picked from commit 4ac3a08)
  • Loading branch information
mark-kendall committed Mar 8, 2020
1 parent 240038b commit f927c14
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions mythtv/libs/libmythtv/videodisplayprofile.cpp
Expand Up @@ -1165,8 +1165,8 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
"vaapi", 2, true, "opengl-hw",
"shader:driver:high", "shader:driver:high");
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 1, true, "opengl-yv12",
"shader:high", "shader:high");
"ffmpeg", 2, true, "opengl-yv12",
"shader:medium", "shader:medium");
}
#endif

Expand All @@ -1178,6 +1178,9 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
CreateProfile(groupid, 1, "", "", "",
"vdpau", 1, true, "opengl-hw",
"driver:medium", "driver:medium");
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl-yv12",
"shader:medium", "shader:medium");
}
#endif

Expand All @@ -1190,6 +1193,10 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
CreateProfile(groupid, 1, "", "", "",
"mediacodec-dec", 4, true, "opengl-yv12",
"shader:driver:medium", "shader:driver:medium");
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl-yv12",
"shader:medium", "shader:medium");

}
#endif

Expand All @@ -1201,6 +1208,9 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
CreateProfile(groupid, 1, "", "", "",
"nvdec", 1, true, "opengl-hw",
"shader:driver:high", "shader:driver:high");
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl-yv12",
"shader:high", "shader:high");
}
#endif

Expand All @@ -1211,6 +1221,9 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
CreateProfile(groupid, 1, "", "", "",
"vtb", 1, true, "opengl-hw",
"shader:driver:medium", "shader:driver:medium");
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl-yv12",
"shader:medium", "shader:medium");
}
#endif

Expand All @@ -1222,6 +1235,9 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
CreateProfile(groupid, 1, "", "", "",
"mmal", 1, true, "opengl-hw",
"shader:driver:medium", "shader:driver:medium");
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl-yv12",
"shader:medium", "shader:medium");
}
#endif

Expand All @@ -1230,12 +1246,12 @@ void VideoDisplayProfile::CreateProfiles(const QString &HostName)
{
(void) QObject::tr("V4L2 Codecs", "Sample: V4L2");
uint groupid = CreateProfileGroup("V4L2 Codecs", HostName);
CreateProfile(groupid, 1, "", "", "",
"v4l2-dec", 1, true, "opengl-yv12",
"shader:driver:medium", "shader:driver:medium");
CreateProfile(groupid, 2, "", "", "",
"v4l2", 1, true, "opengl-hw",
"shader:driver:medium", "shader:driver:medium");
CreateProfile(groupid, 1, "", "", "",
"ffmpeg", 2, true, "opengl-yv12",
"shader:medium", "shader:medium");
}
#endif
}
Expand Down

0 comments on commit f927c14

Please sign in to comment.