diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-08-22 09:13:34 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-08-22 09:13:34 +0200 |
commit | 14eb37189ae76c7f329e1eb00c023198f6b3a33d (patch) | |
tree | aee5dbe14b8b83bc05df688070aa81f0706a1655 /linux/include | |
parent | ff9634945387dde6b9a361d902bbe73d0c1a236e (diff) | |
download | mediapointer-dvb-s2-14eb37189ae76c7f329e1eb00c023198f6b3a33d.tar.gz mediapointer-dvb-s2-14eb37189ae76c7f329e1eb00c023198f6b3a33d.tar.bz2 |
gspca: V4L2_CAP_SENSOR_UPSIDE_DOWN added as a cap for some webcams.
From: Hans de Goede <j.w.r.degoede@hhs.nl>
This patch adds a V4L2_CAP_SENSOR_UPSIDE_DOWN flag to the capabilities flags,
and sets this flag for the Philips SPC200NC cam (which has its sensor installed
upside down). The same flag is also needed and added for the Philips SPC300NC.
Together with a patch to libv4l which adds flipping the image in software this
fixes the upside down display with the SPC200NC cam.
Signed-of-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Priority: high
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/linux/videodev2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/include/linux/videodev2.h b/linux/include/linux/videodev2.h index f3ae9c88e..8ce0d35f0 100644 --- a/linux/include/linux/videodev2.h +++ b/linux/include/linux/videodev2.h @@ -261,6 +261,11 @@ struct v4l2_capability { #define V4L2_CAP_ASYNCIO 0x02000000 /* async I/O */ #define V4L2_CAP_STREAMING 0x04000000 /* streaming I/O ioctls */ +/* This flags gets set if the "sensor" is known to be upside down and this can + *not* be fixed using v4l2 flipx/y controls. Note that absence of this flag + is not a guarantee for the image not being upside down. */ +#define V4L2_CAP_SENSOR_UPSIDE_DOWN 0x10000000 + /* * V I D E O I M A G E F O R M A T */ |