Struct CameraImagePlane | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct CameraImagePlane

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

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: UnityEngine.XR.ARExtensions
    Syntax
    public struct CameraImagePlane : IEquatable<CameraImagePlane>

    Properties

    data

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

    Declaration
    public NativeArray<byte> data { get; }
    Property Value
    Type Description
    NativeArray<System.Byte>

    pixelStride

    The number of bytes per pixel for this plane.

    Declaration
    public int pixelStride { get; }
    Property Value
    Type Description
    System.Int32

    rowStride

    The number of bytes per row for this plane.

    Declaration
    public int rowStride { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(CameraImagePlane)

    Declaration
    public bool Equals(CameraImagePlane other)
    Parameters
    Type Name Description
    CameraImagePlane other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    Equality(CameraImagePlane, CameraImagePlane)

    Declaration
    public static bool operator ==(CameraImagePlane lhs, CameraImagePlane rhs)
    Parameters
    Type Name Description
    CameraImagePlane lhs
    CameraImagePlane rhs
    Returns
    Type Description
    System.Boolean

    Inequality(CameraImagePlane, CameraImagePlane)

    Declaration
    public static bool operator !=(CameraImagePlane lhs, CameraImagePlane rhs)
    Parameters
    Type Name Description
    CameraImagePlane lhs
    CameraImagePlane rhs
    Returns
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023