Web lists-archives.com

Re: [Spca50x-devs] PATCH: gspca-mercurial fix sn9c103 decoding frames




Hi Hans!

Thanks for answering and excuse me for taking so much time to write. I've been very busy this week and had problems with the internet provider.

1) You're getting hit by the unknown codes in the compressed data stream
   problem, see:
   http://bertrik.sikken.nl/webcam/sn9c101.htm

Interesting I'll take a look.

2) You're exposure is way of, I have the same problem with an sn9c102 cam with
   a tas5110c sensor, try using it in a darker room :)

I think that the generic initialization sets a very high exposure. And the image looks like this.
 
3) the bayer pattern of your cam is different, no GBRG, like mine, but perhaps
   BGGR ?
    ....
And then change the line:
          bayer_fmt = V4L2_PIX_FMT_SGBRG8;

To:
          bayer_fmt = V4L2_PIX_FMT_SBGGR8;
 
I've tried this and the image was almost the same, I think the problem is the initialization of the sensor.

I'm playing with different dumps I've made from windows and now I've got a clearer picture, I think It needs a little tweaking now. I also need to clear the code, because I've made patches here and there until it worked. I'm sending a picture of the results.
 
Also interesting with regards to this is to try the sn9c102 driver which
already is part of the kernel together with libv4lconvert? That doesn't have
the headersize problem AFAIK, and also that can give raw bayer in low res
modes, avoiding the unknown compression codes problem.
 
I have plans to do this in the next days, I'll tell you the results.

BTW how are you using libv4lconvert? And have you applied the camorama nugfix
patches which come together with libv4l to camorama.

I'm using libv4lconvert as documented in the README, and it's working. I know because if I don't use the LD_PRELOAD environment variable, the image that appears in camorama (or skype...) is just garbage. The camorama version I'm using is an unpatched one.

Regards,

Andoni

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs