diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2006-04-20 17:29:56 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2006-04-20 17:29:56 +0000 |
commit | 6470f4c597655095c49ade1ebd76bcb6007e333b (patch) | |
tree | bbaa7b364dc275bb427258ecbcb1cedb1c4ee5ee /sys/v4l2/gstv4l2src.c | |
parent | 13ed50b8f2670018daf6d3726a4f777d00944869 (diff) |
Added a couple of ifdefs to make it compile with other kernels.
Original commit message from CVS:
Added a couple of ifdefs to make it compile with other kernels.
Diffstat (limited to 'sys/v4l2/gstv4l2src.c')
-rw-r--r-- | sys/v4l2/gstv4l2src.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index 9a881d36..82fb8756 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -102,7 +102,9 @@ static guint32 gst_v4l2_formats[] = { V4L2_PIX_FMT_HI240, /* see http://www.siliconimaging.com/RGB%20Bayer.htm */ +#ifdef V4L2_PIX_FMT_SBGGR8 V4L2_PIX_FMT_SBGGR8, +#endif /* compressed formats */ V4L2_PIX_FMT_MJPEG, @@ -111,10 +113,17 @@ static guint32 gst_v4l2_formats[] = { V4L2_PIX_FMT_MPEG, /* Vendor-specific formats */ - V4L2_PIX_FMT_WNVA - /* V4L2_PIX_FMT_SN9C10X FIX */ - /* V4L2_PIX_FMT_PWC1 FIX */ - /* V4L2_PIX_FMT_PWC2 FIX */ + V4L2_PIX_FMT_WNVA, + +#ifdef V4L2_PIX_FMT_SN9C10X + V4L2_PIX_FMT_SN9C10X, +#endif +#ifdef V4L2_PIX_FMT_PWC1 + V4L2_PIX_FMT_PWC1, +#endif +#ifdef V4L2_PIX_FMT_PWC2 + V4L2_PIX_FMT_PWC2, +#endif }; |