This uses the turboJpeg library to do a decoding of a compressed jpeg to yuyv. TurboJpeg already converts the jpeg image to YUYV which is YUV 4:2:2 which is totally awesome since that is what we want!!
Can get libjpeg which comes with turboJpeg here and then do:
sudo dpkg -i
libjpeg-turbo-official_1.4.1_i386.deb
To compile your stuff check out the makefile. Mainly do:
gcc drew.c /opt/libjpeg-turbo/lib32/libturbojpeg.a -I /opt/libjpeg-turbo/include/
So, it looks like it should be easy to add in this to get the speed up for our camera.
It was easy to use, however I only got 15 frames/second! We need around 30 fps. 🙁
UPDATE: I got 30fps we are doing auto exposure which was slowing it down!!