AndroidCamera
NameSpace: Android
Inherits from:
IDisposable
Public Methods
CaptureRequest CreateCaptureRequest
public CaptureRequest CreateCaptureRequest(
MagicLeapCameras.VideoCaptureMode captureMode,
CaptureRequest.OnFrameAvailable onFrameAvailable,
RequestTemplate template =RequestTemplate.Preview,
IntPtr context =default
)
Parameters
Type | Name | Description |
---|---|---|
MagicLeapCameras.VideoCaptureMode | captureMode | |
CaptureRequest.OnFrameAvailable | onFrameAvailable | |
RequestTemplate | template | |
IntPtr | context |
void Dispose
public void Dispose()
int GetTimestamps
public int GetTimestamps(
NativeArray< long > timestampArray
)
Parameters
Type | Name | Description |
---|---|---|
NativeArray< long > | timestampArray |
bool TryStopRepeatingRequest
public bool TryStopRepeatingRequest()
bool TrySubmitCaptureRequest
public bool TrySubmitCaptureRequest(
CaptureRequest request,
bool repeating =false
)
Parameters
Type | Name | Description |
---|---|---|
CaptureRequest | request | |
bool | repeating |
bool TrySubmitCaptureRequests
public bool TrySubmitCaptureRequests(
CaptureRequest [] requests,
bool repeating =false
)
Parameters
Type | Name | Description |
---|---|---|
CaptureRequest [] | requests | |
bool | repeating |
Public Attributes
Format
public MediaFormat Format => cameraState->imageReader.Format;
ImageHeight
public int ImageHeight => cameraState->imageReader.Height;
ImageWidth
public int ImageWidth => cameraState->imageReader.Width;
Public Enums
CaptureFormat
Enumerator | Value | Description |
---|---|---|
YUV_420_888 | MediaFormat.Yuv_420_888 | |
JPEG | MediaFormat.Jpeg |
CaptureFrameRate
Enumerator | Value | Description |
---|---|---|
_15 | 15 | |
_30 | 30 | |
_60 | 60 |