summaryrefslogtreecommitdiff
path: root/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
diff options
context:
space:
mode:
authorhans@localhost.localdomain <hans@localhost.localdomain>2008-08-26 12:55:08 +0200
committerhans@localhost.localdomain <hans@localhost.localdomain>2008-08-26 12:55:08 +0200
commit3c90fa3fdd5124cd269e5ac1798f10c3c3cf34d1 (patch)
tree0293a3f101f67c3a9bf180ecfa04435458c229ab /v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
parenta15825844ed72e4b0f13e10de4b7dd0ce31846ac (diff)
downloadmediapointer-dvb-s2-3c90fa3fdd5124cd269e5ac1798f10c3c3cf34d1.tar.gz
mediapointer-dvb-s2-3c90fa3fdd5124cd269e5ac1798f10c3c3cf34d1.tar.bz2
libv4l: Fully handle upside down cam detection in userspace
From: Hans de Goede <j.w.r.degoede@hhs.nl> libv4l: Fully handle upside down cam detection in userspace 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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h b/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
index cd0a781c7..915c33283 100644
--- a/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
+++ b/v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h
@@ -59,26 +59,27 @@
#define V4L2_PIX_FMT_SRGGB8 v4l2_fourcc('R','G','G','B')
#endif
-#ifndef V4L2_CAP_SENSOR_UPSIDE_DOWN
-#define V4L2_CAP_SENSOR_UPSIDE_DOWN 0x10000000
-#endif
-
#define V4LCONVERT_ERROR_MSG_SIZE 256
#define V4LCONVERT_ERR(...) \
snprintf(data->error_msg, V4LCONVERT_ERROR_MSG_SIZE, \
"v4l-convert: error " __VA_ARGS__)
+#define V4LCONVERT_UPSIDE_DOWN 0x01
struct v4lconvert_data {
int fd;
+ int flags; /* bitfield */
int supported_src_formats; /* bitfield */
- unsigned int capabilities;
unsigned int no_formats;
char error_msg[V4LCONVERT_ERROR_MSG_SIZE];
struct jdec_private *jdec;
};
+struct v4lconvert_flags_info {
+ const char *card;
+ int flags;
+};
void v4lconvert_yuv420_to_rgb24(const unsigned char *src, unsigned char *dst,
int width, int height);