From bd1d538535577288d87c3a5e2d1da8184a69eaa9 Mon Sep 17 00:00:00 2001 From: MingLiang Dong Date: Fri, 23 Nov 2018 01:28:11 -0500 Subject: [PATCH] vpp: fix p212 osd sdr2hdr luma too dark compile [1/1] PD#SWPL-1707 Problem: {NTS}Manual,HDR-001-TC2 Failed step 8/12/16/20 VID and GFX doesn't match Solution: add osd hdr2sdr convert table for 400nit on p212 Verify: verify on p212 Change-Id: I16637652b6d07ba81b25f46c2684ff7ae3e1c68c Signed-off-by: MingLiang Dong --- drivers/amlogic/media/enhancement/amvecm/amcsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/enhancement/amvecm/amcsc.c b/drivers/amlogic/media/enhancement/amvecm/amcsc.c index ed884901d904..4b3792173d44 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amcsc.c +++ b/drivers/amlogic/media/enhancement/amvecm/amcsc.c @@ -1593,7 +1593,7 @@ static unsigned int osd_oetf_41_2084_mapping_100[OSD_OETF_LUT_SIZE] = { 523 }; -static const uint osd_eotf_33_709_mapping_290[EOTF_LUT_SIZE] = { +static unsigned int osd_eotf_33_709_mapping_290[EOTF_LUT_SIZE] = { 0, 8, 37, 90, 169, 276, 412, 579, 776, 1006, 1268, 1564, 1894, 2258, 2658, 3094, 3566, 4075, 4621, 5204, 5826, 6486, 7185, 7923, @@ -1602,7 +1602,7 @@ static const uint osd_eotf_33_709_mapping_290[EOTF_LUT_SIZE] = { }; /* osd oetf lut: 2084 from baozheng */ -static const uint osd_oetf_41_2084_mapping_290[OSD_OETF_LUT_SIZE] = { +static unsigned int osd_oetf_41_2084_mapping_290[OSD_OETF_LUT_SIZE] = { 0, 141, 178, 203, 221, 236, 249, 260, 270, 325, 360, 386, 406, 423, 438, 451, 462, 473, 482, 491, 499, 507, 514, 520,