summaryrefslogtreecommitdiff
path: root/v4l2-apps/test/v4lgrab.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-09-01 18:34:48 -0300
committerHans Verkuil <hverkuil@xs4all.nl>2006-09-01 18:34:48 -0300
commitefb6ed2c83300645cecca27f8b948d6e0380b52d (patch)
tree56a51b1fb7b315a2047d66397a0cda0cbb302e66 /v4l2-apps/test/v4lgrab.c
parent81ff7db1a41de1a7dab9fc096780f8efbe2c19f4 (diff)
downloadmediapointer-dvb-s2-efb6ed2c83300645cecca27f8b948d6e0380b52d.tar.gz
mediapointer-dvb-s2-efb6ed2c83300645cecca27f8b948d6e0380b52d.tar.bz2
Add cropping support to v4l2-ctl, set buf_type in sliced_vbi_cap query.
From: Hans Verkuil <hverkuil@xs4all.nl> VIDIOC_S/G_CROP is now handled by v4l2-ctl. The v4l2_buf_type is now filled in in VIDIOC_G_SLICED_VBI_CAP. Several test tools now compile when v4l1 API is disabled. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/test/v4lgrab.c')
-rw-r--r--v4l2-apps/test/v4lgrab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l2-apps/test/v4lgrab.c b/v4l2-apps/test/v4lgrab.c
index c8d433c1d..07c50ef89 100644
--- a/v4l2-apps/test/v4lgrab.c
+++ b/v4l2-apps/test/v4lgrab.c
@@ -91,6 +91,7 @@ int get_brightness_adj(unsigned char *image, long size, int *brightness)
int main(int argc, char **argv)
{
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
int fd = open(FILE, O_RDONLY), f;
struct video_capability cap;
struct video_window win;
@@ -190,5 +191,8 @@ int main(int argc, char **argv)
}
close(fd);
+#else
+ fprintf(stderr, "V4L1 API is not configured!\n");
+#endif
return 0;
}