linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Kaiser <v4l@kaiser-linux.li>
To: Anders Blomdell <anders.blomdell@control.lth.se>
Cc: Linux Media <linux-media@vger.kernel.org>
Subject: Re: Topro 6800 driver
Date: Wed, 11 Mar 2009 20:11:22 +0100	[thread overview]
Message-ID: <49B80CDA.8000903@kaiser-linux.li> (raw)
In-Reply-To: <49B7D41B.4040801@control.lth.se>

[-- Attachment #1: Type: text/plain, Size: 2766 bytes --]

Anders Blomdell wrote:
> Thomas Kaiser wrote:
>> Hello Anders
>>
>> Anders Blomdell wrote:
>>> Thomas Kaiser wrote:
>>>> Hello Anders
>>>>
>>>> Anders Blomdell wrote:
>>>>> Thomas Kaiser wrote:
>>>>> which indicates that both DQT and Huffman is present in the stream.
>>>> It is _not_ present in the stream.
>>> Then I don't understand where it comes from...
>> I do, because I implemented it into gspca V1 ;-)
>>
>> The cam only streams the picture data. To code the stream a _static_ 
>> JPEG header is used. The cam and the driver know this header. Therefor, 
>> the driver just builds a valid JPEG image with the known header and the 
>> stream from the cam.
>>
>>>> Anyway I did not found time to try with the JPEG header from PAC7311.
>>>> And I have to apologize because I did not tell you what work I did for 
>>>> the PAC7311. See this: http://www.kaiser-linux.li/index.php?title=PAC7311
>>>>
>>>> You should find the PAC7311 JPEG header in this source:
>>>> http://www.kaiser-linux.li/files/PAC7311/gspcav1-PAC7311-20070425.tar.gz
>>> Will look into it.
>> Check decoder/gspcadecoder.c and search for pac7311_jpeg_header.
>>
>>>>>> Anyway PAC7311 is working AFAIK.
>>>>> Which doesn't contradict that it's encoded in the stream from the camera.
>>>> BTW, can you send me the header and some Bytes from your stream, the 02 
>>>> 8a 00 a2 80 28 a0 0a 28 thing. As ASCII in Email is OK.
>>> The entire (white?) image is in the attachment (QUALITY=0).
>> I tried the PAC7311 header. See the result in the attached files :-(
> Thanks for trying though.
> 
> I tested some more, and by starting at offset 7 (based on that ff00 indicates
> jpeg stream, and that byte 8 differs between quality 1 & 2, [byte 7 follows
> quality])
> 
>   Size=152d, quality=1
>   ff d8 ff fe 28 3c 01 fc ff 00 45 66 9a 69 a2 95
>   ...
>   Size=152a, quality=2
>   ff d8 ff fe 28 3c 02 f9 55 15 29 a5 52 95 34 a8
> 
> I get img0 with the DQT you found on your installation disk, while img1 is what
> you get with the standard DQT. Could it be that yuv=0,0,0 implies a black image?
> Length is still bogus though, and with yuv != 0 I still get garbage, so I assume
> there is some problem with the huffman coding still!
> 
> I guess what I have to do, is to transform a yuv=0,0,0 image using the 17
> different DQT tables you found and try to generate a huffman table that matches
> that data and the 17 different samples I have (of course this table will have
> unknowns, but it might be a starting point).
> 
> /Anders
> 

Hello Anders

What is the resolution of your black frame?

I changed the component subsampling to 4:2:0 and the image size to 
320x240. No your black frame looks OK :-)

The black one is frameA-1.jpg and I attached my almost white one 
frame5-1.jpg.

Thomas


[-- Attachment #2: frame5-1.jpg --]
[-- Type: image/jpeg, Size: 2140 bytes --]

[-- Attachment #3: frameA-1.jpg --]
[-- Type: image/jpeg, Size: 6020 bytes --]

  reply	other threads:[~2009-03-11 19:11 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-27 22:15 Topro 6800 driver Anders Blomdell
2009-02-28 10:31 ` Jean-Francois Moine
2009-02-28 15:11   ` Anders Blomdell
2009-02-28 15:54     ` Thomas Kaiser
2009-03-01  7:26     ` Jean-Francois Moine
2009-03-01 16:33     ` Thomas Champagne
2009-03-02 13:20       ` Jean-Francois Moine
2009-03-02 16:58         ` Anders Blomdell
2009-02-28 11:54 ` Thomas Kaiser
     [not found] ` <49B194A7.4030808@kaiser-linux.li>
2009-03-09 12:10   ` Anders Blomdell
     [not found]     ` <49B50E16.8080703@kaiser-linux.li>
2009-03-09 14:06       ` Anders Blomdell
2009-03-09 18:51       ` Anders Blomdell
2009-03-09 20:10         ` Thomas Kaiser
2009-03-09 20:29           ` Anders Blomdell
2009-03-09 20:43             ` Thomas Kaiser
     [not found]               ` <49B62023.2090206@control.lth.se>
     [not found]                 ` <49B65BA7.6070700@kaiser-linux.li>
     [not found]                   ` <49B68F34.60802@control.lth.se>
     [not found]                     ` <49B6A495.9060204@kaiser-linux.li>
2009-03-11 15:09                       ` Anders Blomdell
2009-03-11 19:11                         ` Thomas Kaiser [this message]
2009-03-17 20:13                         ` Topro 6800 driver [JPEG decoding solved] Thomas Kaiser
2009-03-18 20:10                           ` Thomas Kaiser
2009-03-18 21:42                             ` Thomas Champagne
2009-03-25 17:10                             ` Anders Blomdell
     [not found]         ` <49B5786D.4060102@kaiser-linux.li>
     [not found]           ` <49B57CB6.8000402@control.lth.se>
2009-03-09 20:38             ` Mail list, Is WIKI up to date? Thomas Kaiser
  -- strict thread matches above, loose matches on Subject: below --
2009-03-27 18:06 topro 6800 driver Andy Shevchenko
     [not found] ` <49CD2868.9080502@kaiser-linux.li>
     [not found]   ` <5ec8ebd50903311144h316c7e3bmd30ce2c3d5a268ee@mail.gmail.com>
     [not found]     ` <49D4EAB2.4090206@control.lth.se>
2009-04-03 20:07       ` Anders Blomdell
2009-04-03 20:54         ` Erik Andrén
2009-04-04 11:29           ` Anders Blomdell
2009-04-05 17:36             ` Jean-Francois Moine
2009-04-20 15:37               ` Thomas Champagne

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=49B80CDA.8000903@kaiser-linux.li \
    --to=v4l@kaiser-linux.li \
    --cc=anders.blomdell@control.lth.se \
    --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 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).