XRCameraFrameExtensions
Extensions to AR Subsystem's XRCameraFrame struct.
Summary
Public static functions |
|
|---|---|
GetImageDisplayMatrix(this XRCameraFrame frame)
|
Get the 4x4 image display matrix for the camera frame.
|
TryGetFrameTimestamp(this XRCameraFrame frame, out long frameTimestamp)
|
bool
Get the timestamp of the camera frame.
|
Public static functions
GetImageDisplayMatrix
Matrix4x4 GetImageDisplayMatrix( this XRCameraFrame frame )
Get the 4x4 image display matrix for the camera frame.
This is used by the texture populated based on CPU images to calculate the display coordinates.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
| Returns |
The 4x4 image display matrix.
|
||
TryGetFrameTimestamp
bool TryGetFrameTimestamp( this XRCameraFrame frame, out long frameTimestamp )
Get the timestamp of the camera frame.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
| Returns |
True if the timestamp is available, false otherwise.
|
||||