![]() |
FirstModulAR 0.1.0
|
Mock implementation of a camera capturer for testing purposes. Uses a predefined image to simulate the camera capturer. More...
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. | |
Mock implementation of a camera capturer for testing purposes. Uses a predefined image to simulate the camera capturer.
|
inline |
Converts pixel data to a raw byte array.
| pixels | The pixel data to convert. |
| imageData | The byte array to store the raw data. |
| changeAlphaChannelTo1 | Whether to set the alpha channel to 1. |