From: Andy Walls <awalls@md.metrocast.net>
To: Jean-Francois Moine <moinejf@free.fr>
Cc: Ondrej Zary <linux@rainbow-software.org>, linux-media@vger.kernel.org
Subject: Re: SPCA1527A/SPCA1528 (micro)SD camera in webcam mode
Date: Sun, 30 May 2010 22:36:30 -0400 [thread overview]
Message-ID: <1275273390.4863.30.camel@localhost> (raw)
In-Reply-To: <20100530201343.223a10bd@tele>
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
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@rainbow-software.org> 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 #2: test1.jpg --]
[-- Type: image/jpeg, Size: 29565 bytes --]
[-- Attachment #3: jpeghdr.txt --]
[-- Type: text/plain, Size: 3150 bytes --]
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 ..............?.
next prev parent reply other threads:[~2010-05-31 2:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-29 17:09 SPCA1527A/SPCA1528 (micro)SD camera in webcam mode Ondrej Zary
2010-05-29 18:24 ` Jean-Francois Moine
2010-05-29 19:32 ` Ondrej Zary
2010-05-30 11:34 ` Jean-Francois Moine
2010-05-30 17:55 ` Ondrej Zary
2010-05-30 18:13 ` Jean-Francois Moine
2010-05-31 2:36 ` Andy Walls [this message]
2010-05-31 3:15 ` Theodore Kilgore
2010-05-30 19:26 ` Andy Walls
2010-05-30 21:28 ` Ondrej Zary
2010-05-30 21:58 ` Andy Walls
2010-05-30 22:03 ` Ondrej Zary
2010-05-31 3:06 ` Theodore Kilgore
2010-05-31 7:19 ` Jean-Francois Moine
2010-05-31 7:56 ` Ondrej Zary
2010-05-31 12:43 ` Andy Walls
2010-05-30 18:30 ` Andy Walls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1275273390.4863.30.camel@localhost \
--to=awalls@md.metrocast.net \
--cc=linux-media@vger.kernel.org \
--cc=linux@rainbow-software.org \
--cc=moinejf@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox