summaryrefslogtreecommitdiff
path: root/src/i965_drv_video.h
diff options
context:
space:
mode:
authorDaniel Charles <daniel.charles@intel.com>2016-11-16 17:20:02 -0800
committerXiang, Haihao <haihao.xiang@intel.com>2016-11-17 12:40:43 +0800
commite5f59f45ba1b9dd888c6c922d8260b586f7c8b04 (patch)
treef7351198b257ceb774237989e431cfdeb16f9237 /src/i965_drv_video.h
parent08c3498e8dabe9877bea349089caddad0a151931 (diff)
downloadlibva-intel-driver-e5f59f45ba1b9dd888c6c922d8260b586f7c8b04.tar.gz
i965_driver_info: add vp9_enc_profiles
Not all profiles for vp9 are supported by the encoder and user needs to know about it Signed-off-by: Daniel Charles <daniel.charles@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/i965_drv_video.h')
-rw-r--r--src/i965_drv_video.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h
index 5ef6d27d..d928d30f 100644
--- a/src/i965_drv_video.h
+++ b/src/i965_drv_video.h
@@ -149,6 +149,10 @@
#define HAS_VP9_ENCODING(ctx) ((ctx)->codec_info->has_vp9_encoding && \
(ctx)->intel.has_bsd)
+#define HAS_VP9_ENCODING_PROFILE(ctx, profile) \
+ (HAS_VP9_ENCODING(ctx) && \
+ ((ctx)->codec_info->vp9_enc_profiles & (1U << (profile - VAProfileVP9Profile0))))
+
struct i965_surface
{
struct object_base *base;
@@ -452,6 +456,7 @@ struct hw_codec_info
unsigned int h264_mvc_dec_profiles;
unsigned int vp9_dec_profiles;
+ unsigned int vp9_enc_profiles;
unsigned int h264_dec_chroma_formats;
unsigned int jpeg_dec_chroma_formats;