[Mesa-dev] [PATCH 19/22] vl: add VP9 profile2 support

Leo Liu leo.liu at amd.com
Mon Apr 9 16:36:15 UTC 2018


Signed-off-by: Leo Liu <leo.liu at amd.com>
---
 src/gallium/auxiliary/util/u_video.h     | 1 +
 src/gallium/include/pipe/p_video_enums.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h
index d313497a63..967ebc5748 100644
--- a/src/gallium/auxiliary/util/u_video.h
+++ b/src/gallium/auxiliary/util/u_video.h
@@ -80,6 +80,7 @@ u_reduce_video_profile(enum pipe_video_profile profile)
          return PIPE_VIDEO_FORMAT_JPEG;
 
       case PIPE_VIDEO_PROFILE_VP9_PROFILE0:
+      case PIPE_VIDEO_PROFILE_VP9_PROFILE2:
          return PIPE_VIDEO_FORMAT_VP9;
 
       default:
diff --git a/src/gallium/include/pipe/p_video_enums.h b/src/gallium/include/pipe/p_video_enums.h
index c20bc48e3d..b5b8b06228 100644
--- a/src/gallium/include/pipe/p_video_enums.h
+++ b/src/gallium/include/pipe/p_video_enums.h
@@ -69,7 +69,8 @@ enum pipe_video_profile
    PIPE_VIDEO_PROFILE_HEVC_MAIN_12,
    PIPE_VIDEO_PROFILE_HEVC_MAIN_444,
    PIPE_VIDEO_PROFILE_JPEG_BASELINE,
-   PIPE_VIDEO_PROFILE_VP9_PROFILE0
+   PIPE_VIDEO_PROFILE_VP9_PROFILE0,
+   PIPE_VIDEO_PROFILE_VP9_PROFILE2
 };
 
 /* Video caps, can be different for each codec/profile */
-- 
2.14.1



More information about the mesa-dev mailing list