summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
diff options
context:
space:
mode:
authorhans@localhost.localdomain <hans@localhost.localdomain>2008-08-17 20:13:01 +0200
committerhans@localhost.localdomain <hans@localhost.localdomain>2008-08-17 20:13:01 +0200
commit974d503f1d6934082aa2d8cd5f06b266726a144e (patch)
tree5d507bc03fce9133b86d066cb46c859d386d0198 /v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
parenta63e58c8101caacfc5f82b66de79e794adf0ca3a (diff)
downloadmediapointer-dvb-s2-974d503f1d6934082aa2d8cd5f06b266726a144e.tar.gz
mediapointer-dvb-s2-974d503f1d6934082aa2d8cd5f06b266726a144e.tar.bz2
libv4l: adjust upside down sensor support for kernel changes
From: Hans de Goede <j.w.r.degoede@hhs.nl> libv4l: adjust upside down sensor support for kernel changes Priority: normal Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Diffstat (limited to 'v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h')
-rw-r--r--v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h b/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
index 7d8fcc568..0943d7a59 100644
--- a/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
+++ b/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
@@ -55,8 +55,8 @@
#define V4L2_PIX_FMT_SRGGB8 v4l2_fourcc('R','G','G','B')
#endif
-#ifndef V4L2_FMT_FLAG_UPSIDEDOWN
-#define V4L2_FMT_FLAG_UPSIDEDOWN 0x0002
+#ifndef V4L2_CAP_SENSOR_UPSIDE_DOWN
+#define V4L2_CAP_SENSOR_UPSIDE_DOWN 0x10000000
#endif
#define V4LCONVERT_ERROR_MSG_SIZE 256
@@ -69,7 +69,7 @@
struct v4lconvert_data {
int fd;
int supported_src_formats; /* bitfield */
- int format_needs_flip; /* bitfield */
+ unsigned int capabilities;
unsigned int no_formats;
char error_msg[V4LCONVERT_ERROR_MSG_SIZE];
struct jdec_private *jdec;