docs.unity.cn
    Show / Hide Table of Contents

    Struct XRCameraFrameExifData

    Represents EXIF data from the frame captured by the device camera.

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

    Constructors

    XRCameraFrameExifData(IntPtr, Double, Double, Double, Double, Single, Single, Single, Int16, XRCameraFrameExifDataColorSpace, Int16, XRCameraFrameExifDataMeteringMode, XRCameraFrameExifDataProperties)

    Creates a XRCameraFrameExifData.

    Declaration
    public XRCameraFrameExifData(IntPtr nativePtr, double apertureValue, double brightnessValue, double exposureTime, double shutterSpeedValue, float exposureBiasValue, float fNumber, float focalLength, short flash, XRCameraFrameExifDataColorSpace colorSpace, short photographicSensitivity, XRCameraFrameExifDataMeteringMode meteringMode, XRCameraFrameExifDataProperties properties)
    Parameters
    Type Name Description
    IntPtr nativePtr

    The native pointer.

    Double apertureValue

    The lens aperture of the frame.

    Double brightnessValue

    The brightness of the frame.

    Double exposureTime

    The exposure Time of the frame.

    Double shutterSpeedValue

    The shutter speed of the frame.

    Single exposureBiasValue

    The exposure bias of the frame.

    Single fNumber

    The F number of the frame.

    Single focalLength

    The lens focal length of the frame.

    Int16 flash

    The flash status of the frame.

    XRCameraFrameExifDataColorSpace colorSpace

    The color space of the frame.

    Int16 photographicSensitivity

    The photographicSensitivity of the frame.

    XRCameraFrameExifDataMeteringMode meteringMode

    The metering mode of the frame.

    XRCameraFrameExifDataProperties properties

    The set of flags that indicates which properties are included in the EXIF data of the frame.

    Properties

    hasAnyProperties

    Indicates whether any property was assigned a value.

    Declaration
    public readonly bool hasAnyProperties { get; }
    Property Value
    Type Description
    Boolean

    true if any property was assigned a value. Otherwise, false.

    nativePtr

    Points to a provider-specific data structure in unmanaged memory that you can use to access additional EXIF properties. Refer to your provider's documentation to learn how to use this pointer.

    Declaration
    public readonly IntPtr nativePtr { get; }
    Property Value
    Type Description
    IntPtr

    Methods

    Equals(Object)

    Compares for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    An object to compare against.

    Returns
    Type Description
    Boolean

    true if obj is an XRCameraFrameExifData and Equals(XRCameraFrameExifData) is also true. Otherwise, false.

    Overrides
    ValueType.Equals(Object)

    Equals(XRCameraFrameExifData)

    Compares for equality.

    Declaration
    public bool Equals(XRCameraFrameExifData other)
    Parameters
    Type Name Description
    XRCameraFrameExifData other

    The other XRCameraFrameExifData to compare against.

    Returns
    Type Description
    Boolean

    true if the XRCameraFrameExifData represents the same object. Otherwise, false.

    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Generates a hash code suitable for use in HashSet and Dictionary.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash of this XRCameraFrameExifData.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a string representation of this XRCameraFrameExifData suitable for debugging purposes.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string representation of this XRCameraFrameExifData.

    Overrides
    ValueType.ToString()

    TryGetApertureValue(out Double)

    Get the lens aperture of the frame if possible.

    Declaration
    public bool TryGetApertureValue(out double apertureValue)
    Parameters
    Type Name Description
    Double apertureValue

    The lens aperture of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the lens aperture of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasApertureValue.

    TryGetBrightnessValue(out Double)

    Get the brightness of the frame if possible.

    Declaration
    public bool TryGetBrightnessValue(out double brightnessValue)
    Parameters
    Type Name Description
    Double brightnessValue

    The brightness of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the brightness of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasBrightnessValue.

    TryGetColorSpace(out XRCameraFrameExifDataColorSpace)

    Get the color space of the frame if possible.

    Declaration
    public bool TryGetColorSpace(out XRCameraFrameExifDataColorSpace colorSpace)
    Parameters
    Type Name Description
    XRCameraFrameExifDataColorSpace colorSpace

    The color space of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the color space of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasColorSpace.

    TryGetExposureBiasValue(out Single)

    Get the exposure bias of the frame if possible.

    Declaration
    public bool TryGetExposureBiasValue(out float exposureBiasValue)
    Parameters
    Type Name Description
    Single exposureBiasValue

    The exposure bias of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the exposure bias of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasExposureBiasValue.

    TryGetExposureTime(out Double)

    Get the exposure time of the frame if possible.

    Declaration
    public bool TryGetExposureTime(out double exposureTime)
    Parameters
    Type Name Description
    Double exposureTime

    The exposure time of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the exposure time of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasExposureTime.

    TryGetFlash(out Int16)

    Get the flash status of the frame if possible.

    Declaration
    public bool TryGetFlash(out short flash)
    Parameters
    Type Name Description
    Int16 flash

    The flash status of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the flash status of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasFlash.

    TryGetFNumber(out Single)

    Get the F number of the frame if possible.

    Declaration
    public bool TryGetFNumber(out float fNumber)
    Parameters
    Type Name Description
    Single fNumber

    The F number of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the F number of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasFNumber.

    TryGetFocalLength(out Single)

    Get the lens focal length of the frame if possible.

    Declaration
    public bool TryGetFocalLength(out float focalLength)
    Parameters
    Type Name Description
    Single focalLength

    The lens focal length of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the lens focal length of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasFocalLength.

    TryGetMeteringMode(out XRCameraFrameExifDataMeteringMode)

    Get the metering mode of the frame if possible.

    Declaration
    public bool TryGetMeteringMode(out XRCameraFrameExifDataMeteringMode meteringMode)
    Parameters
    Type Name Description
    XRCameraFrameExifDataMeteringMode meteringMode

    The metering mode of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the metering mode of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasMeteringMode.

    TryGetPhotographicSensitivity(out Int16)

    Get the photographic sensitivity of the frame if possible.

    Declaration
    public bool TryGetPhotographicSensitivity(out short photographicSensitivity)
    Parameters
    Type Name Description
    Int16 photographicSensitivity

    The photographic sensitivity of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the photographic sensitivity of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasPhotographicSensitivity.

    TryGetShutterSpeedValue(out Double)

    Get the shutter speed of the frame if possible.

    Declaration
    public bool TryGetShutterSpeedValue(out double shutterSpeedValue)
    Parameters
    Type Name Description
    Double shutterSpeedValue

    The shutter speed of the camera frame.

    Returns
    Type Description
    Boolean

    true if the EXIF data contains the shutter speed of the frame. Otherwise, false. Equal to UnityEngine.XR.ARSubsystems.XRCameraFrameExifData.hasShutterSpeedValue.

    Operators

    Equality(XRCameraFrameExifData, XRCameraFrameExifData)

    Compares lhs and rhs for equality using Equals(XRCameraFrameExifData).

    Declaration
    public static bool operator ==(XRCameraFrameExifData lhs, XRCameraFrameExifData rhs)
    Parameters
    Type Name Description
    XRCameraFrameExifData lhs

    The left-hand-side XRCameraFrameExifData of the comparison.

    XRCameraFrameExifData rhs

    The right-hand-side XRCameraFrameExifData of the comparison.

    Returns
    Type Description
    Boolean

    true if lhs compares equal to rhs. Otherwise, false.

    Inequality(XRCameraFrameExifData, XRCameraFrameExifData)

    Compares lhs and rhs for inequality using Equals(XRCameraFrameExifData).

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

    The left-hand-side XRCameraFrameExifData of the comparison.

    XRCameraFrameExifData rhs

    The right-hand-side XRCameraFrameExifData of the comparison.

    Returns
    Type Description
    Boolean

    false if lhs compares equal to rhs. Otherwise, true.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, July 14, 2023