SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSCamera.h File Reference
#include <opencv2/core.hpp>
#include "SENSFrame.h"
#include "SENSException.h"
#include "SENSCalibration.h"
#include <atomic>
#include <map>
#include <thread>
#include <algorithm>
#include "SENSUtils.h"
#include <HighResTimer.h>
Include dependency graph for SENSCamera.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SENSCameraStreamConfig
 
class  SENSCameraDeviceProps
 
struct  SENSCameraConfig
 
class  SENSCaptureProps
 
class  SENSCameraListener
 
class  SENSCamera
 Pure abstract camera class. More...
 
class  SENSBaseCamera
 Implementation of common functionality and members. More...
 

Enumerations

enum class  SENSCameraFacing { FRONT = 0 , BACK , EXTERNAL , UNKNOWN }
 Definition of camera facing. More...
 
enum class  SENSCameraFocusMode { CONTINIOUS_AUTO_FOCUS = 0 , FIXED_INFINITY_FOCUS , UNKNOWN }
 Definition of autofocus mode. More...
 

Functions

static std::string getPrintableFacing (SENSCameraFacing facing)
 mapping of SENSCameraFacing to a readable string More...
 
static std::string getPrintableFocusMode (SENSCameraFocusMode focusMode)
 mapping of SENSCameraFocusMode to a readable string More...
 

Detailed Description

Authors
Michael Goettlicher, Marcus Hudritsch
Date
Winter 2016
Remarks
Please use clangformat to format the code. See more code style on https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style

Definition in file SENSCamera.h.

Enumeration Type Documentation

◆ SENSCameraFacing

enum SENSCameraFacing
strong

Definition of camera facing.

Enumerator
FRONT 
BACK 
EXTERNAL 
UNKNOWN 

Definition at line 27 of file SENSCamera.h.

28 {
29  FRONT = 0,
30  BACK,
31  EXTERNAL,
32  UNKNOWN
33 };

◆ SENSCameraFocusMode

enum SENSCameraFocusMode
strong

Definition of autofocus mode.

Enumerator
CONTINIOUS_AUTO_FOCUS 
FIXED_INFINITY_FOCUS 
UNKNOWN 

Definition at line 48 of file SENSCamera.h.

Function Documentation

◆ getPrintableFacing()

static std::string getPrintableFacing ( SENSCameraFacing  facing)
static

mapping of SENSCameraFacing to a readable string

Definition at line 36 of file SENSCamera.h.

37 {
38  switch (facing)
39  {
40  case SENSCameraFacing::FRONT: return "FRONT";
41  case SENSCameraFacing::BACK: return "BACK";
42  case SENSCameraFacing::EXTERNAL: return "EXTERNAL";
43  default: return "UNKNOWN";
44  }
45 }

◆ getPrintableFocusMode()

static std::string getPrintableFocusMode ( SENSCameraFocusMode  focusMode)
static

mapping of SENSCameraFocusMode to a readable string

Definition at line 56 of file SENSCamera.h.

57 {
58  switch (focusMode)
59  {
60  case SENSCameraFocusMode::CONTINIOUS_AUTO_FOCUS: return "CONTINIOUS_AUTO_FOCUS";
61  case SENSCameraFocusMode::FIXED_INFINITY_FOCUS: return "FIXED_INFINITY_FOCUS";
62  default: return "UNKNOWN";
63  }
64 }