-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MJPEG on UVC #1668
Conversation
Would you see if this PR is useful or not for your application which indicated #1118 (comment) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only checked the descriptors and class files as that is what I used in my setup. Some type consistency changes that also affect the functionality. Regardless, it runs fine on my setup, tested on LPC55S69 (using #1676).
@tswan-quasi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superb! Thank you very much for yet another great PR. And thank @tswan-quasi for helping with reviewing. To be honest, I am still not catching up with UVC
Describe the PR
Add support for MJPEG on UVC.
It is tested with
video_capture
example onfrdm_kl25z
andraspberry pi pico
Additional context
video_capture
uses MJPG video instead of uncompressed video when it builds withCFG_EXAMPLE_VIDEO_READONLY
defined.If a MCU has not enough SRAM for frame buffers,
CFG_EXAMPLE_VIDEO_READONLY
is already defined inboard.mk
athw/bsp/<board>
. For example,frdm_kl25z
and so on. Any other MCU which has enough SRAM for frame buffers use uncompressed video in default. To force the use of MJPG video, add theFORCE_READONLY
argument to make or cmake.For example: