From 42838c3b9efb1c726f6cba4e25ecf8d47f88c827 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Thu, 18 Aug 2022 13:27:02 +0800 Subject: [PATCH] va: h265dec: Enable the scc_main_4:4:4_10 profile. We should enable this profile which is already allown in vaprofile.c after libva 1.8 version. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvah265dec.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c b/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c index 275a209..58d16d3 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c @@ -128,9 +128,12 @@ _is_range_extension_profile (VAProfile profile) static gboolean _is_screen_content_ext_profile (VAProfile profile) { - if (profile == VAProfileHEVCSccMain - || profile == VAProfileHEVCSccMain10 - || profile == VAProfileHEVCSccMain444) + if (profile == VAProfileHEVCSccMain || profile == VAProfileHEVCSccMain10 + || profile == VAProfileHEVCSccMain444 +#if VA_CHECK_VERSION(1, 8, 0) + || profile == VAProfileHEVCSccMain444_10 +#endif + ) return TRUE; return FALSE; @@ -971,8 +974,10 @@ static const struct P (SCREEN_EXTENDED_MAIN, SccMain), P (SCREEN_EXTENDED_MAIN_10, SccMain10), P (SCREEN_EXTENDED_MAIN_444, SccMain444), - /*P (SCREEN_EXTENDED_MAIN_444_10, ), - P (SCREEN_EXTENDED_HIGH_THROUGHPUT_444, ), +#if VA_CHECK_VERSION(1, 8, 0) + P (SCREEN_EXTENDED_MAIN_444_10, SccMain444_10), +#endif + /*P (SCREEN_EXTENDED_HIGH_THROUGHPUT_444, ), P (SCREEN_EXTENDED_HIGH_THROUGHPUT_444_10, ), P (SCREEN_EXTENDED_HIGH_THROUGHPUT_444_14, ), P (MULTIVIEW_MAIN, ), -- 2.7.4