The open source OpenXR runtime
0
fork

Configure Feed

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

xrt: 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
af5cf402 bc131e65

+10 -10
+1 -1
src/xrt/compositor/multi/comp_multi_compositor.c
··· 179 179 180 180 // Block here if the scheduled slot is not clear. 181 181 while (v_mc->scheduled.active) { 182 - uint64_t now_ns = os_monotonic_get_ns(); 182 + int64_t now_ns = os_monotonic_get_ns(); 183 183 184 184 // This frame is for the next frame, drop the old one no matter what. 185 185 if (time_is_within_half_ms(mc->progress.data.display_time_ns, mc->slot_next_frame_display)) {
+2 -2
src/xrt/include/xrt/xrt_compositor.h
··· 408 408 * The layer may be displayed after this point, but must never be 409 409 * displayed before. 410 410 */ 411 - uint64_t timestamp; 411 + int64_t timestamp; 412 412 413 413 /*! 414 414 * Composition flags ··· 477 477 struct xrt_layer_frame_data 478 478 { 479 479 int64_t frame_id; 480 - uint64_t display_time_ns; 480 + int64_t display_time_ns; 481 481 enum xrt_blend_mode env_blend_mode; 482 482 }; 483 483
+2 -2
src/xrt/include/xrt/xrt_defines.h
··· 1614 1614 1615 1615 struct xrt_facial_base_expression_set_htc 1616 1616 { 1617 - uint64_t sample_time_ns; 1617 + int64_t sample_time_ns; 1618 1618 bool is_active; 1619 1619 }; 1620 1620 ··· 1769 1769 1770 1770 struct xrt_base_body_joint_set_meta 1771 1771 { 1772 - uint64_t sample_time_ns; 1772 + int64_t sample_time_ns; 1773 1773 float confidence; 1774 1774 uint32_t skeleton_changed_count; 1775 1775 bool is_active;
+2 -2
src/xrt/include/xrt/xrt_frame.h
··· 36 36 enum xrt_format format; 37 37 enum xrt_stereo_format stereo_format; 38 38 39 - uint64_t timestamp; 40 - uint64_t source_timestamp; 39 + int64_t timestamp; 40 + int64_t source_timestamp; 41 41 uint64_t source_sequence; //!< sequence id 42 42 uint64_t source_id; //!< Which @ref xrt_fs this frame originated from. 43 43 };
+1 -1
src/xrt/include/xrt/xrt_instance.h
··· 185 185 /*! 186 186 * CLOCK_MONOTONIC timestamp of the instance startup. 187 187 */ 188 - uint64_t startup_timestamp; 188 + int64_t startup_timestamp; 189 189 190 190 /*! 191 191 * An "aspect" of the xrt_instance interface, used only on Android.
+2 -2
src/xrt/include/xrt/xrt_session.h
··· 101 101 struct xrt_session_event_loss_pending 102 102 { 103 103 enum xrt_session_event_type type; 104 - uint64_t loss_time_ns; 104 + int64_t loss_time_ns; 105 105 }; 106 106 107 107 /*! ··· 141 141 { 142 142 enum xrt_session_event_type event_type; 143 143 enum xrt_reference_space_type ref_type; 144 - uint64_t timestamp_ns; 144 + int64_t timestamp_ns; 145 145 struct xrt_pose pose_in_previous_space; 146 146 bool pose_valid; 147 147 };