frontend/va: Add VAProfileH264High10

Acked-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Giancarlo Devich <gdevich@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22539>
This commit is contained in:
Sil Vilerino
2023-04-17 11:50:30 -04:00
committed by Marge Bot
parent 407bd51b71
commit f7bd375e39
+10 -1
View File
@@ -207,6 +207,12 @@ PipeToProfile(enum pipe_video_profile profile)
return VAProfileH264Main;
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH:
return VAProfileH264High;
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
#if VA_CHECK_VERSION(1, 18, 0)
return VAProfileH264High10;
#else
return VAProfileNone;
#endif
case PIPE_VIDEO_PROFILE_HEVC_MAIN:
return VAProfileHEVCMain;
case PIPE_VIDEO_PROFILE_HEVC_MAIN_10:
@@ -220,7 +226,6 @@ PipeToProfile(enum pipe_video_profile profile)
case PIPE_VIDEO_PROFILE_AV1_MAIN:
return VAProfileAV1Profile0;
case PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_CONSTRAINED_BASELINE:
@@ -259,6 +264,10 @@ ProfileToPipe(VAProfile profile)
return PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN;
case VAProfileH264High:
return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH;
#if VA_CHECK_VERSION(1, 18, 0)
case VAProfileH264High10:
return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10;
#endif
case VAProfileHEVCMain:
return PIPE_VIDEO_PROFILE_HEVC_MAIN;
case VAProfileHEVCMain10: