OSDN Git Service

vebox: fix denoising when IECP is enabled.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 20 Aug 2014 14:33:25 +0000 (16:33 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 28 Oct 2014 10:37:37 +0000 (11:37 +0100)
If IECP is enabled, for instance when color conversion is performed
or ProcAmp adjustments are applied, the ultimate denoised output with
additional processing operations applied is the Current Output frame,
not the plain Current Denoised Output frame.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
src/gen75_vpp_vebox.c

index abec9bb..b4cae79 100644 (file)
@@ -1069,7 +1069,7 @@ gen75_vebox_ensure_surfaces(VADriverContextP ctx,
         proc_ctx->surface_output_vebox_object : proc_ctx->surface_output_object;
 
     proc_ctx->current_output_type = 2;
-    if (proc_ctx->filters_mask == VPP_DNDI_DN)
+    if (proc_ctx->filters_mask == VPP_DNDI_DN && !proc_ctx->is_iecp_enabled)
         proc_ctx->current_output = FRAME_OUT_CURRENT_DN;
     else if (proc_ctx->is_di_adv_enabled && !proc_ctx->is_first_frame) {
         proc_ctx->current_output_type = 0;