The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrt/tracking: use int64_t to represent timestamps

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>

authored by

Simon Zeni and committed by
Rylie Pavlik
8976e677 d67ab784

+10 -10
+4 -4
src/xrt/include/tracking/t_hand_tracking.h
··· 126 126 struct xrt_frame *right_frame, 127 127 struct xrt_hand_joint_set *out_left_hand, 128 128 struct xrt_hand_joint_set *out_right_hand, 129 - uint64_t *out_timestamp_ns); 129 + int64_t *out_timestamp_ns); 130 130 131 131 /*! 132 132 * Destroy this hand tracker sync object. ··· 145 145 struct xrt_frame *right_frame, 146 146 struct xrt_hand_joint_set *out_left_hand, 147 147 struct xrt_hand_joint_set *out_right_hand, 148 - uint64_t *out_timestamp_ns) 148 + int64_t *out_timestamp_ns) 149 149 { 150 150 ht_sync->process(ht_sync, left_frame, right_frame, out_left_hand, out_right_hand, out_timestamp_ns); 151 151 } ··· 179 179 180 180 void (*get_hand)(struct t_hand_tracking_async *ht_async, 181 181 enum xrt_input_name name, 182 - uint64_t desired_timestamp_ns, 182 + int64_t desired_timestamp_ns, 183 183 struct xrt_hand_joint_set *out_value, 184 - uint64_t *out_timestamp_ns); 184 + int64_t *out_timestamp_ns); 185 185 }; 186 186 187 187 struct t_hand_tracking_async *
+1 -1
src/xrt/tracking/hand/mercury/hg_sync.cpp
··· 703 703 struct xrt_frame *right_frame, 704 704 struct xrt_hand_joint_set *out_left_hand, 705 705 struct xrt_hand_joint_set *out_right_hand, 706 - uint64_t *out_timestamp_ns) 706 + int64_t *out_timestamp_ns) 707 707 { 708 708 XRT_TRACE_MARKER(); 709 709
+1 -1
src/xrt/tracking/hand/mercury/hg_sync.hpp
··· 355 355 struct xrt_frame *right_frame, 356 356 struct xrt_hand_joint_set *out_left_hand, 357 357 struct xrt_hand_joint_set *out_right_hand, 358 - uint64_t *out_timestamp_ns); 358 + int64_t *out_timestamp_ns); 359 359 360 360 static void 361 361 cCallbackDestroy(t_hand_tracking_sync *ht_sync);
+4 -4
src/xrt/tracking/hand/t_hand_tracking_async.c
··· 44 44 struct 45 45 { 46 46 struct xrt_hand_joint_set hands[2]; 47 - uint64_t timestamp; 47 + int64_t timestamp; 48 48 } working; 49 49 50 50 struct ··· 52 52 struct os_mutex mutex; 53 53 struct xrt_hand_joint_set hands[2]; 54 54 struct m_relation_history *relation_hist[2]; 55 - uint64_t timestamp; 55 + int64_t timestamp; 56 56 } present; 57 57 58 58 // in here: ··· 259 259 static void 260 260 ht_async_get_hand(struct t_hand_tracking_async *ht_async, 261 261 enum xrt_input_name name, 262 - uint64_t desired_timestamp_ns, 262 + int64_t desired_timestamp_ns, 263 263 struct xrt_hand_joint_set *out_value, 264 - uint64_t *out_timestamp_ns) 264 + int64_t *out_timestamp_ns) 265 265 { 266 266 struct ht_async_impl *hta = ht_async_impl(ht_async); 267 267 assert(name == XRT_INPUT_GENERIC_HAND_TRACKING_LEFT || name == XRT_INPUT_GENERIC_HAND_TRACKING_RIGHT);