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>
This commit is contained in:
Dave Stevenson
2019-09-06 15:04:51 +01:00
committed by Phil Elwell
parent c9597b7479
commit 7644372ca3
2 changed files with 2 additions and 0 deletions

View File

@@ -263,6 +263,7 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
"Flash",
"Cloudy",
"Shade",
"Greyworld",
NULL,
};
static const char * const camera_iso_sensitivity_auto[] = {

View File

@@ -827,6 +827,7 @@ enum v4l2_auto_n_preset_white_balance {
V4L2_WHITE_BALANCE_FLASH = 7,
V4L2_WHITE_BALANCE_CLOUDY = 8,
V4L2_WHITE_BALANCE_SHADE = 9,
V4L2_WHITE_BALANCE_GREYWORLD = 10,
};
#define V4L2_CID_WIDE_DYNAMIC_RANGE (V4L2_CID_CAMERA_CLASS_BASE+21)