From: Thomas Kaiser <v4l@kaiser-linux.li>
To: Linux Media <linux-media@vger.kernel.org>
Subject: [Fwd: Re: Topro 6800 driver]
Date: Fri, 06 Mar 2009 22:38:01 +0100 [thread overview]
Message-ID: <49B197B9.8040506@kaiser-linux.li> (raw)
Sorry, did not send it to linux-media@vger.kernel.org.
-------- Original Message --------
Subject: Re: Topro 6800 driver
Date: Fri, 06 Mar 2009 22:24:55 +0100
From: Thomas Kaiser <v4l@kaiser-linux.li>
To: Anders Blomdell <anders.blomdell@control.lth.se>
CC: video4linux-list@redhat.com
References: <49A8661A.4090907@control.lth.se>
Hello Anders
Anders Blomdell wrote:
> Hi,
>
> I'm trying to write a driver for a webcam based on Topro TP6801/CX0342
> (06a2:0003). My first attempt (needs gspca) can be found on:
I own a cam with a TP6810 USB bridge and a CX0342 sensor (this is
written on the driver CD).
>
> http://www.control.lth.se/user/andersb/tp6800.c
>
> Unfortunately the JPEG images (one example dump is in
> http://www.control.lth.se/user/andersb/topro_img_dump.txt), seems to be bogus,
> they start with (data is very similar to windows data):
>
> 00000000: 0xff,0xd8,0xff,0xfe,0x28,0x3c,0x01,0xe8,...
> ...
> 0000c340: ...,0xf4,0xc0,0xff,0xd9
>
> Anybody who has a good idea of how to find a DQT/Huffman table that works with
> this image data?
I did some usbsnoops today and see some similar things in the stream as
in your trace. Maybe you can comment on my observation?
When I stop the capturing, the las 2 Bytes are always 0xff 0xd9 which
look like a valid JPEG marker (End of Image)
When I search for 0xffd9, I see the following sequence:
FF D9 5x FF D8 FF FE 14 1E xx xx xx
- 5x is 55 or 5A
- the 3 xx are mostly the same, but they change a lot when I cover the
lens of the cam. So I think this is some image information (brightness?).
This said, i don't think that FF D8 and FF FE are JPEG markers, just a
unique Byte pattern to mark the start of a new frame.
I guess 5x FF D8 FF FE 14 1E xx xx xx and may be some more bytes is the
frame marker.
Comments?
Thomas
next reply other threads:[~2009-03-06 21:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-06 21:38 Thomas Kaiser [this message]
2009-03-06 22:29 ` [Fwd: Re: Topro 6800 driver] Thomas Kaiser
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=49B197B9.8040506@kaiser-linux.li \
--to=v4l@kaiser-linux.li \
--cc=linux-media@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.