On Sun, 1 Mar 2009 17:33:32 +0100 Thomas Champagne <lafeuil@xxxxxxxxx> wrote: > I have already tried to create a module for my webcam (Topro TP6800). > It have the same usb id (06a2:0003). > But I have the same problem as you about the image data. I don't know > what is the comment tag (FF:FE). I tried to skip the tag or to skip > the comment with the length after this tag but the image is never > good. I don't know where start the image. If you want an example of > the bad result you can download this image : > http://lafeuil.free.fr/webcam/images/1.jpg > So, I am also in the dark. Hi Thomas and Anders, I add a look at your image (the samplesY is odd) and also at some other ones in the USB snoop you sent me, and, yes, the exact start and the parameters of the image are not easy to find. I tried to ignore the first 7 to 25 bytes without any success. The image samplesY should be 0x21 (it is not 0x22 - can it be something else?). If the webcam can record photos or if the MS-win driver could output raw images, it would help. Is it possible? The last solution is to trace the tiny JPEG decoder changing the input offset until it does not see error of the Huffman code anymore... Cheers. -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html