ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
MKVMetadata.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <IJsonConvertible.h>
11 
13 
14 enum class SensorType { AZURE_KINECT = 0, REAL_SENSE = 1 };
15 
16 namespace cloudViewer {
17 
18 namespace camera {
20 }
21 
22 namespace io {
23 
28 public:
29  bool ConvertToJsonValue(Json::Value &value) const override;
30  bool ConvertFromJsonValue(const Json::Value &value) override;
31 
32 public:
37 
38  std::string serial_number_ = "";
40  uint64_t stream_length_usec_ = 0;
42  int width_;
44  int height_;
45  std::string color_mode_;
46  std::string depth_mode_;
47 };
48 
49 } // namespace io
50 } // namespace cloudViewer
SensorType
Definition: MKVMetadata.h:14
Contains the pinhole camera intrinsic parameters.
uint64_t stream_length_usec_
Length of the video (usec).
Definition: MKVMetadata.h:40
bool ConvertFromJsonValue(const Json::Value &value) override
Definition: MKVMetadata.cpp:30
camera::PinholeCameraIntrinsic intrinsics_
Shared intrinsics betwee RGB & depth.
Definition: MKVMetadata.h:36
int width_
Width of the video.
Definition: MKVMetadata.h:42
bool ConvertToJsonValue(Json::Value &value) const override
Definition: MKVMetadata.cpp:17
int height_
Height of the video.
Definition: MKVMetadata.h:44
Generic file read and write utility for python interface.