Open3D (C++ API)  0.18.0
Loading...
Searching...
No Matches
MKVWriter.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// Copyright (c) 2018-2023 www.open3d.org
5// SPDX-License-Identifier: MIT
6// ----------------------------------------------------------------------------
7
8#pragma once
9
13
14struct _k4a_device_configuration_t; // Alias of k4a_device_configuration_t
15struct _k4a_device_t; // typedef _k4a_device_t* k4a_device_t;
16struct _k4a_capture_t; // typedef _k4a_capture_t* k4a_capture_t;
17struct _k4a_record_t; // typedef _k4a_record_t* k4a_record_t;
18
19namespace open3d {
20namespace io {
21
22class MKVWriter {
23public:
24 MKVWriter();
25 virtual ~MKVWriter() {}
26
27 bool IsOpened();
28
29 /* We assume device is already set properly according to config */
30 bool Open(const std::string &filename,
31 const _k4a_device_configuration_t &config,
32 _k4a_device_t *device);
33 void Close();
34
35 bool SetMetadata(const MKVMetadata &metadata);
36 bool NextFrame(_k4a_capture_t *);
37
38private:
39 _k4a_record_t *handle_;
40 MKVMetadata metadata_;
41};
42} // namespace io
43} // namespace open3d
Definition MKVMetadata.h:26
Definition MKVWriter.h:22
virtual ~MKVWriter()
Definition MKVWriter.h:25
bool IsOpened()
Definition MKVWriter.cpp:38
bool Open(const std::string &filename, const _k4a_device_configuration_t &config, _k4a_device_t *device)
Definition MKVWriter.cpp:21
bool SetMetadata(const MKVMetadata &metadata)
Definition MKVWriter.cpp:40
MKVWriter()
Definition MKVWriter.cpp:19
bool NextFrame(_k4a_capture_t *)
Definition MKVWriter.cpp:57
void Close()
Definition MKVWriter.cpp:50
Definition PinholeCameraIntrinsic.cpp:16