Show / Hide Table of Contents

    Class SpectatorViewTimeSynchronizer

    Synchronizes time adjustments between the compositor and the HoloLens.

    Inheritance
    Object
    SpectatorViewTimeSynchronizer
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public class SpectatorViewTimeSynchronizer

    Methods

    GetPoseTimeFromCameraTime(Single)

    Gets the timestamp of a HoloLens pose from a video camera time.

    Declaration
    public float GetPoseTimeFromCameraTime(float cameraTime)
    Parameters
    Type Name Description
    Single cameraTime

    The timestamp in the video camera timeline.

    Returns
    Type Description
    Single

    The timestamp of the HoloLens pose associated with the video, in the HoloLens timeline.

    GetUnityTimeFromCameraTime(Single)

    Gets the timestamp of a HoloLens pose from a video camera time.

    Declaration
    public float GetUnityTimeFromCameraTime(float cameraTime)
    Parameters
    Type Name Description
    Single cameraTime

    The timestamp in the video camera timeline.

    Returns
    Type Description
    Single

    The timestamp of the video frame in Unity's timeline.

    Reset()

    Resets the time synchronization for a new synchronization session.

    Declaration
    public void Reset()

    Update(Int32, Single, Int32, Single)

    Records a sample to update the time synchronizer.

    Declaration
    public void Update(int cameraFrame, float cameraTime, int poseIndex, float poseTime)
    Parameters
    Type Name Description
    Int32 cameraFrame

    The index of the current video frame.

    Single cameraTime

    The timestamp of the current video frame.

    Int32 poseIndex

    The index of the current HoloLens pose.

    Single poseTime

    The timestamp of the current HoloLens pose.

    In This Article
    • Methods
      • GetPoseTimeFromCameraTime(Single)
      • GetUnityTimeFromCameraTime(Single)
      • Reset()
      • Update(Int32, Single, Int32, Single)
    Back to top Generated by DocFX