pub unsafe extern "C" fn LeapInterpolateFrameFromTimeEx(
    hConnection: LEAP_CONNECTION,
    hDevice: LEAP_DEVICE,
    timestamp: i64,
    sourceTimestamp: i64,
    pEvent: *mut LEAP_TRACKING_EVENT,
    ncbEvent: u64
) -> eLeapRS
Expand description

\ingroup Functions Constructs a frame at the specified timestamp for a particular device by interpolating between a frame near the timestamp and a frame near the sourceTimestamp.

Caller is responsible for allocating a buffer large enough to hold the data of the frame. Use LeapGetFrameSizeEx() to calculate the minimum size of this buffer.

Use LeapCreateClockRebaser(), LeapUpdateRebase(), and LeapRebaseClock() to synchronize time measurements in the application with time measurements in the Ultraleap Tracking Service. This process is required to achieve accurate, smooth interpolation. @param hConnection The connection handle created by LeapCreateConnection(). @param hDevice A device handle returned by LeapOpenDevice(). @param timestamp The timestamp to which to interpolate the frame data. @param sourceTimestamp The timestamp of the beginning frame from which to interpolate the frame data. @param[out] pEvent A pointer to a flat buffer which is filled with an interpolated frame. @param ncbEvent The number of bytes pointed to by pEvent. @returns The operation result code, a member of the eLeapRS enumeration. @since 5.4.0