OSDN Git Service

Add support for HEVC decoding on CHV
authorSean V Kelley <seanvk@posteo.de>
Wed, 18 Feb 2015 16:29:55 +0000 (08:29 -0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 19 Mar 2015 02:02:29 +0000 (10:02 +0800)
We can re-use SKL HEVC decode pipeline

Signed-off-by: Sean V Kelley <seanvk@posteo.de>
Cc: haihao.xiang@intel.com
Cc: focus.luo@intel.com
(cherry picked from commit 78171ec3b8e73071405d9ff6ecbddc05a6787001)

src/i965_device_info.c

index 0c8dcf2..9227d0b 100644 (file)
@@ -262,8 +262,9 @@ static struct hw_codec_info bdw_hw_codec_info = {
     },
 };
 
+extern struct hw_context *gen9_dec_hw_context_init(VADriverContextP, struct object_config *);
 static struct hw_codec_info chv_hw_codec_info = {
-    .dec_hw_context_init = gen8_dec_hw_context_init,
+    .dec_hw_context_init = gen9_dec_hw_context_init,
     .enc_hw_context_init = gen8_enc_hw_context_init,
     .proc_hw_context_init = gen75_proc_context_init,
     .render_init = gen8_render_init,
@@ -296,6 +297,7 @@ static struct hw_codec_info chv_hw_codec_info = {
     .has_vp8_decoding = 1,
     .has_vp8_encoding = 1,
     .has_h264_mvc_encoding = 1,
+    .has_hevc_decoding = 1,
 
     .num_filters = 5,
     .filters = {
@@ -307,7 +309,6 @@ static struct hw_codec_info chv_hw_codec_info = {
     },
 };
 
-extern struct hw_context *gen9_dec_hw_context_init(VADriverContextP, struct object_config *);
 extern struct hw_context *gen9_enc_hw_context_init(VADriverContextP, struct object_config *);
 extern void gen9_post_processing_context_init(VADriverContextP, void *, struct intel_batchbuffer *);
 static struct hw_codec_info skl_hw_codec_info = {