mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
vaapih264dec: add constrained and progressive profiles
Those profiles have been added in the version 2012-01 and 2011-06 of the AVC spec (A.2.4.1 and A.2.4.2). Both are supported by VAProfileH264High https://bugzilla.gnome.org/show_bug.cgi?id=795624
This commit is contained in:
parent
59579a9cb3
commit
2d95089a8d
1 changed files with 7 additions and 0 deletions
|
@ -1271,6 +1271,13 @@ gst_vaapidecode_ensure_allowed_sinkpad_caps (GstVaapiDecode * decode)
|
|||
have_high |= profile == GST_VAAPI_PROFILE_H264_HIGH;
|
||||
}
|
||||
|
||||
if (have_high) {
|
||||
allowed_sinkpad_caps =
|
||||
add_h264_profile_in_caps (allowed_sinkpad_caps, "progressive-high");
|
||||
allowed_sinkpad_caps =
|
||||
add_h264_profile_in_caps (allowed_sinkpad_caps, "constrained-high");
|
||||
}
|
||||
|
||||
if (base_only && (!have_mvc || !have_svc) && have_high) {
|
||||
if (!have_mvc) {
|
||||
GST_DEBUG ("base_only: force adding MVC profiles in caps");
|
||||
|
|
Loading…
Reference in a new issue