Namespace for CamCap. More...
Classes | |
| struct | BufferDetail |
| Structure used to keep some information on the memory mapped buffers, and the corresponding mmap() address. More... | |
| struct | CaptureAndBuffer |
| Structure used when capturing multiple images. More... | |
| class | Device |
| Class to represent a single camera device. More... | |
| struct | Dimension |
Typedefs | |
| typedef std::map< uint32_t, std::string > | MU32Str |
| Map a numerical ID to a text string. More... | |
| typedef std::map< uint32_t, v4l2_input > | MInputs |
| Map of indexes to inputs. More... | |
| typedef std::map< uint32_t, v4l2_fmtdesc > | MFormats |
| Map of image formats. More... | |
| typedef std::vector< uint8_t > | Bytes |
| Vector of bytes, used as a data buffer. For example, to return the bytes read from the camera. More... | |
| typedef std::vector< v4l2_queryctrl > | VCtrls |
| Vector of controls. More... | |
| typedef std::map< uint32_t, BufferDetail > | MIdxBufferDetail |
| Map of buffer indexes to BufferDetail structures. More... | |
| typedef std::vector< CaptureAndBuffer > | Images |
| Vector of structures used when capturing multiple images. More... | |
| typedef std::vector< std::string > | VStr |
| Vector of strings. More... | |
| typedef std::set< Dimension > | Dimensions |
| A sorted set of dimensions. More... | |
Enumerations | |
| enum | ETransferMethod { ETransferMethod::kRead, ETransferMethod::kMmap } |
| Different transfer methods. More... | |
Functions | |
| std::string | fourcc_to_string (uint32_t fcc) |
| Simple function to convert a FourCC value to a text string. More... | |
| uint32_t | gcd (uint32_t u, uint32_t v) |
| Find the greatest common denominator. More... | |
| std::string | get_version (void) |
| Obtain the CamCap version number. More... | |
Namespace for CamCap.
| typedef std::map<uint32_t, std::string> CC::MU32Str |
Map a numerical ID to a text string.
| typedef std::map<uint32_t, v4l2_input> CC::MInputs |
Map of indexes to inputs.
| typedef std::map<uint32_t, v4l2_fmtdesc> CC::MFormats |
| typedef std::vector<uint8_t> CC::Bytes |
Vector of bytes, used as a data buffer. For example, to return the bytes read from the camera.
| typedef std::vector<v4l2_queryctrl> CC::VCtrls |
Vector of controls.
| typedef std::map< uint32_t, BufferDetail > CC::MIdxBufferDetail |
Map of buffer indexes to BufferDetail structures.
| typedef std::vector<CaptureAndBuffer> CC::Images |
Vector of structures used when capturing multiple images.
| typedef std::vector<std::string> CC::VStr |
Vector of strings.
| typedef std::set<Dimension> CC::Dimensions |
A sorted set of dimensions.
|
strong |
| std::string CC::fourcc_to_string | ( | uint32_t | fcc | ) |
Simple function to convert a FourCC value to a text string.
For example:
Referenced by CC::Device::describe(), and main().

| uint32_t CC::gcd | ( | uint32_t | u, |
| uint32_t | v | ||
| ) |
Find the greatest common denominator.
Used to calculate the image aspect ratio.
For example:
Referenced by CC::Device::describe().

| std::string CC::get_version | ( | void | ) |
Obtain the CamCap version number.
For example:
Referenced by CC::Device::describe(), and main().
