Re: SPCA1527A/SPCA1528 (micro)SD camera in webcam mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2010-05-30 at 20:13 +0200, Jean-Francois Moine wrote:
> On Sun, 30 May 2010 19:55:22 +0200
> Ondrej Zary <linux@xxxxxxxxxxxxxxxxxxxx> wrote:
> 
> > That's bad...
> > 
> > The driver contains file sp5x_32.dll which is registered in
> > system.ini file as [drivers32]
> > VIDC.SP54=SP5X_32.DLL
> > 
> > Seems that the codec is called SP54 - hope that it's used to
> > decompress the data.
> > 
> > > All I can do is to code the driver and let you or anyone find the
> > > decompression function...
> > 
> > Maybe we can dump some data, create AVI file from that and try to
> > decode the file using that codec.
> 
> It is easy to get images from the usbsnoop files. I join an image
> extracted from your file usbsnoop-video-capture-640x480.log. If you
> want more images, they are in IsoPackets. The first 2 bytes of each isoc
> packet mean:
> - '02 80' or '02 81': first of intermediate part of the image ('0' or
>   '1' is the image sequence number)
> - '02 82' or '02 83': last part of the image
> 
> Someone had an idea to try and guess the compression algorithm: do
> usbsnoop's with full black and full white images. But this idea did not
> work with the other webcam: the images were quite the same!

I have attached an image I constructed from the image data file you
provided, the MJPEG headers in the AVI file Ondrej provided, and the
Huffman table in the jpeg.h file in the gspca driver.

If you zoom in, there is an small pattern in the top left portion of the
scan.

I doesn't look quite like an whole image, but it does look like the
start of one.

Regards,
Andy


Attachment: test1.jpg
Description: JPEG image

0000000: ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 01  ......JFIF......
0000010: 00 01 00 00 ff db 00 c5 00 0a 07 07 08 07 06 0a  ................
0000020: 08 08 08 0b 0a 0a 0b 0e 18 10 0e 0d 0d 0e 1d 15  ................
0000030: 16 11 18 23 1f 25 24 22 1f 22 21 26 2b 37 2f 26  ...#.%$"."!&+7/&
0000040: 29 34 29 21 22 30 41 31 34 39 3b 3e 3e 3e 25 2e  )4)!"0A149;>>>%.
0000050: 44 49 43 3c 48 37 3d 3e 3b 01 0a 0b 0b 0e 0d 0e  DIC<H7=>;.......
0000060: 1c 10 10 1c 3b 28 22 28 3b 3b 3b 3b 3b 3b 3b 3b  ....;("(;;;;;;;;
0000070: 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b  ;;;;;;;;;;;;;;;;
0000080: 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b  ;;;;;;;;;;;;;;;;
0000090: 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 02 17 18 18 24 21  ;;;;;;;;;;....$!
00000a0: 24 47 26 26 47 99 66 56 66 99 99 99 99 99 99 99  $G&&G.fVf.......
00000b0: 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99  ................
00000c0: 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99 99  ................
00000d0: 99 99 99 99 99 99 99 99 99 99 99 ff c4 01 a2 00  ................
00000e0: 00 01 05 01 01 01 01 01 01 00 00 00 00 00 00 00  ................
00000f0: 00 01 02 03 04 05 06 07 08 09 0a 0b 01 00 03 01  ................
0000100: 01 01 01 01 01 01 01 01 00 00 00 00 00 00 01 02  ................
0000110: 03 04 05 06 07 08 09 0a 0b 10 00 02 01 03 03 02  ................
0000120: 04 03 05 05 04 04 00 00 01 7d 01 02 03 00 04 11  .........}......
0000130: 05 12 21 31 41 06 13 51 61 07 22 71 14 32 81 91  ..!1A..Qa."q.2..
0000140: a1 08 23 42 b1 c1 15 52 d1 f0 24 33 62 72 82 09  ..#B...R..$3br..
0000150: 0a 16 17 18 19 1a 25 26 27 28 29 2a 34 35 36 37  ......%&'()*4567
0000160: 38 39 3a 43 44 45 46 47 48 49 4a 53 54 55 56 57  89:CDEFGHIJSTUVW
0000170: 58 59 5a 63 64 65 66 67 68 69 6a 73 74 75 76 77  XYZcdefghijstuvw
0000180: 78 79 7a 83 84 85 86 87 88 89 8a 92 93 94 95 96  xyz.............
0000190: 97 98 99 9a a2 a3 a4 a5 a6 a7 a8 a9 aa b2 b3 b4  ................
00001a0: b5 b6 b7 b8 b9 ba c2 c3 c4 c5 c6 c7 c8 c9 ca d2  ................
00001b0: d3 d4 d5 d6 d7 d8 d9 da e1 e2 e3 e4 e5 e6 e7 e8  ................
00001c0: e9 ea f1 f2 f3 f4 f5 f6 f7 f8 f9 fa 11 00 02 01  ................
00001d0: 02 04 04 03 04 07 05 04 04 00 01 02 77 00 01 02  ............w...
00001e0: 03 11 04 05 21 31 06 12 41 51 07 61 71 13 22 32  ....!1..AQ.aq."2
00001f0: 81 08 14 42 91 a1 b1 c1 09 23 33 52 f0 15 62 72  ...B.....#3R..br
0000200: d1 0a 16 24 34 e1 25 f1 17 18 19 1a 26 27 28 29  ...$4.%.....&'()
0000210: 2a 35 36 37 38 39 3a 43 44 45 46 47 48 49 4a 53  *56789:CDEFGHIJS
0000220: 54 55 56 57 58 59 5a 63 64 65 66 67 68 69 6a 73  TUVWXYZcdefghijs
0000230: 74 75 76 77 78 79 7a 82 83 84 85 86 87 88 89 8a  tuvwxyz.........
0000240: 92 93 94 95 96 97 98 99 9a a2 a3 a4 a5 a6 a7 a8  ................
0000250: a9 aa b2 b3 b4 b5 b6 b7 b8 b9 ba c2 c3 c4 c5 c6  ................
0000260: c7 c8 c9 ca d2 d3 d4 d5 d6 d7 d8 d9 da e2 e3 e4  ................
0000270: e5 e6 e7 e8 e9 ea f2 f3 f4 f5 f6 f7 f8 f9 fa ff  ................
0000280: c0 00 11 08 01 e0 02 80 03 01 21 00 02 11 01 03  ..........!.....
0000290: 11 01 ff da 00 0c 03 01 00 02 11 03 11 00 3f 00  ..............?.

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux