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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2909>
This commit is contained in:
He Junyan 2022-08-18 13:27:02 +08:00 committed by GStreamer Marge Bot
parent 5ae3c9318d
commit 42838c3b9e

View File

@ -128,9 +128,12 @@ _is_range_extension_profile (VAProfile profile)
static gboolean static gboolean
_is_screen_content_ext_profile (VAProfile profile) _is_screen_content_ext_profile (VAProfile profile)
{ {
if (profile == VAProfileHEVCSccMain if (profile == VAProfileHEVCSccMain || profile == VAProfileHEVCSccMain10
|| profile == VAProfileHEVCSccMain10 || profile == VAProfileHEVCSccMain444
|| profile == VAProfileHEVCSccMain444) #if VA_CHECK_VERSION(1, 8, 0)
|| profile == VAProfileHEVCSccMain444_10
#endif
)
return TRUE; return TRUE;
return FALSE; return FALSE;
@ -971,8 +974,10 @@ static const struct
P (SCREEN_EXTENDED_MAIN, SccMain), P (SCREEN_EXTENDED_MAIN, SccMain),
P (SCREEN_EXTENDED_MAIN_10, SccMain10), P (SCREEN_EXTENDED_MAIN_10, SccMain10),
P (SCREEN_EXTENDED_MAIN_444, SccMain444), P (SCREEN_EXTENDED_MAIN_444, SccMain444),
/*P (SCREEN_EXTENDED_MAIN_444_10, ), #if VA_CHECK_VERSION(1, 8, 0)
P (SCREEN_EXTENDED_HIGH_THROUGHPUT_444, ), 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_10, ),
P (SCREEN_EXTENDED_HIGH_THROUGHPUT_444_14, ), P (SCREEN_EXTENDED_HIGH_THROUGHPUT_444_14, ),
P (MULTIVIEW_MAIN, ), P (MULTIVIEW_MAIN, ),