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:
Wang,Fei 2018-04-28 16:10:46 +08:00 committed by Víctor Manuel Jáquez Leal
parent 59579a9cb3
commit 2d95089a8d

View file

@ -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");