Part Number: PROCESSOR-SDK-DRA8X-TDA4X
Hi,
I generated LSC gains for IMX390 with input RAW image(1936 x 1086), with M = 64 and N = 64, so I got 576 entries for each channel and 576 * 4 gains in total. I filled the details in "tiovx/kernels_j7/hwa/vpac_viss/vx_vpac_viss_target_dcc.c", in "tivxVpacVissDccMapLscParams" as follows,
lscCfg->enable = (uint32_t)TRUE;
lscCfg->gainFmt = RFE_LSC_GAIN_FMT_U8Q8_1;
lscCfg->horzDsFactor = RFE_LSC_DS_FACTOR_64;
lscCfg->vertDsFactor = RFE_LSC_DS_FACTOR_64;
lscCfg->tableAddr = grawfe_lsc_tbl;
lscCfg->numTblEntry = 576;
In this above settings I'm seeing only 1/4th of the image was shading corrected. Remaining 3/4th image are not proper.
But for the below settings if I changed the lscCfg->numTblEntry = 2304; (576*4 = 2304), then my image is 100% proper and shading corrected, is this the expected behavior?
lscCfg->enable = (uint32_t)TRUE;
lscCfg->gainFmt = RFE_LSC_GAIN_FMT_U8Q8_1;
lscCfg->horzDsFactor = RFE_LSC_DS_FACTOR_64;
lscCfg->vertDsFactor = RFE_LSC_DS_FACTOR_64;
lscCfg->tableAddr = grawfe_lsc_tbl;
lscCfg->numTblEntry = 2304;