Repository navigation
perf(camera): 30 fps viewfinder and the IMX766 gain model on the Jolla - #113
Open
patrickjquinn wants to merge 2 commits into
Open
patrickjquinn wants to merge 2 commits into
patrickjquinn wants to merge 2 commits into
Conversation
The software ISP's exposure control lengthens the frames to 66 ms in a dim room, so the viewfinder fell to 15 fps. Ask for a 33.3 ms frame duration for the viewfinder and the photo's frames: the exposure stays within one frame and a dim scene takes more gain instead. On the Jolla Phone's IMX766 with the libcamera from this branch, the viewfinder (1400x1050) ran at 30.0 fps with no frame lost over 360 frames, measured in the app.
…ixel sensor (r6) - 0037: sample at most 128 line pairs for the statistics. On the Jolla Phone the statistics read each 4096x3072 frame from uncached CAMSV memory in 127 ms, every fourth frame; now 17 ms. The Camera app's viewfinder went from 23.6 fps to 30.0 fps, with no frame lost, and the GPU debayer plus statistics from 37.5 to 12.2 ms a frame. - 0038: ask for cacheable MMAP buffers (V4L2_MEMORY_FLAG_NON_COHERENT); drivers that don't allow cache hints ignore it. CAMSV allows them from linux-mt6858 r27. - 0039: the IMX766's analogue gain is 16384 / (16384 - code), as in MediaTek's driver; with the 1024-based model the AGC believed it ran 16x while the sensor stayed near 1x (raw levels measured on the phone at 1x, 4x and 16x were the same), so frames came out grey and dark.
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.
Stacked on #106 (camera selection). Part one of the Jolla Phone camera quality work; the kernel half (IMX766 binned mode, IMX766 gain range, CAMSV cacheable buffers, linux-mt6858 r27) is a separate PR on the r26 series.
What was wrong
Changes
Measured on the Jolla (IMX766, app viewfinder 1400x1050)
Fps was measured from frame timestamps in the app, with a temporary counter that is not in this PR.
Not in this PR