Struct XRCpuImage.Cinfo
Container for native camera image construction metadata.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public struct XRCpuImage.Cinfo : IEquatable<XRCpuImage.Cinfo>
Constructors
Cinfo(int, Vector2Int, int, double, Format)
Constructs the camera image Cinfo
.
Declaration
public Cinfo(int nativeHandle, Vector2Int dimensions, int planeCount, double timestamp, XRCpuImage.Format format)
Parameters
Type | Name | Description |
---|---|---|
int | nativeHandle | The handle representing the camera image on the native level. |
Vector2Int | dimensions | The dimensions of the camera image. |
int | planeCount | The number of video planes in the camera image. |
double | timestamp | The timestamp for when the camera image was captured. |
XRCpuImage.Format | 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 XRCpuImage.Format format { get; }
Property Value
Type | Description |
---|---|
XRCpuImage.Format | 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 |
---|---|
int | 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 |
---|---|
int | 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)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(Cinfo)
Tests for equality.
Declaration
public bool Equals(XRCpuImage.Cinfo other)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.Cinfo | other | The other XRCpuImage.Cinfo to compare against. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code generated from this object's fields. |
Overrides
ToString()
Generates a string representation of this object suitable for debugging.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | Returns a string representation of this XRCpuImage.Cinfo. |
Overrides
Operators
operator ==(Cinfo, Cinfo)
Tests for equality. Same as Equals(Cinfo).
Declaration
public static bool operator ==(XRCpuImage.Cinfo lhs, XRCpuImage.Cinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.Cinfo | lhs | The XRCpuImage.Cinfo to compare with |
XRCpuImage.Cinfo | rhs | The XRCpuImage.Cinfo to compare with |
Returns
Type | Description |
---|---|
bool |
|
operator !=(Cinfo, Cinfo)
Tests for inequality. Same as !
Equals(Cinfo).
Declaration
public static bool operator !=(XRCpuImage.Cinfo lhs, XRCpuImage.Cinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.Cinfo | lhs | The XRCpuImage.Cinfo to compare with |
XRCpuImage.Cinfo | rhs | The XRCpuImage.Cinfo to compare with |
Returns
Type | Description |
---|---|
bool |
|