public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* libv4l: Possibility of changing the current pixelformat on the fly
@ 2009-04-04 20:22 Erik Andrén
  2009-04-05  9:08 ` Hans de Goede
  2009-04-05 17:52 ` Jean-Francois Moine
  0 siblings, 2 replies; 11+ messages in thread
From: Erik Andrén @ 2009-04-04 20:22 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Linux Media Mailing List

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

While trying to get hflip and vflip working for the stv06xx webcam
bridge coupled to the vv6410 sensor I've come across the following
problem.

When flipping the image horizontally, vertically or both, the sensor
pixel ordering changes. In the m5602 driver I was able to compensate
for this in the bridge code. In the stv06xx I don't have this
option. One way of solving this problem is by changing the
pixelformat on the fly, i. e V4L2_PIX_FMT_SGRB8 is the normal
format. When a vertical flip is required, change the format to
V4L2_SBGGR8.

My current understanding of libv4l is that it probes the pixelformat
  upon device open. In order for this to work we would need either
poll the current pixelformat regularly or implement some kind of
notification mechanism upon a flipping request.

What do you think is this the right way to go or is there another
alternative.

Best regards,
Erik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknXwXcACgkQN7qBt+4UG0GVfwCfQjWjSu2fdyrgl3BRGlum3cJi
aFAAoKBrKtTezxcnAbmmvM1cLpYOWvvf
=4D37
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-04-06  7:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-04 20:22 libv4l: Possibility of changing the current pixelformat on the fly Erik Andrén
2009-04-05  9:08 ` Hans de Goede
2009-04-05 11:26   ` Erik Andrén
2009-04-05 12:35     ` Hans de Goede
2009-04-05 12:58       ` Erik Andrén
2009-04-05 14:10         ` Hans de Goede
2009-04-05 16:53       ` Theodore Kilgore
2009-04-06  8:00         ` Hans de Goede
2009-04-05 17:52 ` Jean-Francois Moine
2009-04-05 18:53   ` Erik Andrén
2009-04-05 19:02   ` Theodore Kilgore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox