I am not sure what am I doing wrong, but for now I can not get the OV2640 camera to create a proper jpeg file. Sometime works, sometime not…
Plus, the OV2640 is very expensive, changing from raw to jpeg is slow as I need to load a different set of registries, etc.
So I started to write my own compression algorithm. There is no way to get a jpeg encoder running on any of my boards and I went for a simple RLE instead. So far looks promising: a simple Lossy RLE algorithm help me reduce the size by 50-70%. I am still working on the “decompression” code but so far looks promising. Attached is a “compressed” image @ 160 x 120 in B&W captured with PROCESSING:
Can’t wait to get everything working so I can test the video streaming :)