Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit d611fc8

Browse files
committed
Add the Hybrid Vp9 decoding for Haswell
Change-Id: Ib296ee551dd12041a9a9cba0e4dd0f5ae85d9506 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
1 parent 25d08da commit d611fc8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/media_drv_decoder.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#include "media_drv_driver.h"
4141
#include "media_drv_decoder.h"
4242

43+
#include "media_drv_hw.h"
44+
#include "media_drv_hybrid_vp9_common.h"
4345

4446
/*
4547
* Currently this is bogus. It is only for calling back the structure/function
@@ -70,8 +72,15 @@ struct hw_context *
7072
media_dec_hw_context_init (VADriverContextP ctx,
7173
struct object_config *obj_config)
7274
{
73-
struct hw_context *decoder_context =
74-
(struct hw_context *) media_drv_alloc_memory (sizeof(struct hw_context));
75+
MEDIA_DRV_CONTEXT *drv_ctx = (MEDIA_DRV_CONTEXT *) (ctx->pDriverData);
76+
struct hw_context *decoder_context = NULL;
77+
78+
if (drv_ctx->codec_info->vp9_dec_hybrid_support &&
79+
(obj_config->profile == VAProfileVP9Version0)) {
80+
return media_hybrid_dec_hw_context_init(ctx, obj_config);
81+
}
82+
83+
decoder_context = (struct hw_context *) media_drv_alloc_memory (sizeof(struct hw_context));
7584

7685
decoder_context->run = intel_media_decode_picture;
7786
decoder_context->destroy = intel_media_context_destroy;

0 commit comments

Comments
 (0)