The open source OpenXR runtime
0
fork

Configure Feed

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

t/file: Expose non-hack version of the calibration data save function

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
7b049a9d f47c384b

+16 -5
+1
doc/changes/aux/mr.266.3.md
··· 1 + tracking: Expose save function with none hardcode path for calibration data.
+5 -3
src/xrt/auxiliary/tracking/t_file.cpp
··· 268 268 */ 269 269 270 270 extern "C" bool 271 - t_file_save_raw_data(FILE *calib_file, struct t_stereo_camera_calibration *data) 271 + t_stereo_camera_calibration_save_v1(FILE *calib_file, 272 + struct t_stereo_camera_calibration *data) 272 273 { 273 274 StereoCameraCalibrationWrapper wrapped(data); 274 275 // Dummy matrix ··· 343 344 } 344 345 345 346 extern "C" bool 346 - t_file_save_raw_data_hack(struct t_stereo_camera_calibration *data) 347 + t_stereo_camera_calibration_save_v1_hack( 348 + struct t_stereo_camera_calibration *data) 347 349 { 348 350 char path_string[PATH_MAX]; 349 351 char file_string[PATH_MAX]; ··· 366 368 return false; 367 369 } 368 370 369 - t_file_save_raw_data(calib_file, data); 371 + t_stereo_camera_calibration_save_v1(calib_file, data); 370 372 371 373 fclose(calib_file); 372 374
+9 -1
src/xrt/auxiliary/tracking/t_tracking.h
··· 186 186 struct t_stereo_camera_calibration **out_data); 187 187 188 188 /*! 189 + * Save the given stereo calibration data to the given file. 190 + */ 191 + bool 192 + t_stereo_camera_calibration_save_v1(FILE *calib_file, 193 + struct t_stereo_camera_calibration *data); 194 + 195 + /*! 189 196 * Save raw calibration data to file, hack until prober has storage for such 190 197 * things. 191 198 */ 192 199 bool 193 - t_file_save_raw_data_hack(struct t_stereo_camera_calibration *data); 200 + t_stereo_camera_calibration_save_v1_hack( 201 + struct t_stereo_camera_calibration *data); 194 202 195 203 196 204 /*
+1 -1
src/xrt/state_trackers/gui/gui_scene_calibrate.c
··· 66 66 } 67 67 68 68 // Save the data. 69 - t_file_save_raw_data_hack(cs->status.stereo_data); 69 + t_stereo_camera_calibration_save_v1_hack(cs->status.stereo_data); 70 70 71 71 // Free data, no longer needed. 72 72 t_stereo_camera_calibration_reference(&cs->status.stereo_data, NULL);