CamCap is both a C++ library and a command-line tool. It is used to access webcams via Video4Linux, also known as V4L
or V4L2
.
The official V4L documentation is here: https://www.linuxtv.org/docs.php
The goal of the CamCap library isn't to behave as a wrapper for V4L, but to provide an easy-to-use C++ interface specifically to access cameras such as web cams.
The functionality most likely to be used (e.g., "take a picture") should be accessible with very few API calls:
The CC::Device class tries to choose reasonable defaults. But if needed, many settings can be specified manually. For example: