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

\ingroup Functions Constructs a frame at the specified timestamp by interpolating between measured frames.

Caller is responsible for allocating a buffer large enough to hold the data of the frame. Use LeapGetFrameSize() 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 timestamp The timestamp at 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 3.1.1