Imx662 fixes - #353
Open
davidplowman wants to merge 4 commits into
Open
Conversation
davidplowman
force-pushed
the
imx662-fixes
branch
from
August 3, 2026 10:20
c989d0e to
d2fd347
Compare
6by9
reviewed
Aug 3, 2026
IMX662 can still share its CamHelper with the IMX290 and other sensors, but requires a frameIntegrationDiff of 6 (as opposed to 2 for the others). The value 2 is invalid for the IMX662 and can lead to bad black level values in HCG (High Conversion Gain) mode. The CamHelperImx290 constructor is refactored slightly to allow the IMX662 version to be created with a custom frameIntegrationDiff. Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Optionally, a PWL (piecewise linear) function can be specified as the black level instead of a constant value. This PWL is evaluated at the current analogue gain for each frame. Tuning files will also accept "black_level_func" as a shorthand for all three channels. Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
At very high gains, the measured black level increases noticeably from the nominal value of 3200. Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
The CT (colour temperature) curve is extended at the bottom end, so that low lightl halogen images are less orange. Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
davidplowman
force-pushed
the
imx662-fixes
branch
from
August 3, 2026 10:52
d2fd347 to
98683ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes to make the IMX662 work better: