From: Leo Liu Date: Tue, 13 Mar 2018 13:06:17 +0000 (-0400) Subject: vl: add VP9 profile0 and format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29bc3546841c9f0d12da227039d58744963df69a;p=mesa.git vl: add VP9 profile0 and format Signed-off-by: Leo Liu Acked-by: Christian König --- diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h index f3596e08a19..d313497a638 100644 --- a/src/gallium/auxiliary/util/u_video.h +++ b/src/gallium/auxiliary/util/u_video.h @@ -79,6 +79,9 @@ u_reduce_video_profile(enum pipe_video_profile profile) case PIPE_VIDEO_PROFILE_JPEG_BASELINE: return PIPE_VIDEO_FORMAT_JPEG; + case PIPE_VIDEO_PROFILE_VP9_PROFILE0: + return PIPE_VIDEO_FORMAT_VP9; + default: return PIPE_VIDEO_FORMAT_UNKNOWN; } diff --git a/src/gallium/include/pipe/p_video_enums.h b/src/gallium/include/pipe/p_video_enums.h index 2b7186857a7..c20bc48e3d6 100644 --- a/src/gallium/include/pipe/p_video_enums.h +++ b/src/gallium/include/pipe/p_video_enums.h @@ -40,7 +40,8 @@ enum pipe_video_format PIPE_VIDEO_FORMAT_VC1, /**< WMV */ PIPE_VIDEO_FORMAT_MPEG4_AVC,/**< H.264 */ PIPE_VIDEO_FORMAT_HEVC, /**< H.265 */ - PIPE_VIDEO_FORMAT_JPEG /**< JPEG */ + PIPE_VIDEO_FORMAT_JPEG, /**< JPEG */ + PIPE_VIDEO_FORMAT_VP9 /**< VP9 */ }; enum pipe_video_profile @@ -67,7 +68,8 @@ enum pipe_video_profile PIPE_VIDEO_PROFILE_HEVC_MAIN_STILL, PIPE_VIDEO_PROFILE_HEVC_MAIN_12, PIPE_VIDEO_PROFILE_HEVC_MAIN_444, - PIPE_VIDEO_PROFILE_JPEG_BASELINE + PIPE_VIDEO_PROFILE_JPEG_BASELINE, + PIPE_VIDEO_PROFILE_VP9_PROFILE0 }; /* Video caps, can be different for each codec/profile */