CamCap  v0.0.1-2379
C++ camera capture library and tool
CamCap.hpp File Reference

Namespace and class definition to capture images from web cams. More...

#include <map>
#include <set>
#include <vector>
#include <string>
#include <linux/videodev2.h>
Include dependency graph for CamCap.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  CC::BufferDetail
 Structure used to keep some information on the memory mapped buffers, and the corresponding mmap() address. More...
 
struct  CC::CaptureAndBuffer
 Structure used when capturing multiple images. More...
 
struct  CC::Dimension
 
class  CC::Device
 Class to represent a single camera device. More...
 

Namespaces

 CC
 Namespace for CamCap.
 

Typedefs

typedef std::map< uint32_t, std::string > CC::MU32Str
 Map a numerical ID to a text string. More...
 
typedef std::map< uint32_t, v4l2_input > CC::MInputs
 Map of indexes to inputs. More...
 
typedef std::map< uint32_t, v4l2_fmtdesc > CC::MFormats
 Map of image formats. More...
 
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. More...
 
typedef std::vector< v4l2_queryctrl > CC::VCtrls
 Vector of controls. More...
 
typedef std::map< uint32_t, BufferDetail > CC::MIdxBufferDetail
 Map of buffer indexes to BufferDetail structures. More...
 
typedef std::vector< CaptureAndBuffer > CC::Images
 Vector of structures used when capturing multiple images. More...
 
typedef std::vector< std::string > CC::VStr
 Vector of strings. More...
 
typedef std::set< Dimension > CC::Dimensions
 A sorted set of dimensions. More...
 

Enumerations

enum  CC::ETransferMethod {
  CC::ETransferMethod::kRead,
  CC::ETransferMethod::kMmap
}
 Different transfer methods. More...
 

Functions

std::string CC::fourcc_to_string (uint32_t fcc)
 Simple function to convert a FourCC value to a text string. More...
 
uint32_t CC::gcd (uint32_t u, uint32_t v)
 Find the greatest common denominator. More...
 
std::string CC::get_version (void)
 Obtain the CamCap version number. More...
 

Detailed Description

Namespace and class definition to capture images from web cams.