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
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::camera::PinholeCameraIntrinsic::ConvertToJsonValue
bool ConvertToJsonValue(Json::Value &value) const override
Definition: PinholeCameraIntrinsic.cpp:45
SensorType::AZURE_KINECT
@ AZURE_KINECT
cloudViewer::io::MKVMetadata::depth_mode_
std::string depth_mode_
Definition: MKVMetadata.h:46
SensorType::REAL_SENSE
@ REAL_SENSE
cloudViewer::io::MKVMetadata::stream_length_usec_
uint64_t stream_length_usec_
Length of the video (usec).
Definition: MKVMetadata.h:40
cloudViewer::camera::PinholeCameraIntrinsic::ConvertFromJsonValue
bool ConvertFromJsonValue(const Json::Value &value) override
Definition: PinholeCameraIntrinsic.cpp:55
cloudViewer::io::MKVMetadata::ConvertToJsonValue
bool ConvertToJsonValue(Json::Value &value) const override
Definition: MKVMetadata.cpp:17
cloudViewer::io::MKVMetadata::height_
int height_
Height of the video.
Definition: MKVMetadata.h:44
MKVMetadata.h
cloudViewer::utility::IJsonConvertible
Definition: IJsonConvertible.h:41
cloudViewer::io::MKVMetadata::width_
int width_
Width of the video.
Definition: MKVMetadata.h:42
cloudViewer::camera::PinholeCameraIntrinsic
Contains the pinhole camera intrinsic parameters.
Definition: PinholeCameraIntrinsic.h:34
cloudViewer::io::MKVMetadata::ConvertFromJsonValue
bool ConvertFromJsonValue(const Json::Value &value) override
Definition: MKVMetadata.cpp:30
cloudViewer::io::MKVMetadata::serial_number_
std::string serial_number_
Definition: MKVMetadata.h:38
cloudViewer::io::MKVMetadata::color_mode_
std::string color_mode_
Definition: MKVMetadata.h:45
SensorType
SensorType
Definition: MKVMetadata.h:14
cloudViewer::io::MKVMetadata::intrinsics_
camera::PinholeCameraIntrinsic intrinsics_
Shared intrinsics betwee RGB & depth.
Definition: MKVMetadata.h:36
Value
static vtkPVTrivialProducerStaticInternal Value
Definition: vtkDistributedTrivialProducer.cxx:65
IJsonConvertible.h
PinholeCameraIntrinsic.h
cloudViewer::io::MKVMetadata
Definition: MKVMetadata.h:27