Struct XRCpuImage.Plane.Cinfo
Container for the metadata describing access to the raw camera image plane data.
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public struct Cinfo : IEquatable<XRCpuImage.Plane.Cinfo>
Constructors
Cinfo(IntPtr, Int32, Int32, Int32)
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. |
Int32 | dataLength | The length of the native image data. |
Int32 | rowStride | The stride for iterating through the rows of the native image data. |
Int32 | 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 |
---|---|
Int32 | 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 |
---|---|
Int32 | 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 |
---|---|
Int32 | 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 |
---|---|
Boolean |
|
Overrides
Equals(XRCpuImage.Plane.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 |
---|---|
Boolean |
|
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | 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
Equality(XRCpuImage.Plane.Cinfo, XRCpuImage.Plane.Cinfo)
Tests for equality. Same as Equals(XRCpuImage.Plane.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 |
---|---|
Boolean |
|
Inequality(XRCpuImage.Plane.Cinfo, XRCpuImage.Plane.Cinfo)
Tests for inequality. Same as !
Equals(XRCpuImage.Plane.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 |
---|---|
Boolean |
|