Module: Mesa
Branch: main
Commit: f7bd375e3954bc96c31df43652ce1d845427501a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7bd375e3954bc96c31df43652ce1d845427501a

Author: Sil Vilerino <[email protected]>
Date:   Mon Apr 17 11:50:30 2023 -0400

frontend/va: Add VAProfileH264High10

Acked-by: Ruijing Dong <[email protected]>
Reviewed-by: Giancarlo Devich <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22539>

---

 src/gallium/frontends/va/va_private.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/gallium/frontends/va/va_private.h 
b/src/gallium/frontends/va/va_private.h
index 2126447bda4..c1fe67f39c8 100644
--- a/src/gallium/frontends/va/va_private.h
+++ b/src/gallium/frontends/va/va_private.h
@@ -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:

Reply via email to