Browse files

Initial import of uvccapture v0.5

  • Loading branch information...
0 parents commit 94355347c1411b2ff17df425ee933eeae974d417 @csete committed Sep 18, 2010
Showing with 1,889 additions and 0 deletions.
  1. +340 −0 COPYING
  2. +21 −0 ChangeLog
  3. +27 −0 Makefile
  4. +30 −0 README
  5. +1 −0 TODO
  6. +401 −0 uvccapture.c
  7. +400 −0 uvccapture.c.orig
  8. +591 −0 v4l2uvc.c
  9. +78 −0 v4l2uvc.h
Oops, something went wrong.
@@ -0,0 +1,21 @@
+-- uvccapture 0.4 21.03.2006 --
+Lots of changes:
+* Added install target in the makefile to install into /usr/local/bin
+* Added signal capturing (CTRL-C, etc) to gracefully exit when in wait loop
+* Added the ability to specify a command to run after each image capture,
+ command is run with the output picture as an argument. command can be run
+ blocking, or non-blocking.
+* Added support for multiple verbisity levels (add more -v's)
+* Minor output spelling corrections
+* Added output of current bright/contrast/saturation/gain on startup.
+All these thanks to Salvador Gonzalez <>
+* YVYU Capture Mode - now requires jpeglib, activated for images sizes >960x720
+ allows adjustment of JPEG compression quality (-q) or manually activated (-m)
+YUYV -> JPEG code thanks to Philip Heron <>
+-- uvccapture 0.3 19.02.2006 --
+Removed the JPEG decoding files (util.*) and the calls to convert-frame during
+the capture of images. This decoding was only important for SDL display, which
+is already gone. Peak CPU usage has gone from ~30% to 0.6%.
+Thanks to Philip Heron <> for the suggestion.
@@ -0,0 +1,27 @@
+VERSION = 0.4
+OBJECTS= uvccapture.o v4l2uvc.o
+all: uvccapture
+ @echo "Cleaning up directory."
+ rm -f *.a *.o $(APP_BINARY) core *~ log errlog
+ install $(APP_BINARY) $(PREFIX)
+# Applications:
+uvccapture: $(OBJECTS)
+ $(CC) $(OBJECTS) $(XPM_LIB) $(MATH_LIB) -ljpeg -o $(APP_BINARY)
@@ -0,0 +1,30 @@
+uvccapture: USB UVC Video Class Snapshot Software
+Newest versions always available at
+This software is based of the package luvcview:
+Copyright (C) 2005 2006 Laurent Pinchart && Michel Xhaard
+Modifications and updates:
+Copyright (C) 2006 Gabriel A. Devenyi <>
+This program communicates via the USB UVC Video Class driver for V4L2, available
+The purpose of this software is to capture an image from a USB webcam at a
+specified interval, and save it to a JPEG file, no other formats are supported,
+imagemagick can handle anything else you might need.
+Right now this software is really a hack, since still image support is not yet
+available in the UVC driver. The program continually polls the UVC driver in
+MJPEG mode, and at a specified interval writes a JPEG header and a single frame
+to file, creating a JPEG image. Because of this continuous polling, this program
+has high CPU usage. Input checking is pretty trusting, so call it with the right
+In order for this software to work, whatever device you pass to -d you will need
+to have read/write rights to, please see appropriate /dev documentation for how
+to do this.
+This software depends on jpeglib(present on almost all systems)
+For usage information, run uvccapture -h
@@ -0,0 +1 @@
+*Add support for PAN and TILT
Oops, something went wrong.

0 comments on commit 9435534

Please sign in to comment.