From: michel X. <mx...@ma...> - 2003-11-15 19:04:26
|
Hi all, I have implemented a lot of new features for the rawjpeg cameras: spca500a spca504a spca504b and spca533a. All these cameras have now a hardware and a software resolutions The software resolution asked by the userspace are obtain by the first available hardware resolution and a crop function.Only the surface need by the user space is decoded (crop is in the IDCT loop). The available resolutions are: pal 384x288, sif 352x288, cif 320x240, qpal 192x144 and qsif 176x144. vga 640x480 is available for the cam able todo that. A tasklet is schedule in the interrupt handler to perform the decoding in "safe times" this feature allow to play with rgb16 rgb24 rgb32 and yuv in full size full frame rate without garbage (you need a good computer i686). If the isoc stream is corrupted a feature drop the corrupted frame and recycled the buffer for a new one. The code source is available at http://mxhaard.free.fr for testing please feedback are wellcome:) Enjoy!! -- Michel Xhaard -------------------------------- Interface WebMail / Magic OnLine http://www.magic.fr |