summaryrefslogtreecommitdiff
path: root/src/ipa
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-07-15 12:17:09 +0200
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-07-15 17:27:33 +0200
commitea0b199da79e069c7160fb695956ef08787c6913 (patch)
tree0ce7300ae35f5ac31e8570d490d0a99adf2f2d1d /src/ipa
parentbda10cae5e92e21b9865578298eb7b01f095802d (diff)
libipa: Correct OV5670 CameraSensorHelper gain values
The datasheet states that the low 7 bits are fraction bits. real_gain = GainCode/128 For example, 0x080 is 1x gain, 0x100 is 2x gain. It means that we should have m0=1 and c1=128. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa')
-rw-r--r--src/ipa/libipa/camera_sensor_helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
index 17e4f0b2..709835a8 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -300,7 +300,7 @@ class CameraSensorHelperOv5670 : public CameraSensorHelper
public:
CameraSensorHelperOv5670()
{
- analogueGainConstants_ = { AnalogueGainLinear, 1, 0, 0, 256 };
+ analogueGainConstants_ = { AnalogueGainLinear, 1, 0, 0, 128 };
}
};
REGISTER_CAMERA_SENSOR_HELPER("ov5670", CameraSensorHelperOv5670)