summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/camera_mode.h
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2023-03-27 08:35:28 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-03-28 14:11:41 +0100
commitd6e85bdfe944354e3e4243ec8f0b5717b350f661 (patch)
tree7305ca8b03e15ec12171bfe7b02ac003f488a37c /src/ipa/raspberrypi/controller/camera_mode.h
parentd942bdc913c5a7f0895bfcb0180db3f279be246e (diff)
ipa: raspberrypi: Add sensor mode limits to CameraMode
Add fields in the CameraMode structure to capture the mode specific limits for analogue gain and shutter speed. For convenience, also add fields for minimum and maximum frame durations. Populate these new fields when setting up the CameraMode structure. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/camera_mode.h')
-rw-r--r--src/ipa/raspberrypi/controller/camera_mode.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ipa/raspberrypi/controller/camera_mode.h b/src/ipa/raspberrypi/controller/camera_mode.h
index 94c51ddf..63b11778 100644
--- a/src/ipa/raspberrypi/controller/camera_mode.h
+++ b/src/ipa/raspberrypi/controller/camera_mode.h
@@ -36,9 +36,11 @@ struct CameraMode {
double scaleY;
/* scaling of the noise compared to the native sensor mode */
double noiseFactor;
- /* minimum and maximum line time */
+ /* minimum and maximum line time and frame durations */
libcamera::utils::Duration minLineLength;
libcamera::utils::Duration maxLineLength;
+ libcamera::utils::Duration minFrameDuration;
+ libcamera::utils::Duration maxFrameDuration;
/* any camera transform *not* reflected already in the camera tuning */
libcamera::Transform transform;
/* minimum and maximum frame lengths in units of lines */
@@ -48,4 +50,10 @@ struct CameraMode {
double sensitivity;
/* pixel clock rate */
uint64_t pixelRate;
+ /* Mode specific shutter speed limits */
+ libcamera::utils::Duration minShutter;
+ libcamera::utils::Duration maxShutter;
+ /* Mode specific analogue gain limits */
+ double minAnalogueGain;
+ double maxAnalogueGain;
};