From: Jean-Francois Moine <moinejf@free.fr>
To: Hans de Goede <j.w.r.degoede@hhs.nl>
Cc: Linux and Kernel Video <video4linux-list@redhat.com>
Subject: Re: PATCH: gspca-spc200nc-upside-down-v2
Date: Thu, 21 Aug 2008 18:58:57 +0200 [thread overview]
Message-ID: <1219337937.1726.39.camel@localhost> (raw)
In-Reply-To: <48AD72D5.4050408@hhs.nl>
On Thu, 2008-08-21 at 15:51 +0200, Hans de Goede wrote:
> Jean-Francois Moine wrote:
[snip]
> > Well, I looked at various messages in various mail-lists talking about
> > upside down. Sometimes, a webcam may be normal or upside down, or even
> > just mirrored. Two times only (Vimicro 0325 and 0326), they say that the
> > webcam is always upside down. So, is it useful to make a generic code
> > for this specific case?
>
> Yes, as that will make these webcam work out of the box for end users. Please
> stop thinking as a developer for a moment and start thinking as a simple end
> user plugging such a cam into his asus eee pc, which is his first and only
> linux machine. What do you think he will like better, the upside down picture
> or the hey cool I plug in in this cam and it just works (tm) ?
It is possible if some system application (hal?) does the job.
> > For the general case (the webcam may have H or V flip, or both - upside
> > down). The user will see it. If she may use the HFLIP and VFLIP
> > controls, she will get a correct image.
>
> Currently the 4 major (as in more then just a gimmick) end user v4l wewbcam
> programs I'm aware of are:
> ekiga
> cheese
> flash plugin
> skype
>
> And AFAIK (didn't check skype) non of these offer a simple GUI option for the
> user to change vflip / hflip controls. Telling a user to go the cmdline is not
> *userfriendly* and in this scenario is not necessary!
You did not try v4l2ucp?
[snip]
> The reason why I'm spending tons of time on all this webcam stuff, is so that
> end users can just plugin their cam and have it work. If that requires a
> special flag for just these 2 cams so be it and I strongly believe we will
> encounter other cams like this in the future.
[snip]
Sorry, but I am not happy the way it is done. Here is an other proposal.
In the V4L2 spec, VIDIOC_QUERYCTRL returns the controls accepted (or
rejected) by the driver, and also information about these ones. As the
Vimicro/Z-star has no way to change H and V flips, the driver may give
these controls as READ_ONLY and set the control values according to the
device type.
Now, when accessing the device, the V4L library will get the flags and
values of the H and V flip. If HFLIP and VFLIP are settable, the driver
does all the job. If not (HFLIP and VFLIP are READ_ONLY or INVAL), the
library memorizes the control values of the driver (INVAL implies 0) and
also the values asked by the application. Frame decoding is then H
and/or H flipped according to (<driver value> ^ <user value>).
And now, for something completely different! I could not find a MS-win
snoop of these 'upside down' devices (0471:0325 and 0471:0326). I want
to check the initialization sequences and also the format of the frames.
May anybody send one to me? Thank you.
Cheers.
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-08-21 17:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-17 18:10 PATCH: gspca-spc200nc-upside-down-v2 Hans de Goede
2008-08-21 7:49 ` Jean-Francois Moine
2008-08-21 13:51 ` Hans de Goede
2008-08-21 16:58 ` Jean-Francois Moine [this message]
2008-08-21 17:58 ` Hans de Goede
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=1219337937.1726.39.camel@localhost \
--to=moinejf@free.fr \
--cc=j.w.r.degoede@hhs.nl \
--cc=video4linux-list@redhat.com \
/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