2021-06-10 19:18:34 +00:00
|
|
|
// Copyright 2019-2021, Collabora, Ltd.
|
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
/*!
|
|
|
|
* @file
|
|
|
|
* @brief Interface header for DepthAI camera.
|
|
|
|
* @author Moses Turner <moses@collabora.com>
|
|
|
|
* @author Jakob Bornecrantz <jakob@collabora.com>
|
|
|
|
* @ingroup drv_depthai
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "xrt/xrt_frameserver.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2021-10-09 21:33:31 +00:00
|
|
|
struct t_stereo_camera_calibration;
|
|
|
|
|
|
|
|
|
2021-06-10 19:18:34 +00:00
|
|
|
/*!
|
|
|
|
* @defgroup drv_depthai DepthAI frameserver driver
|
|
|
|
* @ingroup drv
|
|
|
|
*
|
|
|
|
* @brief Frameserver for the DepthAI camera module.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Create a DepthAI frameserver using a single RGB camera.
|
|
|
|
*
|
|
|
|
* @ingroup drv_depthai
|
|
|
|
*/
|
|
|
|
struct xrt_fs *
|
|
|
|
depthai_fs_single_rgb(struct xrt_frame_context *xfctx);
|
|
|
|
|
2021-10-09 21:22:13 +00:00
|
|
|
/*!
|
|
|
|
* Create a DepthAI frameserver using two gray cameras.
|
|
|
|
*
|
|
|
|
* @ingroup drv_depthai
|
|
|
|
*/
|
|
|
|
struct xrt_fs *
|
|
|
|
depthai_fs_stereo_gray(struct xrt_frame_context *xfctx);
|
|
|
|
|
2021-10-09 21:33:31 +00:00
|
|
|
/*!
|
|
|
|
* Get the stereo calibration from a depthAI frameserver.
|
|
|
|
*
|
|
|
|
* @ingroup drv_depthai
|
|
|
|
*/
|
2021-10-12 14:37:26 +00:00
|
|
|
bool
|
2021-10-09 21:33:31 +00:00
|
|
|
depthai_fs_get_stereo_calibration(struct xrt_fs *xfs, struct t_stereo_camera_calibration **c_ptr);
|
|
|
|
|
2021-06-10 19:18:34 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|