From ea7a2e66ebe7d6acba83d282a4bc618abd22b7f2 Mon Sep 17 00:00:00 2001 From: MingLiang Dong Date: Thu, 2 Apr 2020 11:26:56 +0800 Subject: [PATCH] hdr: config cgain bypass when osd sdr2hdr process [1/1] PD#SWPL-23499 Problem: osd sdr2hdr process cause osd color contour Solution: 1. root cause is cgain curve is not smooth 2. bypass cgain Verify: verify on G12A Change-Id: I81480244c8b13f942ae99b45238d947f874120fe Signed-off-by: MingLiang Dong --- drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c b/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c index 721db8cfe1c3..f67796ae8d83 100644 --- a/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c +++ b/drivers/amlogic/media/enhancement/amvecm/set_hdr2_v0.c @@ -2428,7 +2428,7 @@ enum hdr_process_sel hdr_func(enum hdr_module_sel module_sel, hdr_lut_param.eotf_lut[i] = eo_y_lut_sdr[i]; if (i < HDR2_CGAIN_LUT_SIZE) hdr_lut_param.cgain_lut[i] = - cgain_lut0[i] - 1; + cgain_lut_bypass[i] - 1; } hdr_lut_param.bitdepth = bit_depth; hdr_lut_param.lut_on = LUT_ON;