FirstModulAR 0.1.0
Loading...
Searching...
No Matches
CameraCapturer Class Referenceabstract

Abstract base class for any system which allows the capturing of camera data. This is required as different platforms have different ways of handling camera data. It allows us to abstract away the differences and provide a unified interface for the rest of the system. More...

Inheritance diagram for CameraCapturer:
MLCVCameraCapturer MockCameraCapturer

Static Public Member Functions

static void SubscribeCameraRawDataCaptured (Action< byte[], int, int > action)
 Subscribes to the camera raw data captured event.
 
static void UnsubscribeCameraRawDataCaptured (Action< byte[], int, int > action)
 Unsubscribes from the camera raw data captured event.
 

Static Public Attributes

static CameraCapturer Instance
 

Protected Member Functions

virtual void SubscribersChanged ()
 Called when the list of subscribers changes.
 
virtual void Awake ()
 Automatically initializes the singleton instance of the camera capturer.
 

Protected Attributes

int _targetImageWidth = 640
 
int _targetImageHeight = 480
 

Static Protected Attributes

static Action< byte[], int, int > OnCameraDataCaptured
 

Properties

static int TargetImageWidth [get]
 Gets the target image width.
 
static int TargetImageHeight [get]
 Gets the target image height.
 

Detailed Description

Abstract base class for any system which allows the capturing of camera data. This is required as different platforms have different ways of handling camera data. It allows us to abstract away the differences and provide a unified interface for the rest of the system.

Member Function Documentation

◆ Awake()

virtual void CameraCapturer.Awake ( )
inlineprotectedvirtual

Automatically initializes the singleton instance of the camera capturer.

Reimplemented in MLCVCameraCapturer.

◆ SubscribeCameraRawDataCaptured()

static void CameraCapturer.SubscribeCameraRawDataCaptured ( Action< byte[], int, int > action)
inlinestatic

Subscribes to the camera raw data captured event.

Parameters
actionThe action to invoke when camera data is captured.

◆ SubscribersChanged()

virtual void CameraCapturer.SubscribersChanged ( )
inlineprotectedvirtual

Called when the list of subscribers changes.

Reimplemented in MLCVCameraCapturer.

◆ UnsubscribeCameraRawDataCaptured()

static void CameraCapturer.UnsubscribeCameraRawDataCaptured ( Action< byte[], int, int > action)
inlinestatic

Unsubscribes from the camera raw data captured event.

Parameters
actionThe action to remove from the invocation list.

Member Data Documentation

◆ _targetImageHeight

int CameraCapturer._targetImageHeight = 480
protected

◆ _targetImageWidth

int CameraCapturer._targetImageWidth = 640
protected

◆ Instance

CameraCapturer CameraCapturer.Instance
static

◆ OnCameraDataCaptured

Action<byte[], int, int> CameraCapturer.OnCameraDataCaptured
staticprotected

Property Documentation

◆ TargetImageHeight

int CameraCapturer.TargetImageHeight
staticget

Gets the target image height.

◆ TargetImageWidth

int CameraCapturer.TargetImageWidth
staticget

Gets the target image width.


The documentation for this class was generated from the following file: