From 32677e122008f1c06d1712a5e869d355a57067d9 Mon Sep 17 00:00:00 2001 From: Jean-Michel Hautbois Date: Mon, 7 Jun 2021 14:05:44 +0200 Subject: ipa: Create a camera sensor helper class For various sensor operations, it may be needed to do sensor specific computations, like analogue gain or vertical blanking. This commit introduces a new camera sensor helper in libipa which aims to solve this specific issue. It is based on the MIPI alliance Specification for Camera Command Set and implements, for now, only the analogue "Global gain" mode. Setting analogue gain for a specific sensor is not a straightforward operation, as one needs to know how the gain is calculated for it. Three helpers are created in this patch: imx219, ov5670 and ov5693. Adding a new sensor is pretty straightforward as one only needs to implement the sub-class for it and register that class to the CameraSensorHelperFactory. Signed-off-by: Jean-Michel Hautbois Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Umang Jain --- src/ipa/libipa/meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ipa/libipa/meson.build') diff --git a/src/ipa/libipa/meson.build b/src/ipa/libipa/meson.build index ca541a5a..3fda7c00 100644 --- a/src/ipa/libipa/meson.build +++ b/src/ipa/libipa/meson.build @@ -2,11 +2,13 @@ libipa_headers = files([ 'algorithm.h', + 'camera_sensor_helper.h', 'histogram.h' ]) libipa_sources = files([ 'algorithm.cpp', + 'camera_sensor_helper.cpp', 'histogram.cpp' ]) -- cgit v1.2.1