summaryrefslogtreecommitdiff
path: root/src/gen9_mfd.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2014-06-20 20:41:46 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-12-14 00:42:17 +0800
commitae8619bcf07eb446c0ef34cdbb530bb8c43f08fe (patch)
treed9a333ed5a9f4c22837b3290a90d7da014b64b26 /src/gen9_mfd.c
parent5dc1fc729679e405ab4b35d7b1d445c220f9fa9b (diff)
downloadlibva-intel-driver-ae8619bcf07eb446c0ef34cdbb530bb8c43f08fe.tar.gz
HEVC: Set the default flat IQ matrix
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit d76ba3c5d46878be134dcdf1c17bb1a4e7f276f2)
Diffstat (limited to 'src/gen9_mfd.c')
-rw-r--r--src/gen9_mfd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gen9_mfd.c b/src/gen9_mfd.c
index 43a38a22..c025a960 100644
--- a/src/gen9_mfd.c
+++ b/src/gen9_mfd.c
@@ -418,6 +418,13 @@ gen9_hcpd_context_destroy(void *hw_context)
free(gen9_hcpd_context);
}
+static void
+gen9_hcpd_hevc_context_init(VADriverContextP ctx,
+ struct gen9_hcpd_context *gen9_hcpd_context)
+{
+ hevc_gen_default_iq_matrix(&gen9_hcpd_context->iq_matrix_hevc);
+}
+
static struct hw_context *
gen9_hcpd_context_init(VADriverContextP ctx, struct object_config *object_config)
{
@@ -438,6 +445,16 @@ gen9_hcpd_context_init(VADriverContextP ctx, struct object_config *object_config
gen9_hcpd_context->reference_surfaces[i].obj_surface = NULL;
}
+ switch (object_config->profile) {
+ case VAProfileHEVCMain:
+ case VAProfileHEVCMain10:
+ gen9_hcpd_hevc_context_init(ctx, gen9_hcpd_context);
+ break;
+
+ default:
+ break;
+ }
+
return (struct hw_context *)gen9_hcpd_context;
}