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 Vector2Int dimensions { get; }
Property Value
Type | Description |
---|---|
Vector2Int | The dimensions of the camera image. |
format
The format of the camera image.
Declaration
public 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 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 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 double timestamp { get; }
Property Value
Type | Description |
---|---|
Double | The timestamp for when the camera image was captured. |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
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 |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
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 |