summaryrefslogtreecommitdiff
path: root/src/gen75_picture_process.c
diff options
context:
space:
mode:
authorpeng.chen <peng.c.chen@intel.com>2016-09-26 13:46:23 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2016-09-29 16:34:02 +0800
commitfa3d1c3799c2633ff49fffb9dc6fc684e2db6565 (patch)
tree4efa11307cb9476d195509bf2e83189e610a0e77 /src/gen75_picture_process.c
parent20edbb18570d5ec5e87906d87afa98885c12fac7 (diff)
downloadlibva-intel-driver-fa3d1c3799c2633ff49fffb9dc6fc684e2db6565.tar.gz
Move the sharpening into the whole virtual VEBOX process
V2: add vpp_sharpness_filtering() in gen75&gen8_vebox_process_picture() It fixes below issues: https://bugs.freedesktop.org/show_bug.cgi?id=96987 https://bugs.freedesktop.org/show_bug.cgi?id=96988 Signed-off-by: peng.chen <peng.c.chen@intel.com>
Diffstat (limited to 'src/gen75_picture_process.c')
-rw-r--r--src/gen75_picture_process.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/gen75_picture_process.c b/src/gen75_picture_process.c
index 802452bf..0b681f1e 100644
--- a/src/gen75_picture_process.c
+++ b/src/gen75_picture_process.c
@@ -91,25 +91,6 @@ gen75_vpp_vebox(VADriverContextP ctx,
return va_status;
}
-static VAStatus
-gen75_vpp_gpe(VADriverContextP ctx,
- struct intel_video_process_context* proc_ctx)
-{
- VAStatus va_status = VA_STATUS_SUCCESS;
-
- if(proc_ctx->vpp_gpe_ctx == NULL){
- proc_ctx->vpp_gpe_ctx = vpp_gpe_context_init(ctx);
- }
-
- proc_ctx->vpp_gpe_ctx->pipeline_param = proc_ctx->pipeline_param;
- proc_ctx->vpp_gpe_ctx->surface_pipeline_input_object = proc_ctx->surface_pipeline_input_object;
- proc_ctx->vpp_gpe_ctx->surface_output_object = proc_ctx->surface_render_output_object;
-
- va_status = vpp_gpe_process_picture(ctx, proc_ctx->vpp_gpe_ctx);
-
- return va_status;
-}
-
VAStatus
gen75_proc_picture(VADriverContextP ctx,
VAProfile profile,
@@ -324,16 +305,9 @@ gen75_proc_picture(VADriverContextP ctx,
if (filter->type == VAProcFilterNoiseReduction ||
filter->type == VAProcFilterDeinterlacing ||
filter->type == VAProcFilterSkinToneEnhancement ||
+ filter->type == VAProcFilterSharpening ||
filter->type == VAProcFilterColorBalance){
gen75_vpp_vebox(ctx, proc_ctx);
- }else if(filter->type == VAProcFilterSharpening){
- if (proc_ctx->surface_pipeline_input_object->fourcc != VA_FOURCC_NV12 ||
- proc_ctx->surface_render_output_object->fourcc != VA_FOURCC_NV12) {
- status = VA_STATUS_ERROR_UNIMPLEMENTED;
- goto error;
- }
-
- gen75_vpp_gpe(ctx, proc_ctx);
}
}else if (pipeline_param->num_filters >= 2) {
unsigned int i = 0;
@@ -413,11 +387,6 @@ gen75_proc_context_destroy(void *hw_context)
proc_ctx->vpp_vebox_ctx = NULL;
}
- if(proc_ctx->vpp_gpe_ctx){
- vpp_gpe_context_destroy(ctx,proc_ctx->vpp_gpe_ctx);
- proc_ctx->vpp_gpe_ctx = NULL;
- }
-
free(proc_ctx);
}
@@ -433,7 +402,6 @@ gen75_proc_context_init(VADriverContextP ctx,
proc_context->base.run = gen75_proc_picture;
proc_context->vpp_vebox_ctx = NULL;
- proc_context->vpp_gpe_ctx = NULL;
proc_context->vpp_fmt_cvt_ctx = NULL;
proc_context->driver_context = ctx;