docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRCpuImage.Cinfo

    Container for native camera image construction metadata.

    Implements
    IEquatable<XRCpuImage.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.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 object to compare against.

    Returns
    Type Description
    bool

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

    Overrides
    ValueType.Equals(object)

    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

    True if every field in other is equal to this XRCpuImage.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 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
    ValueType.ToString()

    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 rhs.

    XRCpuImage.Cinfo rhs

    The XRCpuImage.Cinfo to compare with lhs.

    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.Cinfo lhs, XRCpuImage.Cinfo rhs)
    Parameters
    Type Name Description
    XRCpuImage.Cinfo lhs

    The XRCpuImage.Cinfo to compare with rhs.

    XRCpuImage.Cinfo rhs

    The XRCpuImage.Cinfo 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)