Open
Conversation
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.
Hi,
thanks for starting this. I recently got a "supercamera" and wanted to use it with my laptop instead of my phone...
Here are some things I added in the process.
I wasn't able to load the compiled module into my securely booted kernel, so I used DKMS to sign it for me.
Added a very simple X11 viewer application that fetches and displays JPEG images from
/dev/supercameraat a configurable frame rate.For testing purposes,
/dev/supercamerais now readable by anyone (didn't want to write udev rules yet).Since a new JPEG image is signalled by a new index value, the driver is now able to check for presence of SOI and EOI markers and discards incomplete images on its own. Complete images are made available immediately instead of waiting for a 64k buffer to be filled.
Slow clients are detected and handled gracefully, skipping images.
Instead of streaming data as soon as the camera is plugged in, streaming is started and stopped when the device file is opened/closed.
Since this now more or less does what I need, I probably won't spend more time on it - unless I find out how to switch resolutions ;-)