@@ -958,6 +958,30 @@ public:
};
REGISTER_CAMERA_SENSOR_HELPER(CameraSensorHelperOv13858, "ov13858")
+class CameraSensorHelperS5k5e8 : public CameraSensorHelper
+{
+public:
+ CameraSensorHelperS5k5e8()
+ {
+ /*
+ * Black level measured on the Xiaomi Redmi Note 4X (mido):
+ * dark frame at minimum exposure and 1.0x gain, median 64
+ * at 10 bits (mean 64.14); 64 << 6 = 4096 at 16 bits.
+ */
+ blackLevel_ = 4096;
+ /*
+ * Linear analogue gain, gain = code / 32: the kernel driver
+ * passes the raw code (0x20 = 1.0x to 0x200 = 16.0x) to
+ * register 0x0204. Spot-checked on mido: stepping gain
+ * 32 -> 128 (1.0x -> 4.0x) raised the net signal from 18.1
+ * to 73.5, i.e. 4.06x measured for 4.00x requested.
+ */
+ gain_ = AnalogueGainLinear{ 1, 0, 0, 32 };
+ exposureMargin_ = 4;
+ }
+};
+REGISTER_CAMERA_SENSOR_HELPER(CameraSensorHelperS5k5e8, "s5k5e8")
+
class CameraSensorHelperVd55g1 : public CameraSensorHelper
{
public:
Add CameraSensorHelper implementation for the Samsung S5K5E8 5MP CMOS image sensor with hardware-verified 10-bit 0x40 black level (4096 in 16-bit), linear analogue gain (x/32), and 4-line exposure margin. Signed-off-by: Tuan Kiet Huynh <huynhtuankiet33@gmail.com> --- src/ipa/libipa/camera_sensor_helper.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)