linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Fwd: Re: Topro 6800 driver]
@ 2009-03-06 21:38 Thomas Kaiser
  2009-03-06 22:29 ` Thomas Kaiser
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Kaiser @ 2009-03-06 21:38 UTC (permalink / raw)
  To: Linux Media

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Fwd: Re: Topro 6800 driver]
  2009-03-06 21:38 [Fwd: Re: Topro 6800 driver] Thomas Kaiser
@ 2009-03-06 22:29 ` Thomas Kaiser
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Kaiser @ 2009-03-06 22:29 UTC (permalink / raw)
  To: Linux Media

Thomas Kaiser wrote:
>> 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 forgot to write that the USB ID of my cam is 06a2:6810.

Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-06 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06 21:38 [Fwd: Re: Topro 6800 driver] Thomas Kaiser
2009-03-06 22:29 ` Thomas Kaiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).