hardware/intel/intel-driver
Revision | 8ac2289aca552998d290bbc8bc2b44fbb510b1f9 (tree) |
---|---|
Time | 2015-03-19 11:02:29 |
Author | Sean V Kelley <seanvk@post...> |
Commiter | Xiang, Haihao |
Add support for HEVC decoding on CHV
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)
@@ -262,8 +262,9 @@ static struct hw_codec_info bdw_hw_codec_info = { | ||
262 | 262 | }, |
263 | 263 | }; |
264 | 264 | |
265 | +extern struct hw_context *gen9_dec_hw_context_init(VADriverContextP, struct object_config *); | |
265 | 266 | static struct hw_codec_info chv_hw_codec_info = { |
266 | - .dec_hw_context_init = gen8_dec_hw_context_init, | |
267 | + .dec_hw_context_init = gen9_dec_hw_context_init, | |
267 | 268 | .enc_hw_context_init = gen8_enc_hw_context_init, |
268 | 269 | .proc_hw_context_init = gen75_proc_context_init, |
269 | 270 | .render_init = gen8_render_init, |
@@ -296,6 +297,7 @@ static struct hw_codec_info chv_hw_codec_info = { | ||
296 | 297 | .has_vp8_decoding = 1, |
297 | 298 | .has_vp8_encoding = 1, |
298 | 299 | .has_h264_mvc_encoding = 1, |
300 | + .has_hevc_decoding = 1, | |
299 | 301 | |
300 | 302 | .num_filters = 5, |
301 | 303 | .filters = { |
@@ -307,7 +309,6 @@ static struct hw_codec_info chv_hw_codec_info = { | ||
307 | 309 | }, |
308 | 310 | }; |
309 | 311 | |
310 | -extern struct hw_context *gen9_dec_hw_context_init(VADriverContextP, struct object_config *); | |
311 | 312 | extern struct hw_context *gen9_enc_hw_context_init(VADriverContextP, struct object_config *); |
312 | 313 | extern void gen9_post_processing_context_init(VADriverContextP, void *, struct intel_batchbuffer *); |
313 | 314 | static struct hw_codec_info skl_hw_codec_info = { |