mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
Get the gamma value from screen vendor and use the following algorithm to get the cabc lut for(i=0;i<256;i++) cabc_lut[i] = pow((256.0/(i + 256)), gamma_val) * 65536 + 0.5; Change-Id: I8500cc84869d2693ce6af4e116b2140b3d3a16fc Signed-off-by: Huang Jiachai <hjc@rock-chips.com>