From 4905a1043ccff9b0676e9c7bd63c7f158c6e3e35 Mon Sep 17 00:00:00 2001 From: Xihai Zhu Date: Mon, 19 Aug 2019 02:53:26 -0400 Subject: [PATCH] amvecm: further improvement for LC block artifect [1/2] PD#SWPL-12867 Problem: after some swtich or on/off operation, minor block artifect is seen under super black pattern Solution: improve the temporal filter calculation and fine tune related parameter as well Verify: TL1 Change-Id: If52360e458934d71438899b88d9246f1279ce524 Signed-off-by: Xihai Zhu --- drivers/amlogic/media/enhancement/amvecm/local_contrast.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/amlogic/media/enhancement/amvecm/local_contrast.c b/drivers/amlogic/media/enhancement/amvecm/local_contrast.c index fe78d04..fc2298c 100644 --- a/drivers/amlogic/media/enhancement/amvecm/local_contrast.c +++ b/drivers/amlogic/media/enhancement/amvecm/local_contrast.c @@ -1303,18 +1303,18 @@ int cal_curv_iir(int *curve_nodes_cur, tmap[k] = (node_cur * refresh_alpha[addr_curv1]) + ((node_pre_raw * - (refresh - refresh_alpha[addr_curv1]) + - (1 << (refresh_bit - 1))) + (refresh - refresh_alpha[addr_curv1])) >> refresh_bit); curve_nodes_pre_raw[addr_curv2] = tmap[k]; - tmap[k] = (tmap[k] >> refresh_bit); + tmap[k] = (tmap[k] + (1 << (1 + refresh_bit))) + >> (2 + refresh_bit); /*output the iir result*/ curve_nodes_cur[addr_curv2] = - (int)(tmap[k] >> 2);/*back to u10*/ + (int)(tmap[k]);/*back to u10*/ /*delay for next iir*/ curve_nodes_pre[addr_curv2] = - (int)(tmap[k] >> 2); + (int)(tmap[k]); } } } -- 2.7.4