check this out

15 views
Skip to first unread message

Brian Johnson

unread,
May 2, 2009, 6:18:10 PM5/2/09
to micr...@googlegroups.com
Look at this attached picture I captured using cheese. Pay attention
to the size of the image :-)
cheese-snapshot.jpg

Vasily Khoruzhick

unread,
May 3, 2009, 2:21:25 AM5/3/09
to micr...@googlegroups.com
On Sunday 03 May 2009 01:18:10 Brian Johnson wrote:
> Look at this attached picture I captured using cheese. Pay attention
> to the size of the image :-)

Cool :) I'm looking forward for sxga support in sn9c20x driver :)

signature.asc

Martin Olsson

unread,
May 3, 2009, 1:02:16 PM5/3/09
to micr...@googlegroups.com
> On Sunday 03 May 2009 01:18:10 Brian Johnson wrote:
>> Look at this attached picture I captured using cheese. Pay attention
>> to the size of the image :-)

Really nice. Which of the webcams are you using?


Martin

Josua Grawitter

unread,
May 3, 2009, 1:13:51 PM5/3/09
to micr...@googlegroups.com
Am Sonntag 03 Mai 2009 00:18:10 schrieb Brian Johnson:
> Look at this attached picture I captured using cheese. Pay attention
> to the size of the image :-)
>
> --~--~---------~--~----~------------~-------~--~----~
> Lets make microdia webcams plug'n play, (currently plug'n pray)
> To post to this group, send email to micr...@googlegroups.com
> Visit us online https://groups.google.com/group/microdia
> -~----------~----~----~----~------~----~------~--~---

I'm impressed. Pray tell - how did you achieve this?

You may remember I concluded this was impossible because the windows driver
cheated in the process (transferrring the SXGA compressed as VGA and
recreating the high resolution by software means). Therefore your
implementation would actually add a feature to our driver which the windows
driver lacks. :)

And of course: stupid me.

GWater

signature.asc

Brian Johnson

unread,
May 3, 2009, 2:42:39 PM5/3/09
to micr...@googlegroups.com
Ok here are they patches i've been working on.

Patch 1:
Fixes bug when you pass a height or width less then the minimum resolution

Patch 2:
Adds in support for ENUM_FRAMESIZES ioctl. This allows applications to
get a list of the supported resolutions. Cheese actually uses this
determine the list of available resolutions.

Patch 3:
This is the patch that actually adds preliminary SXGA support. Right
now it only works at all for ov965x sensors. To add support for other
sensors it is necessary to right a function to switch that sensor
between VGA and SXGA modes. Also mplayer due to a bug in mplayer will
only let you use up 640x480 even when specify a SXGA resolution. This
is due to the way in whcih mplayer sets the width and height
independently of each other. One more thing as of now i can only get
this working with the raw bayer format. When using jpeg I'm getting
frame sizes of about 1k and the S920 format gives frame sizes of 12096
both of which are obviously too small. I'm pretty sure it should be
possible to get this working in the other formats but i've been unable
to get it working in any other format then bayer so far and am not
sure what exactly is wrong.


Greywater are you sure the windows driver actually does that while
looking through the usb log files 62b3 that have been uploaded it
appears that the windows driving while swithching to SXGA mode is
actually writing the same set of values for the windowing on the
bridge that are being used by our driver when set to SXGA mode. Of
course as far as i can it is also using the S920 format as well whcih
i haven;t yet been able to get working.



On Sun, May 3, 2009 at 1:13 PM, Josua Grawitter <grew...@googlemail.com> wrote:
> Am Sonntag 03 Mai 2009 00:18:10 schrieb Brian Johnson:
>> Look at this attached picture I captured using cheese. Pay attention
>> to the size of the image :-)
>>
>> >
0001-Fix-bug-when-setting-resolution-lower-than-lowest-av.patch
0002-Implement-ENUM_FRAMESIZES.patch
0003-Add-support-for-SXGA.patch

Josua Grawitter

unread,
May 4, 2009, 3:07:48 AM5/4/09
to micr...@googlegroups.com
> --~--~---------~--~----~------------~-------~--~----~
> Lets make microdia webcams plug'n play, (currently plug'n pray)
> To post to this group, send email to micr...@googlegroups.com
> Visit us online https://groups.google.com/group/microdia
> -~----------~----~----~----~------~----~------~--~---

I never thought of skipping image processing. I thought JPEG was the only way
to do it properly. (more data -> Compress!)

GWater

signature.asc

Brian Johnson

unread,
May 6, 2009, 11:44:35 AM5/6/09
to micr...@googlegroups.com
Well i pretty sure it should be able to work with both yuv420 and jpeg
as well.. The attached log is a section from the 62b3 that shows the
camera switching to SXGA using the yuv420 format so it should
definitely be possible to get this working with formats other then
bayer i just haven't been able to figure out what i'm doing wrong. One
thing i noted though is that in the 62b3 log file it seems to use
bilinear interpolation for VGA mode and switch to using EDGE
interpolation in SXGA.

Since i can't currently seem to figure out how to fix SXGA mode to
work for formats other then bayer at the moment i've also updated the
current SXGA mode patch to enforce using bayer mode when using SXGA
resolutions. This seems to work well in cheese when i select 1280x1024
the camera switches to bayer output and then if a select 640x480 or
below it will switch back to using yuv420.

Also if no one has any problems i'm going to push the first two
patches tonight after i get back from classes since the second patch
seems to fix a bug with when using cheese.
sxga.log
0001-Add-support-for-SXGA.patch
Reply all
Reply to author
Forward
0 new messages