From a46dffd0ef5e40f0ef2373e3b2e990624de38674 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 30 Jun 2009 08:57:26 -0300 Subject: v4l2grab: Add an userspace application for webcam testing, using libv4l2 From: Mauro Carvalho Chehab During FISL 10 (Forum Internacional de Software Livre) and the first FudCon Latam (Fedora Users and Developers Conference), while preparing the V4L panel, I and Douglas noticed the need of a very simple application to be an example for developers to test their drivers and to write newer v4l2 applications. So, we come to the idea of creating a v4l2grab application that takes pictures from the webcam and saves them with the ppm format, using libv4l to work with all webcam models. This application uses the absolute minimum of V4L2 calls to take 640x480 pictures, and was tested with uvcvideo and vivi drivers. Signed-off-by: Mauro Carvalho Chehab --- v4l2-apps/test/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'v4l2-apps/test/Makefile') diff --git a/v4l2-apps/test/Makefile b/v4l2-apps/test/Makefile index d118b9210..71eaa77cf 100644 --- a/v4l2-apps/test/Makefile +++ b/v4l2-apps/test/Makefile @@ -7,6 +7,7 @@ binaries = ioctl-test \ sliced-vbi-detect \ vbi-test \ v4lgrab \ + v4l2grab \ driver-test \ pixfmt-test \ stress-buffer \ @@ -24,9 +25,15 @@ install: ../libv4l2util/libv4l2util.a: ../libv4l2util/v4l2_driver.c ../libv4l2util/frequencies.c make -C ../libv4l2util libv4l2util.a +../libv4l/libv4l2/libv4l2.so: + make -C ../libv4l/ + driver-test: driver-test.o ../libv4l2util/libv4l2util.a pixfmt-test: pixfmt-test.o $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lX11 +v4l2grab: v4l2grab.o + $(CC) $(LDFLAGS) $^ -o $@ ../libv4l/libv4l2/libv4l2.so + include ../Make.rules -- cgit v1.2.3