Struct XRCpuImage.Plane.Cinfo
Container for the metadata that describes access to the raw camera image plane data.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public struct XRCpuImage.Plane.Cinfo : IEquatable<XRCpuImage.Plane.Cinfo>
Constructors
Cinfo(IntPtr, int, int, int)
Constructs the camera image plane cinfo.
Declaration
public Cinfo(IntPtr dataPtr, int dataLength, int rowStride, int pixelStride)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | dataPtr | The pointer to the raw native image data. |
int | dataLength | The length of the native image data. |
int | rowStride | The stride for iterating through the rows of the native image data. |
int | pixelStride | The stride for iterating through the pixels of the native image data. |
Properties
dataLength
The length of the native image data.
Declaration
public int dataLength { get; }
Property Value
Type | Description |
---|---|
int | The length of the native image data. |
dataPtr
The pointer to the raw native image data.
Declaration
public IntPtr dataPtr { get; }
Property Value
Type | Description |
---|---|
IntPtr | The pointer to the raw native image data. |
pixelStride
The stride for iterating through the pixels of the native image data.
Declaration
public int pixelStride { get; }
Property Value
Type | Description |
---|---|
int | The stride for iterating through the pixels of the native image data. |
rowStride
The stride for iterating through the rows of the native image data.
Declaration
public int rowStride { get; }
Property Value
Type | Description |
---|---|
int | The stride for iterating through the rows of the native image data. |
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.Plane.Cinfo other)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.Plane.Cinfo | other | The other XRCpuImage.Plane.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 suitable for debugging.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of this XRCpuImage.Plane.Cinfo. |
Overrides
Operators
operator ==(Cinfo, Cinfo)
Tests for equality. Same as Equals(Cinfo).
Declaration
public static bool operator ==(XRCpuImage.Plane.Cinfo lhs, XRCpuImage.Plane.Cinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.Plane.Cinfo | lhs | The left-hand side of the comparison. |
XRCpuImage.Plane.Cinfo | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|
operator !=(Cinfo, Cinfo)
Tests for inequality. Same as !
Equals(Cinfo).
Declaration
public static bool operator !=(XRCpuImage.Plane.Cinfo lhs, XRCpuImage.Plane.Cinfo rhs)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.Plane.Cinfo | lhs | The left-hand side of the comparison. |
XRCpuImage.Plane.Cinfo | rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|