summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Fricke <sebastian.fricke@posteo.net>2021-04-14 20:02:56 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-04-15 01:52:54 +0300
commit47a159234f5fc0c166baba430e4b38cd096f1d3b (patch)
tree5413fdb42d4c8defe527d5a868333800b2e63251 /src
parentdf1d955d24d113771bd8fedc3bde7f230c059fb7 (diff)
ipa: raspberrypi: cam_helper: Remove duplicate words
Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/ipa/raspberrypi/cam_helper.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/cam_helper.hpp b/src/ipa/raspberrypi/cam_helper.hpp
index 1b2d6eec..eaf73019 100644
--- a/src/ipa/raspberrypi/cam_helper.hpp
+++ b/src/ipa/raspberrypi/cam_helper.hpp
@@ -16,8 +16,8 @@
namespace RPiController {
// The CamHelper class provides a number of facilities that anyone trying
-// trying to drive a camera will need to know, but which are not provided by
-// by the standard driver framework. Specifically, it provides:
+// to drive a camera will need to know, but which are not provided by the
+// standard driver framework. Specifically, it provides:
//
// A "CameraMode" structure to describe extra information about the chosen
// mode of the driver. For example, how it is cropped from the full sensor
l kwb">double _B = 0) : R(_R), G(_G), B(_B) { } double R, G, B; RGB &operator+=(RGB const &other) { R += other.R, G += other.G, B += other.B; return *this; } }; struct IspStatsRegion { unsigned int counted; unsigned int uncounted; unsigned long long rSum; unsigned long long gSum; unsigned long long bSum; }; struct AwbStatus { double temperatureK; double redGain; double greenGain; double blueGain; }; private: void generateZones(std::vector<RGB> &zones); void generateAwbStats(const ipu3_uapi_stats_3a *stats); void clearAwbStats(); void awbGreyWorld(); uint32_t estimateCCT(double red, double green, double blue); struct ipu3_uapi_grid_config awbGrid_; std::vector<RGB> zones_; IspStatsRegion awbStats_[kAwbStatsSizeX * kAwbStatsSizeY]; AwbStatus asyncResults_; }; } /* namespace ipa::ipu3 */ } /* namespace libcamera*/ #endif /* __LIBCAMERA_IPU3_AWB_H__ */