| Message ID | 20261109-nura-sensors-v1-2-fd93505fe129@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series |
|
| Related | show |
Hi 2026. 11. 09. 23:43 keltezéssel, Gaurav Suman írta: > Add unit cell sizes, test pattern modes and sensor control delays for > the three sensors of the LG G8x ThinQ. Delays of two frames match the > behaviour observed with the simple pipeline handler. How was e.g. vblank delay observed? The simple pipeline handler doesn't set the vblank, have you made some modifications? > > Written with the help of an AI coding assistant (Claude Opus 5.5, > Anthropic); tested on the phone with the softisp IPA. > > Signed-off-by: Gaurav Suman <gauravsuman007@gmail.com> > --- > src/libcamera/sensor/camera_sensor_properties.cpp | 42 +++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > > diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp > index 20cfd0bc11a661f5cb432e4b6f1b4946cfbce756..18ce59e06bf9f43b75b7948f600a78434269d9b2 100644 > --- a/src/libcamera/sensor/camera_sensor_properties.cpp > +++ b/src/libcamera/sensor/camera_sensor_properties.cpp > @@ -221,6 +221,20 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen > }, > .sensorDelays = { }, > } }, > + { "imx363", { /* nura (LG G8x) */ These parameters shouldn't be dependent on the linux distribution in use, so I'd drop these comments. Please next time add a reference to https://lore.kernel.org/all/20261109-sm8150-camera-v1-0-3d2e7b407516@gmail.com/ and similarly important parallel linux changes to provide context. > + .unitCellSize = { 1400, 1400 }, > + .testPatternModes = { > + { controls::draft::TestPatternModeOff, 0 }, > + { controls::draft::TestPatternModeSolidColor, 1 }, > + { controls::draft::TestPatternModeColorBars, 2 }, > + }, > + .sensorDelays = { > + .exposureDelay = 2, > + .gainDelay = 2, > + .vblankDelay = 2, > + .hblankDelay = 2 > + }, > + } }, > { "imx283", { > .unitCellSize = { 2400, 2400 }, > .testPatternModes = {}, > @@ -482,6 +496,34 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen > }, > .sensorDelays = { }, > } }, > + { "s5k3m3", { /* nura (LG G8x) */ > + .unitCellSize = { 1000, 1000 }, > + .testPatternModes = { > + { controls::draft::TestPatternModeOff, 0 }, > + { controls::draft::TestPatternModeSolidColor, 1 }, > + { controls::draft::TestPatternModeColorBars, 2 }, > + }, > + .sensorDelays = { > + .exposureDelay = 2, > + .gainDelay = 2, > + .vblankDelay = 2, > + .hblankDelay = 2 > + }, > + } }, > + { "s5kgd1", { /* nura (LG G8x) */ > + .unitCellSize = { 1600, 1600 }, > + .testPatternModes = { > + { controls::draft::TestPatternModeOff, 0 }, > + { controls::draft::TestPatternModeSolidColor, 1 }, > + { controls::draft::TestPatternModeColorBars, 2 }, > + }, > + .sensorDelays = { > + .exposureDelay = 2, > + .gainDelay = 2, > + .vblankDelay = 2, > + .hblankDelay = 2 > + }, > + } }, > { "ov5693", { > .unitCellSize = { 1400, 1400 }, > .testPatternModes = { >
diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp index 20cfd0bc11a661f5cb432e4b6f1b4946cfbce756..18ce59e06bf9f43b75b7948f600a78434269d9b2 100644 --- a/src/libcamera/sensor/camera_sensor_properties.cpp +++ b/src/libcamera/sensor/camera_sensor_properties.cpp @@ -221,6 +221,20 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen }, .sensorDelays = { }, } }, + { "imx363", { /* nura (LG G8x) */ + .unitCellSize = { 1400, 1400 }, + .testPatternModes = { + { controls::draft::TestPatternModeOff, 0 }, + { controls::draft::TestPatternModeSolidColor, 1 }, + { controls::draft::TestPatternModeColorBars, 2 }, + }, + .sensorDelays = { + .exposureDelay = 2, + .gainDelay = 2, + .vblankDelay = 2, + .hblankDelay = 2 + }, + } }, { "imx283", { .unitCellSize = { 2400, 2400 }, .testPatternModes = {}, @@ -482,6 +496,34 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen }, .sensorDelays = { }, } }, + { "s5k3m3", { /* nura (LG G8x) */ + .unitCellSize = { 1000, 1000 }, + .testPatternModes = { + { controls::draft::TestPatternModeOff, 0 }, + { controls::draft::TestPatternModeSolidColor, 1 }, + { controls::draft::TestPatternModeColorBars, 2 }, + }, + .sensorDelays = { + .exposureDelay = 2, + .gainDelay = 2, + .vblankDelay = 2, + .hblankDelay = 2 + }, + } }, + { "s5kgd1", { /* nura (LG G8x) */ + .unitCellSize = { 1600, 1600 }, + .testPatternModes = { + { controls::draft::TestPatternModeOff, 0 }, + { controls::draft::TestPatternModeSolidColor, 1 }, + { controls::draft::TestPatternModeColorBars, 2 }, + }, + .sensorDelays = { + .exposureDelay = 2, + .gainDelay = 2, + .vblankDelay = 2, + .hblankDelay = 2 + }, + } }, { "ov5693", { .unitCellSize = { 1400, 1400 }, .testPatternModes = {
Add unit cell sizes, test pattern modes and sensor control delays for the three sensors of the LG G8x ThinQ. Delays of two frames match the behaviour observed with the simple pipeline handler. Written with the help of an AI coding assistant (Claude Opus 5.5, Anthropic); tested on the phone with the softisp IPA. Signed-off-by: Gaurav Suman <gauravsuman007@gmail.com> --- src/libcamera/sensor/camera_sensor_properties.cpp | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+)