mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
a/tracking: Tidy and document FrameMat [NFC]
This commit is contained in:
parent
920949ecae
commit
e9d8e0db21
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2021, Collabora, Ltd.
|
||||
// Copyright 2021-2023, Collabora, Ltd.
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
/*!
|
||||
* @file
|
||||
|
@ -15,12 +15,15 @@
|
|||
namespace xrt::auxiliary::tracking {
|
||||
|
||||
|
||||
/*!
|
||||
* This class implements the @ref xrt_frame interface, allowing interfacing to
|
||||
* @p cv::Mat from C code. Keeps a reference to the cv::Mat and so the data
|
||||
* alive, this class is freed when the reference count reaches zero.
|
||||
*/
|
||||
class FrameMat
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
* Additional optional parameters for frame creation.
|
||||
*/
|
||||
//! Additional optional parameters for frame creation.
|
||||
class Params
|
||||
{
|
||||
public:
|
||||
|
@ -28,16 +31,14 @@ public:
|
|||
uint64_t timestamp_ns;
|
||||
};
|
||||
|
||||
|
||||
|
||||
// Exposed to the C api.
|
||||
//! Exposed @ref xrt_frame API.
|
||||
struct xrt_frame frame = {};
|
||||
|
||||
// The cv::Mat that holds the data.
|
||||
cv::Mat matrix = cv::Mat();
|
||||
|
||||
|
||||
|
||||
public: // Methods
|
||||
/*!
|
||||
* Only public due to C needed to destroy it.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue