Skip to content

Commit b3a72e7

Browse files
6by9Phil Elwell
authored andcommitted
v4l2: Add a Greyworld AWB mode.
Adds a simple greyworld white balance preset, mainly for use with cameras without an IR filter (eg Raspberry Pi NoIR) Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
1 parent c25abef commit b3a72e7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/media/v4l2-core/v4l2-ctrls.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
275275
"Flash",
276276
"Cloudy",
277277
"Shade",
278+
"Greyworld",
278279
NULL,
279280
};
280281
static const char * const camera_iso_sensitivity_auto[] = {

‎include/uapi/linux/v4l2-controls.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ enum v4l2_auto_n_preset_white_balance {
819819
V4L2_WHITE_BALANCE_FLASH = 7,
820820
V4L2_WHITE_BALANCE_CLOUDY = 8,
821821
V4L2_WHITE_BALANCE_SHADE = 9,
822+
V4L2_WHITE_BALANCE_GREYWORLD = 10,
822823
};
823824

824825
#define V4L2_CID_WIDE_DYNAMIC_RANGE (V4L2_CID_CAMERA_CLASS_BASE+21)

0 commit comments

Comments
 (0)