vl: add VP9 profile2 support
authorLeo Liu <leo.liu@amd.com>
Wed, 14 Mar 2018 20:59:20 +0000 (16:59 -0400)
committerLeo Liu <leo.liu@amd.com>
Thu, 12 Apr 2018 15:15:13 +0000 (11:15 -0400)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/util/u_video.h
src/gallium/include/pipe/p_video_enums.h

index d313497a6382f8efd7babe921df030ff665aefab..967ebc574897502142442b4804bfe2f8a176fd36 100644 (file)
@@ -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:
index c20bc48e3d6bb8b38f70f161c7f58f51efc7e9b8..b5b8b0622858e962fcd0bbab6cb44bb9a739b221 100644 (file)
@@ -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 */