diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2012-04-13 23:34:20 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-04-16 19:44:08 +0200 |
commit | 9cc7f38161269b17cadc8b2fc111a0fbc22f1876 (patch) | |
tree | 7f1da980a8ac15c8c195982f87d43e593194b737 /yavta.c | |
parent | 8cfc2a00fd09536d0e22b9da973bbe9829aaa0d4 (diff) |
Add videodev2.h to allow building on systems without latest kernel headers
Add videodev2.h as part of yavta. The file is to be updated from linux-media
tree manually in the future.
Remove existing format definitions in yavta.c since they are no longer
needed.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'yavta.c')
-rw-r--r-- | yavta.c | 24 |
1 files changed, 1 insertions, 23 deletions
@@ -34,7 +34,7 @@ #include <sys/stat.h> #include <sys/time.h> -#include <linux/videodev2.h> +#include "videodev2.h" #ifndef V4L2_BUF_FLAG_ERROR #define V4L2_BUF_FLAG_ERROR 0x0040 @@ -98,28 +98,6 @@ static const char *v4l2_buf_type_name(enum v4l2_buf_type type) return "Unknown"; } -#ifndef V4L2_PIX_FMT_SGRBG8 /* 2.6.31 */ -#define V4L2_PIX_FMT_SGRBG8 v4l2_fourcc('G', 'R', 'B', 'G') -#endif -#ifndef V4L2_PIX_FMT_SRGGB8 /* 2.6.33 */ -#define V4L2_PIX_FMT_SRGGB8 v4l2_fourcc('R', 'G', 'G', 'B') -#define V4L2_PIX_FMT_SBGGR10 v4l2_fourcc('B', 'G', '1', '0') -#define V4L2_PIX_FMT_SGBRG10 v4l2_fourcc('G', 'B', '1', '0') -#define V4L2_PIX_FMT_SRGGB10 v4l2_fourcc('R', 'G', '1', '0') -#define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ') -#endif -#ifndef V4L2_PIX_FMT_SBGGR12 /* 2.6.39 */ -#define V4L2_PIX_FMT_SBGGR12 v4l2_fourcc('B', 'G', '1', '2') -#define V4L2_PIX_FMT_SGBRG12 v4l2_fourcc('G', 'B', '1', '2') -#define V4L2_PIX_FMT_SGRBG12 v4l2_fourcc('B', 'A', '1', '2') -#define V4L2_PIX_FMT_SRGGB12 v4l2_fourcc('R', 'G', '1', '2') -#define V4L2_PIX_FMT_Y12 v4l2_fourcc('Y', '1', '2', ' ') -#endif -#ifndef V4L2_PIX_FMT_NV24 /* 3.3 */ -#define V4L2_PIX_FMT_NV24 v4l2_fourcc('N', 'V', '2', '4') -#define V4L2_PIX_FMT_NV42 v4l2_fourcc('N', 'V', '4', '2') -#endif - static struct { const char *name; unsigned int fourcc; |