Skip to content

Commit 53e7816

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 5246822 commit 53e7816

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
@@ -273,6 +273,7 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
273273
"Flash",
274274
"Cloudy",
275275
"Shade",
276+
"Greyworld",
276277
NULL,
277278
};
278279
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
@@ -850,6 +850,7 @@ enum v4l2_auto_n_preset_white_balance {
850850
V4L2_WHITE_BALANCE_FLASH = 7,
851851
V4L2_WHITE_BALANCE_CLOUDY = 8,
852852
V4L2_WHITE_BALANCE_SHADE = 9,
853+
V4L2_WHITE_BALANCE_GREYWORLD = 10,
853854
};
854855

855856
#define V4L2_CID_WIDE_DYNAMIC_RANGE (V4L2_CID_CAMERA_CLASS_BASE+21)

0 commit comments

Comments
 (0)