mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
staging: bcm2835-camera: Add greyworld AWB mode
This is mainly used for the NoIR camera which has no IR filter and can completely confuse normal AWB presets. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
This commit is contained in:
committed by
Dom Cobley
parent
fce8121d2f
commit
c05f77db01
@@ -468,6 +468,10 @@ static int ctrl_set_awb_mode(struct bcm2835_mmal_dev *dev,
|
||||
case V4L2_WHITE_BALANCE_SHADE:
|
||||
u32_value = MMAL_PARAM_AWBMODE_SHADE;
|
||||
break;
|
||||
|
||||
case V4L2_WHITE_BALANCE_GREYWORLD:
|
||||
u32_value = MMAL_PARAM_AWBMODE_GREYWORLD;
|
||||
break;
|
||||
}
|
||||
|
||||
return vchiq_mmal_port_parameter_set(dev->instance, control,
|
||||
@@ -1044,8 +1048,8 @@ static const struct bcm2835_mmal_v4l2_ctrl v4l2_ctrls[V4L2_CTRL_COUNT] = {
|
||||
{
|
||||
.id = V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE,
|
||||
.type = MMAL_CONTROL_TYPE_STD_MENU,
|
||||
.min = ~0x3ff,
|
||||
.max = V4L2_WHITE_BALANCE_SHADE,
|
||||
.min = ~0x7ff,
|
||||
.max = V4L2_WHITE_BALANCE_GREYWORLD,
|
||||
.def = V4L2_WHITE_BALANCE_AUTO,
|
||||
.step = 0,
|
||||
.imenu = NULL,
|
||||
|
||||
@@ -310,6 +310,7 @@ enum mmal_parameter_awbmode {
|
||||
MMAL_PARAM_AWBMODE_INCANDESCENT,
|
||||
MMAL_PARAM_AWBMODE_FLASH,
|
||||
MMAL_PARAM_AWBMODE_HORIZON,
|
||||
MMAL_PARAM_AWBMODE_GREYWORLD,
|
||||
};
|
||||
|
||||
enum mmal_parameter_imagefx {
|
||||
|
||||
Reference in New Issue
Block a user