Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: v4l: uapi: ccs: Add CCS controls for shading correction

Add V4L2 controls for controlling CCS lens shading correction as well as
conveying its capabilities.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
7c0ed600 7a426098

+15
+13
Documentation/userspace-api/media/drivers/ccs.rst
··· 94 94 ``V4L2_CID_CCS_ANALOGUE_LINEAR_GAIN`` and 95 95 ``V4L2_CID_CCS_ANALOGUE_EXPONENTIAL_GAIN`` controls, respectively 96 96 97 + Shading correction 98 + ~~~~~~~~~~~~~~~~~~ 99 + 100 + The CCS standard supports lens shading correction. The feature can be controlled 101 + using ``V4L2_CID_CCS_SHADING_CORRECTION``. Additionally, the luminance 102 + correction level may be changed using 103 + ``V4L2_CID_CCS_LUMINANCE_CORRECTION_LEVEL``, where value 0 indicates no 104 + correction and 128 indicates correcting the luminance in corners to 10 % less 105 + than in the centre. 106 + 107 + Shading correction needs to be enabled for luminance correction level to have an 108 + effect. 109 + 97 110 **Copyright** |copy| 2020 Intel Corporation
+2
include/uapi/linux/ccs.h
··· 12 12 #define V4L2_CID_CCS_ANALOGUE_GAIN_C1 (V4L2_CID_USER_CCS_BASE + 4) 13 13 #define V4L2_CID_CCS_ANALOGUE_LINEAR_GAIN (V4L2_CID_USER_CCS_BASE + 5) 14 14 #define V4L2_CID_CCS_ANALOGUE_EXPONENTIAL_GAIN (V4L2_CID_USER_CCS_BASE + 6) 15 + #define V4L2_CID_CCS_SHADING_CORRECTION (V4L2_CID_USER_CCS_BASE + 8) 16 + #define V4L2_CID_CCS_LUMINANCE_CORRECTION_LEVEL (V4L2_CID_USER_CCS_BASE + 9) 15 17 16 18 #endif