docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRCpuImage.Plane

    Information about the camera image planes. An image plane refers to an image channel used in video encoding.

    Implements
    IEquatable<XRCpuImage.Plane>
    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 : IEquatable<XRCpuImage.Plane>

    Constructors

    Plane(int, int, NativeArray<byte>)

    Constructs an XRCpuImage.Plane.

    Declaration
    public Plane(int rowStride, int pixelStride, NativeArray<byte> data)
    Parameters
    Type Name Description
    int rowStride

    The number of bytes per row for this plane.

    int pixelStride

    The number of bytes per pixel for this plane.

    NativeArray<byte> data

    The platform-specific plane data.

    Properties

    data

    A view into the platform-specific plane data. It is an error to access data after the owning XRCpuImage has been disposed.

    Declaration
    public readonly NativeArray<byte> data { get; }
    Property Value
    Type Description
    NativeArray<byte>

    The platform-specific plane data.

    pixelStride

    The number of bytes per pixel for this plane.

    Declaration
    public readonly int pixelStride { get; }
    Property Value
    Type Description
    int

    The number of bytes per pixel for this plane.

    rowStride

    The number of bytes per row for this plane.

    Declaration
    public readonly int rowStride { get; }
    Property Value
    Type Description
    int

    The number of bytes per row for this plane.

    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 and Equals(Plane) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    Equals(Plane)

    Tests for equality.

    Declaration
    public bool Equals(XRCpuImage.Plane other)
    Parameters
    Type Name Description
    XRCpuImage.Plane other

    The other XRCpuImage.Plane to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this XRCpuImage.Plane, 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 representation of this XRCpuImage.Plane.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of this XRCpuImage.Plane.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(Plane, Plane)

    Tests for equality. Same as Equals(Plane).

    Declaration
    public static bool operator ==(XRCpuImage.Plane lhs, XRCpuImage.Plane rhs)
    Parameters
    Type Name Description
    XRCpuImage.Plane lhs

    The XRCpuImage.Plane to compare with rhs.

    XRCpuImage.Plane rhs

    The XRCpuImage.Plane to compare with lhs.

    Returns
    Type Description
    bool

    True if lhs is equal to rhs, otherwise false.

    operator !=(Plane, Plane)

    Tests for inequality. Same as !Equals(Plane).

    Declaration
    public static bool operator !=(XRCpuImage.Plane lhs, XRCpuImage.Plane rhs)
    Parameters
    Type Name Description
    XRCpuImage.Plane lhs

    The XRCpuImage.Plane to compare with rhs.

    XRCpuImage.Plane rhs

    The XRCpuImage.Plane to compare with lhs.

    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)