[libcamera-devel] [PATCH v2 06/10] ipa: raspberrypi: Add pixel clock rate to the CameraMode structure
Naushir Patuck
naush at raspberrypi.com
Thu Oct 6 15:17:40 CEST 2022
The pixel clock rate will be used in subsequent commits to calculate line
length durations.
Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
Tested-by: Dave Stevenson <dave.stevenson at raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/ipa/raspberrypi/controller/camera_mode.h | 2 ++
src/ipa/raspberrypi/raspberrypi.cpp | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/ipa/raspberrypi/controller/camera_mode.h b/src/ipa/raspberrypi/controller/camera_mode.h
index 6bc35b771946..4cd9712e8c19 100644
--- a/src/ipa/raspberrypi/controller/camera_mode.h
+++ b/src/ipa/raspberrypi/controller/camera_mode.h
@@ -46,4 +46,6 @@ struct CameraMode {
uint32_t maxFrameLength;
/* sensitivity of this mode */
double sensitivity;
+ /* pixel clock rate */
+ uint64_t pixelRate;
};
diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index 9b0ad4361c97..b6289f151677 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -331,6 +331,7 @@ void IPARPi::setMode(const IPACameraSensorInfo &sensorInfo)
mode_.sensorHeight = sensorInfo.activeAreaSize.height;
mode_.cropX = sensorInfo.analogCrop.x;
mode_.cropY = sensorInfo.analogCrop.y;
+ mode_.pixelRate = sensorInfo.pixelRate;
/*
* Calculate scaling parameters. The scale_[xy] factors are determined
--
2.25.1
More information about the libcamera-devel
mailing list