FirstModulAR 0.1.0
Loading...
Searching...
No Matches
MockCameraCapturer Class Reference

Mock implementation of a camera capturer for testing purposes. Uses a predefined image to simulate the camera capturer. More...

Inheritance diagram for MockCameraCapturer:
CameraCapturer

Public Member Functions

void PixelsToRaw (Color[] pixels, ref byte[] imageData, bool changeAlphaChannelTo1=false)
 Converts pixel data to a raw byte array.
 

Additional Inherited Members

- Static Public Member Functions inherited from CameraCapturer
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 inherited from CameraCapturer
static CameraCapturer Instance
 
- Protected Member Functions inherited from CameraCapturer
virtual void SubscribersChanged ()
 Called when the list of subscribers changes.
 
virtual void Awake ()
 Automatically initializes the singleton instance of the camera capturer.
 
- Protected Attributes inherited from CameraCapturer
int _targetImageWidth = 640
 
int _targetImageHeight = 480
 
- Static Protected Attributes inherited from CameraCapturer
static Action< byte[], int, int > OnCameraDataCaptured
 
- Properties inherited from CameraCapturer
static int TargetImageWidth [get]
 Gets the target image width.
 
static int TargetImageHeight [get]
 Gets the target image height.
 

Detailed Description

Mock implementation of a camera capturer for testing purposes. Uses a predefined image to simulate the camera capturer.

Member Function Documentation

◆ PixelsToRaw()

void MockCameraCapturer.PixelsToRaw ( Color[] pixels,
ref byte[] imageData,
bool changeAlphaChannelTo1 = false )
inline

Converts pixel data to a raw byte array.

Parameters
pixelsThe pixel data to convert.
imageDataThe byte array to store the raw data.
changeAlphaChannelTo1Whether to set the alpha channel to 1.

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