summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/camera_sensor_helper.h
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-06-28 21:55:00 +0200
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-07-09 21:20:22 +0200
commitf23f3922b31651812c6c9da85023bd68c18d89b0 (patch)
tree9d627acffd3de92675f690fd3046b6307e8a794b /src/ipa/libipa/camera_sensor_helper.h
parent89219aea936b23cabb03204e80dcf958f3474e32 (diff)
ipa: libipa: Fixups in CameraSensorHelpers
A few lines needed to be wrapped under 80 lines. Remove some unneeded documentation and minor typos. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/camera_sensor_helper.h')
-rw-r--r--src/ipa/libipa/camera_sensor_helper.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h
index 1c47e8d5..a7e4ab3b 100644
--- a/src/ipa/libipa/camera_sensor_helper.h
+++ b/src/ipa/libipa/camera_sensor_helper.h
@@ -30,8 +30,8 @@ public:
protected:
enum AnalogueGainType {
- AnalogueGainLinear = 0,
- AnalogueGainExponential = 2,
+ AnalogueGainLinear,
+ AnalogueGainExponential,
};
struct AnalogueGainConstants {
@@ -60,24 +60,26 @@ public:
static std::vector<CameraSensorHelperFactory *> &factories();
protected:
- LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraSensorHelperFactory)
virtual CameraSensorHelper *createInstance() = 0;
+private:
+ LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraSensorHelperFactory)
+
std::string name_;
};
-#define REGISTER_CAMERA_SENSOR_HELPER(name, helper) \
-class helper##Factory final : public CameraSensorHelperFactory \
-{ \
-public: \
- helper##Factory() : CameraSensorHelperFactory(name) {} \
- \
-private: \
- CameraSensorHelper *createInstance() \
- { \
- return new helper(); \
- } \
-}; \
+#define REGISTER_CAMERA_SENSOR_HELPER(name, helper) \
+class helper##Factory final : public CameraSensorHelperFactory \
+{ \
+public: \
+ helper##Factory() : CameraSensorHelperFactory(name) {} \
+ \
+private: \
+ CameraSensorHelper *createInstance() \
+ { \
+ return new helper(); \
+ } \
+}; \
static helper##Factory global_##helper##Factory;
} /* namespace ipa */