APPENDIX D

image

Picture Grabber

Listing D-1 provides the complete code discussed in the “A Program to Capture Images” section in Chapter 7. The parts required by webcam C270 are highlighted in bold.

Listing D-1. picture_grabber.c

/* V4L2 video picture grabber   Copyright (C) 2009 Mauro Carvalho Chehab <mchehab@infradead.org>   This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation version 2 of the License.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of ...

Get Intel® Galileo and Intel® Galileo Gen 2: API Features and Arduino Projects for Linux Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.