Struct XRCameraSubsystem.CameraImageCinfo
Container for native camera image construction metadata.
Namespace: UnityEngine.XR.ARSubsystems
Syntax
protected struct CameraImageCinfo : IEquatable<XRCameraSubsystem.CameraImageCinfo>
Constructors
CameraImageCinfo(Int32, Vector2Int, Int32, Double, CameraImageFormat)
Constructs the camera image cinfo.
Declaration
public CameraImageCinfo(int nativeHandle, Vector2Int dimensions, int planeCount, double timestamp, CameraImageFormat format)
Parameters
Type | Name | Description |
---|---|---|
Int32 | nativeHandle | The handle representing the camera image on the native level. |
Vector2Int | dimensions | The dimensions of the camera image. |
Int32 | planeCount | The number of video planes in the camera image. |
Double | timestamp | The timestamp for when the camera image was captured. |
CameraImageFormat | format | The format of the camera image. |
Properties
dimensions
The dimensions of the camera image.
Declaration
public readonly Vector2Int dimensions { get; }
Property Value
Type | Description |
---|---|
Vector2Int | The dimensions of the camera image. |
format
The format of the camera image.
Declaration
public readonly CameraImageFormat format { get; }
Property Value
Type | Description |
---|---|
CameraImageFormat | The format of the camera image. |
nativeHandle
The handle representing the camera image on the native level.
Declaration
public readonly int nativeHandle { get; }
Property Value
Type | Description |
---|---|
Int32 | The handle representing the camera image on the native level. |
planeCount
The number of video planes in the camera image.
Declaration
public readonly int planeCount { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of video planes in the camera image. |
timestamp
The timestamp for when the camera image was captured.
Declaration
public readonly double timestamp { get; }
Property Value
Type | Description |
---|---|
Double | The timestamp for when the camera image was captured. |
Methods
Equals(System.Object)
Declaration
public override bool Equals(System.Object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Equals(XRCameraSubsystem.CameraImageCinfo)
Declaration
public bool Equals(XRCameraSubsystem.CameraImageCinfo other)
Parameters
Type | Name | Description |
---|---|---|
XRCameraSubsystem.CameraImageCinfo | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(XRCameraSubsystem.CameraImageCinfo, XRCameraSubsystem.CameraImageCinfo)
Declaration
public static bool operator ==(XRCameraSubsystem.CameraImageCinfo lhs, XRCameraSubsystem.CameraImageCinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRCameraSubsystem.CameraImageCinfo | lhs | |
XRCameraSubsystem.CameraImageCinfo | rhs |
Returns
Type | Description |
---|---|
Boolean |
Inequality(XRCameraSubsystem.CameraImageCinfo, XRCameraSubsystem.CameraImageCinfo)
Declaration
public static bool operator !=(XRCameraSubsystem.CameraImageCinfo lhs, XRCameraSubsystem.CameraImageCinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRCameraSubsystem.CameraImageCinfo | lhs | |
XRCameraSubsystem.CameraImageCinfo | rhs |
Returns
Type | Description |
---|---|
Boolean |