summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/device_status.h
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2022-10-06 14:17:42 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-10-18 03:10:05 +0300
commitdd667e38646928f25c7614bd41b168667f223722 (patch)
tree3b32aab5d26fde24814301e828438b49b8e7dc26 /src/ipa/raspberrypi/controller/device_status.h
parent51ac3e26717a0b06437f74c9ef1f3de76f79bb8e (diff)
ipa: raspberrypi: Add line length to DeviceStatus
Add a lineLength field to the DeviceStatus structure to store the line length used for a particular frame. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Tested-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/device_status.h')
-rw-r--r--src/ipa/raspberrypi/controller/device_status.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipa/raspberrypi/controller/device_status.h b/src/ipa/raspberrypi/controller/device_status.h
index 8f74e21b..4384c214 100644
--- a/src/ipa/raspberrypi/controller/device_status.h
+++ b/src/ipa/raspberrypi/controller/device_status.h
@@ -19,7 +19,7 @@
struct DeviceStatus {
DeviceStatus()
: shutterSpeed(std::chrono::seconds(0)), frameLength(0),
- analogueGain(0.0)
+ lineLength(std::chrono::seconds(0)), analogueGain(0.0)
{
}
@@ -29,6 +29,8 @@ struct DeviceStatus {
libcamera::utils::Duration shutterSpeed;
/* frame length given in number of lines */
uint32_t frameLength;
+ /* line length for the current frame */
+ libcamera::utils::Duration lineLength;
double analogueGain;
/* 1.0/distance-in-metres, or 0 if unknown */
std::optional<double> lensPosition;