summaryrefslogtreecommitdiff
path: root/v4l2-apps/test/v4l2grab.c
AgeCommit message (Collapse)Author
2009-08-16Document libv4l at V4L2 API specsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Since applications aren't prepared to handle all V4L2 available formats, an effort is done to have a library capable of understanding especially the proprietary formats. This patch documents this library, and adds v4l2grab.c as an example on how to use it. Parts of the text are based at the libv4l README file (c) by Hans de Goede. Thanks to Hans de Goede <hdegoede@redhat.com> for his good work with libv4l. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-07-02v4l2grab: Be sure that libv4l is properly converting to RGB24Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> To be simple, there's no format conversion inside v4l2grab. It relies that libv4l will do the hard work of converting whatever input format into RGB24. Instead of just proceeding and writing wrong images, die if libv4l can't convert into RGB24. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-30v4l2grab: Add an userspace application for webcam testing, using libv4l2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> 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 <mchehab@redhat.com>