xrt: Doc cleanups/fixes
Fixing doxygen warnings Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2669>
18 unmodified lines19202122232324252627282930313233343536373839404117 unmodified lines5960616252535455565758596063646566135 unmodified linesExpand all18 unmodified linesextern "C" {#endif
struct _JavaVM;struct xrt_instance_android;struct xrt_instance_info;
/*! * @interface xrt_instance_android * * This is the interface to the Android-specific "aspect" of @ref xrt_instance. * * It is expected that your implementation of this interface will be nested in your * implementation of @ref xrt_instance. It does not have a separate create or * destroy function as it is an (optional) aspect of the instance. */struct xrt_instance_android;
/*! * Distinguishes the possible Android lifecycle events from each other. * * Used as a bitmask when registering for callbacks. */17 unmodified lines void *userdata);
#ifdef XRT_OS_ANDROID
/*! * @interface xrt_instance_android * * This is the interface to the Android-specific "aspect" of @ref xrt_instance. * * It is expected that your implementation of this interface will be nested in your * implementation of @ref xrt_instance. It does not have a separate create or * destroy function as it is an (optional) aspect of the instance. */struct xrt_instance_android{
/*!135 unmodified linesExpand all22 unmodified lines23242526272829303132194 unmodified linesExpand all22 unmodified lines// for atomic intrinsics#include "xrt_windows.h"// Older MSVC versions do not have stdalign.h, define it manually using __declspec(align).#define XRT_ALIGNAS(n) __declspec(align(n))#elif defined(XRT_DOXYGEN)#define XRT_ALIGNAS(align)#else // _MSC_VER#include <stdalign.h>#define XRT_ALIGNAS(align) alignas(align)#endif194 unmodified linesExpand all1865 unmodified linesExpand all18661867186818691870187018711872187318741875187618771877187818791880188130 unmodified lines191219131914191519161916191719181919192068 unmodified lines198919901991199219931993199419951996199782 unmodified lines2080208120822083208420852086208720881 unmodified line20902091209220932093209420952096209720982 unmodified lines21012102210321042104210521062107210821092110211121122112211321142115211521162117211821192119212021212122212221232124212521262127300 unmodified linesExpand all1865 unmodified linesExpand all
struct xrt_facial_eye_expression_set_htc{ struct xrt_facial_base_expression_set_htc base; // ordered by xrt_eye_expression_htc /// ordered by @ref xrt_eye_expression_htc float expression_weights[XRT_FACIAL_EXPRESSION_EYE_COUNT_HTC];};
struct xrt_facial_lip_expression_set_htc{ struct xrt_facial_base_expression_set_htc base; // ordered by xrt_lip_expression_htc /// ordered by @ref xrt_lip_expression_htc float expression_weights[XRT_FACIAL_EXPRESSION_LIP_COUNT_HTC];};
struct xrt_facial_expression_set2_fb30 unmodified lines struct xrt_facial_expression_set_android face_expression_set_android; };};
// XR_FB_body_tracking/// @addtogroup XR_FB_body_trackingenum xrt_body_joint_fb{ XRT_BODY_JOINT_ROOT_FB = 0, XRT_BODY_JOINT_HIPS_FB = 1,68 unmodified lines XRT_BODY_JOINT_COUNT_FB = 70, XRT_BODY_JOINT_NONE_FB = -1,};
// XR_META_body_tracking_full_body/// @addtogroup XR_META_body_tracking_full_bodyenum xrt_full_body_joint_meta{ XRT_FULL_BODY_JOINT_ROOT_META = 0, XRT_FULL_BODY_JOINT_HIPS_META = 1,82 unmodified lines XRT_FULL_BODY_JOINT_COUNT_META = 84, XRT_FULL_BODY_JOINT_NONE_META = 85,};
/// @addtogroup XR_META_body_tracking_full_bodyenum xrt_body_joint_set_type_fb{ XRT_BODY_JOINT_SET_UNKNOWN = 0, // XR_FB_body_tracking1 unmodified line // XR_META_body_tracking_full_body XRT_BODY_JOINT_SET_FULL_BODY_META,};
// XR_META_body_tracking_calibration/// @addtogroup XR_META_body_tracking_calibrationenum xrt_body_tracking_calibration_state_meta{ // Valid calibration, pose is safe to use XRT_BODY_TRACKING_CALIBRATION_STATE_VALID_META = 1,2 unmodified lines // Calibration is invalid, pose is not safe to use XRT_BODY_TRACKING_CALIBRATION_STATE_INVALID_META = 3,};
// XR_FB_body_tracking/// @addtogroup XR_FB_body_trackingstruct xrt_body_skeleton_joint_fb{ struct xrt_pose pose; int32_t joint; int32_t parent_joint;};
// XR_FB_body_tracking/// @addtogroup XR_FB_body_trackingstruct xrt_body_skeleton_fb{ // ordered by xrt_body_joint_fb /// ordered by @ref xrt_body_joint_fb struct xrt_body_skeleton_joint_fb joints[XRT_BODY_JOINT_COUNT_FB];};
// XR_META_body_tracking_full_body/// @addtogroup XR_META_body_tracking_full_bodystruct xrt_full_body_skeleton_meta{ // ordered by xrt_full_body_joint_meta /// ordered by @ref xrt_full_body_joint_meta struct xrt_body_skeleton_joint_fb joints[XRT_FULL_BODY_JOINT_COUNT_META];};
// structure is a container to represent the body skeleton in T-pose including the joint hierarchy,300 unmodified linesExpand all432 unmodified linesExpand all433434435436437437438439440441267 unmodified linesExpand all709710711712713714715716717713714715716717718442 unmodified linesExpand all432 unmodified linesExpand all /*! * @brief Gets the face tracking calibration state * * @param[in] xdev The device. * @param[in] out_value Is face tracking calibrated? * @param[in] out_face_is_calibrated Is face tracking calibrated? * * @see xrt_input_name */ xrt_result_t (*get_face_calibration_state_android)(struct xrt_device *xdev, bool *out_face_is_calibrated);267 unmodified linesExpand all * * This function should never block, and never wait on congested locks. * * @param[in] xdev The device. * @param[in] brightness Desired display brightness. Usually between 0 and 1. Some devices may * allow exceeding 1 if the supported range exceeds 100%, but it will be clamped to * the supported range. * @param[in] relative Whether to add \a brightness to the current brightness, instead of overwriting * the current brightness. * @param[in] mode The mode to query with. * @param[out] out_info Populated with the output data. */ xrt_result_t (*get_compositor_info)(struct xrt_device *xdev, const struct xrt_device_compositor_mode *mode, struct xrt_device_compositor_info *out_info);442 unmodified linesExpand all65 unmodified lines6667686970717071727374759 unmodified lines858687888989909192935 unmodified lines9910010110210310310410510610752 unmodified lines16016116216316416416516616716716816917017192 unmodified lines26426526626726826826927027127127227327427529 unmodified lines65 unmodified lines * Thread Safety and Reference Counting: * Each thread that references an xrt_future must properly manage the reference count using * @ref xrt_future_reference when entering and exiting the thread's scope. * * @see "Server-side / driver — implementing async callbacks" in @ref * [async-functions-and-futures](../../../../doc/async-functions-and-futures.md) for producer example code * @see "Server-side / driver — implementing async callbacks" in @ref async for producer example * code */struct xrt_future{ /*!9 unmodified lines /*! * @brief Gets the current state of the future * * @param[in] xft The future. * @param[out] out_state The current state of @ref xft * @param[out] out_state The current state of @p xft * * @note Consumer Interface * * @note Blocking behavior - non-blocking5 unmodified lines /*! * @brief Gets the future results (after async operation has finished) * * @param[in] xft The future. * @param[out] out_result The future result of @ref xft * @param[out] out_result The future result of @p xft * * @note Consumer Interface * * @note Blocking behavior - Non-blocking w.r.t. result: returns immediately,52 unmodified lines */ xrt_result_t (*is_cancel_requested)(const struct xrt_future *xft, bool *out_request_cancel);
/*! * @brief Signals that the asynchronous operation has completed and sets the future’s result. * @brief Signals that the asynchronous operation has completed and sets the future's result. * * @param[in] xft The future. * @param[in] ft_result the result of an async operation associated with @ref xft. * @param[in] ft_result the result of an async operation associated with @p xft. * * @note Producer interface * * @note Blocking behavior - Non-blocking, may briefly block acquiring an internal mutex to check/consume state92 unmodified lines * * @public @memberof xrt_future */static inline xrt_result_txrt_future_wait(struct xrt_future *xft, int64_t timeout)xrt_future_wait(struct xrt_future *xft, int64_t timeout_ns){ assert(xft && xft->wait); return xft->wait(xft, timeout); return xft->wait(xft, timeout_ns);}
/*! * Helper function for @ref xrt_future::is_cancel_requested.29 unmodified lines135 unmodified linesExpand all13613713813914014114014114214314314414514614614714814814915015115115215215315415415515615715815919 unmodified lines17918018118218218318418518618731 unmodified lines135 unmodified linesExpand all uint32_t vertices_start_index;};
/*! * Each plane has n polygons; ultimately plane metadata from @ref locations and @ref vetices is * reconstructed. Therefore lay out the data in flattened arrays: * Each plane has n polygons; ultimately plane metadata from @ref xrt_plane_detections_ext::locations and @ref * xrt_plane_detections_ext::vertices is reconstructed. Therefore lay out the data in flattened arrays: * * @ref locations stores continuous metadata for each plane: * @ref xrt_plane_detections_ext::locations stores continuous metadata for each plane: * location 1 | location 2 | location 3 | location 4 | ... * * @ref polygon_info_start_index is a helper array to go from a location entry to a polygon_info entry. * @ref xrt_plane_detections_ext::polygon_info_start_index is a helper array to go from a location entry to a * polygon_info entry. * * @ref polygon_info stores info (metadata) for each polygon, flattened: * @ref xrt_plane_detections_ext::polygon_infos stores info (metadata) for each polygon, flattened: * plane 1 polygon 1 info | plane 1 polygon 2 info | ... | plane 2 polygon 1 info | ... * * @ref polygon_info.vertices_start_index is a helper array to go from a polygon_info entry to vertices * entry. * @ref xrt_plane_polygon_info_ext::vertices_start_index is a helper array to go from a @p polygon_info entry to * @p vertices entry. * * @ref vertices stores vertex data for each polygon, for each plane, flattened: * @ref xrt_plane_detections_ext::vertices stores vertex data for each polygon, for each plane, flattened: * plane 1 polygon 1 vertex 1 | plane 1 polygon 1 vertex 2 | ... | plane 1 polygon 2 vertex 1 | ... * * To reconstruct the vertices of a certain plane polygon: * - Find the index i of the plane with the requested plane_id in the locations array.19 unmodified lines ///! array of detected locations. struct xrt_plane_detector_location_ext *locations;
//! Parallel array to @ref locations. //! Index into @ref polygon_info of polygon_infos for all planes of a query. //! Index into polygon_info of @ref polygon_infos for all planes of a query. uint32_t *polygon_info_start_index;
//! size of @ref polygon_infos array. uint32_t polygon_info_size;31 unmodified lines147 unmodified linesExpand all148149150151152153154155152153154155156157158159263 unmodified linesExpand all147 unmodified linesExpand all * * Populated by a call from the @ref xrt_system_devices interface. * * When the caller of @ref xrt_system_devices_get_roles sees a change (based on * comparing @ref generation_id) the caller must do the needed actions to handle * device changes. For example, for the OpenXR state tracker this may include * rebinding, queuing a change to the current interaction profile, and queuing * the events associated with such a change. * comparing @ref xrt_system_roles::generation_id) the caller must do the needed * actions to handle device changes. For example, for the OpenXR state tracker * this may include rebinding, queuing a change to the current interaction * profile, and queuing the events associated with such a change. * * @see xrt_system_devices * @ingroup xrt_iface */263 unmodified linesExpand all42 unmodified lines43444546474748495050515253535455565657585959606162626364656566676869342 unmodified linesExpand all42 unmodified lines * @todo Is none, Colour, IR, Magnetic the kind of type we need to know about? */enum xrt_tracking_type{ // The device(s) are never tracked. //! The device(s) are never tracked. XRT_TRACKING_TYPE_NONE,
// The device(s) are tracked by RGB camera(s). //! The device(s) are tracked by RGB camera(s). XRT_TRACKING_TYPE_RGB,
// The device(s) are tracked by Ligthhouse //! The device(s) are tracked by Ligthhouse XRT_TRACKING_TYPE_LIGHTHOUSE,
// The device(s) are tracked by magnetic fields, eg. Razer Hydra. //! The device(s) are tracked by magnetic fields, eg. Razer Hydra. XRT_TRACKING_TYPE_MAGNETIC,
// The device(s) are tracked by external SLAM //! The device(s) are tracked by external SLAM XRT_TRACKING_TYPE_EXTERNAL_SLAM,
// The device(s) are tracked by other methods. //! The device(s) are tracked by other methods. XRT_TRACKING_TYPE_OTHER,
// The device(s) are (re)attachable. //! The device(s) are (re)attachable. XRT_TRACKING_TYPE_ATTACHABLE,};
/*!342 unmodified linesExpand all