From d25d9ae86e148daee38145e4355531f50333c9d1 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 20 Aug 2014 16:33:25 +0200 Subject: [PATCH] vebox: fix denoising when IECP is enabled. 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 --- src/gen75_vpp_vebox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c index abec9bb..b4cae79 100644 --- a/src/gen75_vpp_vebox.c +++ b/src/gen75_vpp_vebox.c @@ -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; -- 2.11.0