The open source OpenXR runtime
0
fork

Configure Feed

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

u/mesh: Tidy header

+46 -23
+46 -23
src/xrt/auxiliary/util/u_distortion_mesh.h
··· 16 16 extern "C" { 17 17 #endif 18 18 19 + 19 20 /*! 20 - * Values to create a distortion mesh from panotools values. 21 - * 22 21 * @ingroup aux_util 22 + * @{ 23 + */ 24 + 25 + /* 26 + * 27 + * Panotools distortion 28 + * 29 + */ 30 + 31 + /*! 32 + * Values to create a distortion mesh from panotools values. 23 33 */ 24 34 struct u_panotools_values 25 35 { ··· 36 46 }; 37 47 38 48 /*! 39 - * Values to create a distortion mesh from Vive configuration values. 49 + * Distortion correction implementation for Panotools distortion values. 50 + */ 51 + bool 52 + u_compute_distortion_panotools(struct u_panotools_values *values, 53 + float u, 54 + float v, 55 + struct xrt_uv_triplet *result); 56 + 57 + 58 + /* 40 59 * 41 - * @ingroup aux_util 60 + * Vive, Vive Pro & Index distortion 61 + * 62 + */ 63 + 64 + /*! 65 + * Values to create a distortion mesh from Vive configuration values. 42 66 */ 43 67 struct u_vive_values 44 68 { ··· 56 80 }; 57 81 58 82 /*! 59 - * Distortion correction implementation for Panotools distortion values. 60 - * 61 - * @ingroup aux_util 62 - */ 63 - bool 64 - u_compute_distortion_panotools(struct u_panotools_values *values, 65 - float u, 66 - float v, 67 - struct xrt_uv_triplet *result); 68 - 69 - /*! 70 83 * Distortion correction implementation for the Vive, Vive Pro, Valve Index 71 84 * distortion values found in the HMD configuration. 72 - * 73 - * @ingroup aux_util 74 85 */ 75 86 bool 76 87 u_compute_distortion_vive(struct u_vive_values *values, 77 88 float u, 78 89 float v, 79 90 struct xrt_uv_triplet *result); 91 + 92 + 93 + /* 94 + * 95 + * None distortion 96 + * 97 + */ 80 98 81 99 /*! 82 100 * Identity distortion correction sets all result coordinates to u,v. 83 - * 84 - * @ingroup aux_util 85 101 */ 86 102 bool 87 103 u_compute_distortion_none(float u, float v, struct xrt_uv_triplet *result); 88 104 89 105 /*! 90 106 * Helper function for none distortion devices. 91 - * 92 - * @ingroup aux_util 93 107 */ 94 108 bool 95 109 u_distortion_mesh_none(struct xrt_device *xdev, ··· 99 113 struct xrt_uv_triplet *result); 100 114 101 115 116 + /* 117 + * 118 + * Mesh generation functions. 119 + * 120 + */ 121 + 102 122 /*! 103 123 * Given a @ref xrt_device generates meshes by calling 104 124 * xdev->compute_distortion(), populates `xdev->hmd_parts.distortion.mesh` & ··· 114 134 * Given a @ref xrt_device generates a no distortion mesh, populates 115 135 * `xdev->hmd_parts.distortion.mesh` & `xdev->hmd_parts.distortion.models`. 116 136 * 117 - * @ingroup aux_util 118 137 * @relatesalso xrt_device 119 138 */ 120 139 void ··· 125 144 * `xdev->compute_distortion()` and populates `xdev->hmd_parts.distortion.mesh` 126 145 * & `xdev->hmd_parts.distortion.models`. 127 146 * 128 - * @ingroup aux_util 129 147 * @relatesalso xrt_device 130 148 */ 131 149 void 132 150 u_distortion_mesh_set_none(struct xrt_device *xdev); 151 + 152 + 153 + /*! 154 + * @} 155 + */ 133 156 134 157 135 158 #ifdef __cplusplus