docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRCpuImage.Plane.Cinfo

    Container for the metadata that describes access to the raw camera image plane data.

    Implements
    IEquatable<XRCpuImage.Plane.Cinfo>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 object to compare against.

    Returns
    Type Description
    bool

    True if obj is of type XRCpuImage.Plane.Cinfo and Equals(Cinfo) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    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

    True if every field in other is equal to this XRCpuImage.Plane.Cinfo, otherwise false.

    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
    ValueType.GetHashCode()

    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
    ValueType.ToString()

    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

    True if lhs is equal to rhs, otherwise false.

    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

    True if lhs is not equal to rhs, otherwise false.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)