The open source OpenXR runtime
at prediction-2 45 lines 802 B view raw
1// Copyright 2022-2023, Collabora, Ltd. 2// SPDX-License-Identifier: BSL-1.0 3/*! 4 * @file 5 * @brief Interface for vive data sources 6 * @author Mateo de Mayo <mateo.demayo@collabora.com> 7 * @ingroup drv_vive 8 */ 9 10#pragma once 11 12#include "xrt/xrt_frame.h" 13#include "xrt/xrt_tracking.h" 14 15/*! 16 * Vive data sources 17 * 18 * @addtogroup drv_vive 19 * @{ 20 */ 21 22 23#ifdef __cplusplus 24extern "C" { 25#endif 26 27struct vive_source * 28vive_source_create(struct xrt_frame_context *xfctx); 29 30void 31vive_source_push_imu_packet(struct vive_source *vs, uint32_t age, timepoint_ns t, struct xrt_vec3 a, struct xrt_vec3 g); 32 33void 34vive_source_push_frame_ticks(struct vive_source *vs, timepoint_ns ticks); 35 36void 37vive_source_hook_into_sinks(struct vive_source *vs, struct xrt_slam_sinks *sinks); 38 39/*! 40 * @} 41 */ 42 43#ifdef __cplusplus 44} 45#endif