From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: Laurent Pinchart <laurent.pinchart@skynet.be>
Cc: video4linux-list@redhat.com
Subject: Re: RFC: adding a flag to indicate a webcam sensor is installed upside down
Date: Thu, 07 Aug 2008 13:45:12 +0200 [thread overview]
Message-ID: <489AE048.70708@hhs.nl> (raw)
In-Reply-To: <200808071237.47230.laurent.pinchart@skynet.be>
Laurent Pinchart wrote:
> On Thursday 07 August 2008, Hans de Goede wrote:
>> Hi all,
>>
>> I have this Philips SPC 200NC webcam, which has its sensor installed upside
>> down and the sensor does not seem to support flipping the image. So I
>> believe the windows drivers fix this little problem in software.
>>
>> I would like to add a flag somewhere to indicate this to userspace (and then
>> add flipping code to libv4l).
>>
>> I think the best place for this would the flags field of the v4l2_fmtdesc
>> struct. Any other ideas / objections to this?
>
> More often than sensors being mounted upside down in a webcam, what I've noticed frequently is webcam modules being mounted upside down in a laptop screen. There is no way that I'm aware of to check the module orientation based on the USB descriptors only. We will need a pure userspace solution.
>
Interesting, still in my case it can be told from just the usb id (philips
luckily uses its own id's instead of generic id's). So I think in cases were we
can tell it at the kernel level we should set a flag somewhere (and I believe
the flags field of the v4l2_fmtdesc is the best place) to share this knowledge
with userspace.
Then for laptops we will need a detection mechanism probably based on DMI
strings (I feel hal is going to play a role here) and then check for flipx and
y v4l2_ctrl's and if those are not present use software flipping (which I'm
going to implement today for my philips cam).
Hmm, thinking more about the laptop problem, ideally hal would just do the
v4l-ctrl calls itself, so that this happens only once (on plugin) and users can
later override this. And then we would need some kinda hal boolean which libv4l
can query called something like "needs software flip" for the other cases.
Regards,
Hans
p.s.
If someone can ship me a laptop which an upside down mounted cam I'll happily
work on this issue :)
--
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-07 11:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 10:36 RFC: adding a flag to indicate a webcam sensor is installed upside down Hans de Goede
2008-08-07 10:37 ` Laurent Pinchart
2008-08-07 11:45 ` Hans de Goede [this message]
2008-08-08 9:10 ` Jean-Francois Moine
2008-08-08 9:29 ` Hans Verkuil
2008-08-17 12:35 ` Hans de Goede
2008-10-21 10:20 ` Pádraig Brady
2008-10-21 19:38 ` Laurent Pinchart
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=489AE048.70708@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--cc=laurent.pinchart@skynet.be \
--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