Skip to content

Commit 63d1f8f

Browse files
6by9popcornmix
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 52057a0 commit 63d1f8f

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
@@ -274,6 +274,7 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
274274
"Flash",
275275
"Cloudy",
276276
"Shade",
277+
"Greyworld",
277278
NULL,
278279
};
279280
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
@@ -861,6 +861,7 @@ enum v4l2_auto_n_preset_white_balance {
861861
V4L2_WHITE_BALANCE_FLASH = 7,
862862
V4L2_WHITE_BALANCE_CLOUDY = 8,
863863
V4L2_WHITE_BALANCE_SHADE = 9,
864+
V4L2_WHITE_BALANCE_GREYWORLD = 10,
864865
};
865866

866867
#define V4L2_CID_WIDE_DYNAMIC_RANGE (V4L2_CID_CAMERA_CLASS_BASE+21)

0 commit comments

Comments
 (0)