mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-11 09:25:26 +00:00
6ecc1e30f3
This allows the data to be safely shared and passed around, even allowing us to tag frames with the data and passed around that way instead. Since it now can be passed around more safely make the prober call the save function instead of the calibration code. This then forms a basis for further work where we can hook this up into a more proper configuration file.
29 lines
627 B
C
29 lines
627 B
C
// Copyright 2019-2020, Collabora, Ltd.
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
/*!
|
|
* @file
|
|
* @brief Small data helpers for calibration.
|
|
* @author Jakob Bornecrantz <jakob@collabora.com>
|
|
* @ingroup aux_tracking
|
|
*/
|
|
|
|
#include "tracking/t_tracking.h"
|
|
#include "util/u_misc.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
void
|
|
t_stereo_camera_calibration_alloc(struct t_stereo_camera_calibration **out_c)
|
|
{
|
|
struct t_stereo_camera_calibration *c =
|
|
U_TYPED_CALLOC(struct t_stereo_camera_calibration);
|
|
t_stereo_camera_calibration_reference(out_c, c);
|
|
}
|
|
|
|
void
|
|
t_stereo_camera_calibration_destroy(struct t_stereo_camera_calibration *c)
|
|
{
|
|
free(c);
|
|
}
|