Hi Brandon, > An application that I use frequently has just added v4l2 support and > sent me an alpha version to test. I'm using the latest svn version of > the driver and a logitech quickcam for notebooks pro. The camera is > recognized by the application and some video is displayed. However, the > image is just a bunch of garbled grey and color lines. I'm assuming this > is due to the application not supporting an mjpeg stream.
Your webcam supports both MJPEG and a 4:2:2 packed YUV format (YUY2). Depending on your needs, the application can requests either of them (YUY2 requires a higher USB bandwidth, MJPEG is not available for the highest resolutions). It then has to decode the data into whatever format it uses to display video. > Could someone point me to some source code from a project that supports > mjpeg. I won't be able to add support myself as this project is closed > source, but I'm hoping to pass the info along to the developers in the hopes > they'll think it simple enough to add themselves. You could have a look at luvcview which includes an MJPEG decoder. Please note that luvcview is licensed under the GPL, so no code can be copied to your closed-source application. However, it wouldn't be very difficult to use the closed-source compatible jpeg6b library to decode mjpeg data. Cheers, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
