monado/src/xrt/auxiliary/util
Christoph Haag c24e482e5e st/oxr: Make OpenXR timestamps relative to service startup
This solves a problem where OpenXR timestamps could become invalid
(negative) in certain circumstances:

The timestamps that the OpenXR state tracker returned were offset such
that they appeared to start at OpenXR application startup time.

However monado-service is a long running service using system timestamps.
Because of this, if monado-service started work using a system timestamp
acquired before an OpenXR application started, then this system timestamp
could not be converted into an OpenXR without becoming invalid.

With this change, the OpenXR timestamps for OpenXR applications are offset
such that they appear to start at monado-service startup time instead.

As a side effect, all OpenXR applications connected to the same
monado-service instance will receive timestamps from the same domain.
2022-08-08 15:52:18 +00:00
..
CMakeLists.txt aux/util: Add u_hand_simulation 2022-08-01 17:33:40 +00:00
u_autoexpgain.c u/aeg: Fix clang warnings 2022-05-19 18:21:36 -03:00
u_autoexpgain.h u/aeg: Implement state machine to correct overshooting and avoid oscillations 2022-05-19 14:03:17 +00:00
u_bitwise.c u_bitwise: Switch from static const int to defines. 2020-10-08 17:26:22 -05:00
u_bitwise.h xrt: Some clang tidy fixes. 2020-08-12 17:11:42 -05:00
u_builders.c a/util: Fix function signature for u_builder_find_prober_device 2022-05-25 20:53:46 +00:00
u_builders.h a/util: Fix function signature for u_builder_find_prober_device 2022-05-25 20:53:46 +00:00
u_config_json.c u/config: Avoid using strncpy 2022-05-02 17:16:04 +01:00
u_config_json.h util/u_config_json: add functions to save/load gui state to file 2022-01-18 17:18:43 +00:00
u_debug.c a/util: Add DEBUG_GET_ONCE_TRISTATE_OPTION 2022-07-27 10:49:29 +00:00
u_debug.h a/util: Add DEBUG_GET_ONCE_TRISTATE_OPTION 2022-07-27 10:49:29 +00:00
u_deque.cpp u/deque: Add generic wrapper for std::deque 2022-07-25 19:08:46 +00:00
u_deque.h u/deque: Add generic wrapper for std::deque 2022-07-25 19:08:46 +00:00
u_device.c a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_device.h a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_distortion.c u/distortion: Fix conversion warning 2022-05-02 17:16:04 +01:00
u_distortion.h a/util: Improve docs structure 2022-05-20 15:48:19 -05:00
u_distortion_mesh.c a/util: Resolve warnings 2022-07-14 14:17:35 +00:00
u_distortion_mesh.h aux/util: Add North Star "VIPD" and "polynomial 2D" distortion methods 2021-06-21 12:29:31 -05:00
u_documentation.h a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_file.c monado: Apply clang-tidy fixes to most of the codebase. 2022-04-13 09:34:54 -05:00
u_file.cpp u/file: Avoid using fopen 2022-05-02 17:16:04 +01:00
u_file.h monado: Apply clang-tidy fixes to most of the codebase. 2022-04-13 09:34:54 -05:00
u_format.c xrt: Add XRT_FORMAT_BAYER_GR8 format 2021-01-27 16:09:07 +00:00
u_format.h xrt: Reflow after column change 2021-01-15 13:50:32 +00:00
u_frame.c a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_frame.h aux/util: Add u_frame_create_roi 2021-12-12 13:12:42 -03:00
u_frame_times_widget.h a/util: Paranoia for u_frame_times_widget 2022-05-23 13:19:58 +00:00
u_generic_callbacks.hpp misc: Address compilation warnings and fix u_json_get_bool 2021-11-12 15:33:06 -03:00
u_git_tag.c.in xrt: Add git tag/description 2020-10-20 17:43:11 +01:00
u_git_tag.h xrt: Add git tag/description 2020-10-20 17:43:11 +01:00
u_hand_simulation.c aux/util: Add u_hand_simulation 2022-08-01 17:33:40 +00:00
u_hand_simulation.h aux/util: Add u_hand_simulation 2022-08-01 17:33:40 +00:00
u_hand_tracking.c aux/util: Share joint width hand tracking function 2022-08-01 17:33:40 +00:00
u_hand_tracking.h xrt/util: Fix typo with number of joints per finger 2022-08-01 17:33:40 +00:00
u_handles.c u/handles: Add graphics sync handle helpers. 2021-04-07 00:50:10 +01:00
u_handles.h util: Fix copyright typo. 2021-10-15 14:55:12 -05:00
u_hashmap.cpp monado: Apply clang-tidy fixes to most of the codebase. 2022-04-13 09:34:54 -05:00
u_hashmap.h xrt: Reflow after column change 2021-01-15 13:50:32 +00:00
u_hashset.cpp a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_hashset.h xrt: Reflow after column change 2021-01-15 13:50:32 +00:00
u_id_ringbuffer.cpp a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_id_ringbuffer.h a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_index_fifo.h monado: Apply clang-tidy fixes to most of the codebase. 2022-04-13 09:34:54 -05:00
u_iterator_base.hpp a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_json.c misc: Address compilation warnings and fix u_json_get_bool 2021-11-12 15:33:06 -03:00
u_json.h aux/util: Add get_vec3_f64_array 2021-08-16 21:02:27 +01:00
u_json.hpp a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_logging.c u/logging: Change suffix to _func_t 2022-05-12 11:59:12 +00:00
u_logging.h a/util: Improve docs structure 2022-05-20 15:48:19 -05:00
u_misc.c aux/util: Group the files and structs in documentation 2019-04-06 13:04:13 +01:00
u_misc.h a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_pacing.h u/pacing: Introduce a app pacing factory 2022-06-27 19:09:46 +01:00
u_pacing_app.c u/pacing: Introduce a app pacing factory 2022-06-27 19:09:46 +01:00
u_pacing_compositor.c a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_pacing_compositor_fake.c a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_pretty_print.c xrt: Define D3D12 interface 2022-07-26 14:45:29 +00:00
u_pretty_print.h u/pp: Add array and array2d f64 pretty printers 2022-05-26 18:35:39 +00:00
u_prober.c u/prober: Add helper file for prober functions 2022-05-12 11:59:12 +00:00
u_prober.h u/prober: Add helper file for prober functions 2022-05-12 11:59:12 +00:00
u_process.c u/process: Fix a warning by marking a function as maybe unused. 2021-04-30 17:57:50 -05:00
u_process.h a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_sink.h u/sink: Make u_sink_create_format_converter support L8 2022-03-23 20:56:15 +00:00
u_sink_combiner.c xrt: fix -Wunused-variable warnings 2022-03-09 14:53:06 +01:00
u_sink_converter.c u/sink: Remove unused downstream2 2022-05-12 12:53:14 +01:00
u_sink_deinterleaver.c u/sink: Make sure to add deinterleaver sink to context 2021-08-23 20:25:52 +01:00
u_sink_force_genlock.c a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_sink_queue.c a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_sink_quirk.c u/sink: Make sure to add quirk sink to context 2021-08-20 17:14:43 +01:00
u_sink_simple_queue.c a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_sink_split.c u/sink: Make sure to add split sink to context 2021-08-23 20:25:08 +01:00
u_sink_stereo_sbs_to_slam_sbs.c monado: Apply clang-tidy fixes to most of the codebase. 2022-04-13 09:34:54 -05:00
u_string_list.cpp a/util: Add a new constructor and a new method to u_string_list 2022-01-24 16:34:45 -06:00
u_string_list.h a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_string_list.hpp a/util: Guard against bad defs of "max" 2022-07-26 14:45:29 +00:00
u_system_helpers.c a/util: Add u_system_devices_get_ht_device 2022-06-24 01:54:45 +01:00
u_system_helpers.h a/util: Add u_system_devices_get_ht_device 2022-06-24 01:54:45 +01:00
u_template_historybuf.hpp a/util: Add clear() method to HistoryBuffer 2022-06-18 21:56:03 +01:00
u_template_historybuf_const_iterator.inl a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_template_historybuf_impl_helpers.hpp a/util: Add clear() method to HistoryBuffer 2022-06-18 21:56:03 +01:00
u_template_historybuf_iterator.inl a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_threading.h xrt: Reflow after column change 2021-01-15 13:50:32 +00:00
u_time.cpp st/oxr: Make OpenXR timestamps relative to service startup 2022-08-08 15:52:18 +00:00
u_time.h st/oxr: Make OpenXR timestamps relative to service startup 2022-08-08 15:52:18 +00:00
u_trace_marker.c u/trace_marker: Add env varible to enable/disable tracing 2022-04-18 22:41:17 +00:00
u_trace_marker.h a/util: Silence percetto warnings also when building with g++ 2022-05-02 17:31:11 +02:00
u_var.cpp a/util: Resolve warnings 2022-07-14 14:17:35 +00:00
u_var.h u/var: Add u_var_curves 2022-07-12 12:47:05 +00:00
u_vector.cpp u/vector: Add generic wrapper for std::vector 2022-07-07 15:35:04 +00:00
u_vector.h u/vector: Add generic wrapper for std::vector 2022-07-07 15:35:04 +00:00
u_verify.h xrt: Rename all "num" parameters and fields to "count" (or "capacity" as appropriate) 2021-11-13 12:04:38 +00:00
u_win32_com_guard.cpp a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_win32_com_guard.hpp a/util: Improve word choice/clarity 2022-05-17 17:39:52 -05:00
u_worker.c u/worker: Init mutex and cond var 2022-05-19 23:13:48 +01:00
u_worker.cpp u/worker: Add task worker helper 2022-03-11 15:29:16 +00:00
u_worker.h u/worker: Add #pragma once 2022-03-23 20:56:15 +00:00
u_worker.hpp auxiliary: Fix or disable a number of warnings 2022-04-12 23:06:11 +00:00