From 974d503f1d6934082aa2d8cd5f06b266726a144e Mon Sep 17 00:00:00 2001 From: "hans@localhost.localdomain" Date: Sun, 17 Aug 2008 20:13:01 +0200 Subject: libv4l: adjust upside down sensor support for kernel changes From: Hans de Goede libv4l: adjust upside down sensor support for kernel changes Priority: normal Signed-off-by: Hans de Goede --- v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'v4l2-apps/lib/libv4l/libv4lconvert/libv4lconvert-priv.h') 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; -- cgit v1.2.3