vpp: fix p212 osd sdr2hdr luma too dark compile [1/1]
authorMingLiang Dong <mingliang.dong@amlogic.com>
Fri, 23 Nov 2018 06:28:11 +0000 (01:28 -0500)
committerMingLiang Dong <mingliang.dong@amlogic.com>
Fri, 23 Nov 2018 06:28:11 +0000 (01:28 -0500)
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 <mingliang.dong@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amcsc.c

index ed88490..4b37921 100644 (file)
@@ -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,