mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-14 16:09:51 +03:00
ipa: raspberry: Initialize ControlInfo with values list
Initialize the ControlInfoMap of controls supported by the Raspberry Pi pipeline handler and IPA using the list of the enumerated values instead of specifying them manually. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
634fd30b39
commit
4692ef1a10
1 changed files with 4 additions and 4 deletions
|
@ -50,13 +50,13 @@ static const ControlInfoMap Controls = {
|
||||||
{ &controls::AeEnable, ControlInfo(false, true) },
|
{ &controls::AeEnable, ControlInfo(false, true) },
|
||||||
{ &controls::ExposureTime, ControlInfo(0, 999999) },
|
{ &controls::ExposureTime, ControlInfo(0, 999999) },
|
||||||
{ &controls::AnalogueGain, ControlInfo(1.0f, 32.0f) },
|
{ &controls::AnalogueGain, ControlInfo(1.0f, 32.0f) },
|
||||||
{ &controls::AeMeteringMode, ControlInfo(0, static_cast<int32_t>(controls::MeteringModeMax)) },
|
{ &controls::AeMeteringMode, ControlInfo(controls::AeMeteringModeValues) },
|
||||||
{ &controls::AeConstraintMode, ControlInfo(0, static_cast<int32_t>(controls::ConstraintModeMax)) },
|
{ &controls::AeConstraintMode, ControlInfo(controls::AeConstraintModeValues) },
|
||||||
{ &controls::AeExposureMode, ControlInfo(0, static_cast<int32_t>(controls::ExposureModeMax)) },
|
{ &controls::AeExposureMode, ControlInfo(controls::AeExposureModeValues) },
|
||||||
{ &controls::ExposureValue, ControlInfo(0.0f, 16.0f) },
|
{ &controls::ExposureValue, ControlInfo(0.0f, 16.0f) },
|
||||||
{ &controls::AwbEnable, ControlInfo(false, true) },
|
{ &controls::AwbEnable, ControlInfo(false, true) },
|
||||||
{ &controls::ColourGains, ControlInfo(0.0f, 32.0f) },
|
{ &controls::ColourGains, ControlInfo(0.0f, 32.0f) },
|
||||||
{ &controls::AwbMode, ControlInfo(0, static_cast<int32_t>(controls::AwbModeMax)) },
|
{ &controls::AwbMode, ControlInfo(controls::AwbModeValues) },
|
||||||
{ &controls::Brightness, ControlInfo(-1.0f, 1.0f) },
|
{ &controls::Brightness, ControlInfo(-1.0f, 1.0f) },
|
||||||
{ &controls::Contrast, ControlInfo(0.0f, 32.0f) },
|
{ &controls::Contrast, ControlInfo(0.0f, 32.0f) },
|
||||||
{ &controls::Saturation, ControlInfo(0.0f, 32.0f) },
|
{ &controls::Saturation, ControlInfo(0.0f, 32.0f) },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue