![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <MKVReader.h>
Public Member Functions | |
| MKVReader () | |
| Default Constructor. More... | |
| virtual | ~MKVReader () |
| bool | IsOpened () |
| Check If the mkv file is opened. More... | |
| bool | IsEOF () |
| Check if the mkv file is all read. More... | |
| bool | Open (const std::string &filename) |
| void | Close () |
| Close the opened mkv playback. More... | |
| MKVMetadata & | GetMetadata () |
| Get metadata of the mkv playback. More... | |
| bool | SeekTimestamp (size_t timestamp) |
| Seek to the timestamp (in us). More... | |
| std::shared_ptr< geometry::RGBDImage > | NextFrame () |
| Get next frame from the mkv playback and returns the RGBD object. More... | |
AzureKinect mkv file reader.
Definition at line 26 of file MKVReader.h.
| cloudViewer::io::MKVReader::MKVReader | ( | ) |
Default Constructor.
Definition at line 26 of file MKVReader.cpp.
|
inlinevirtual |
Definition at line 30 of file MKVReader.h.
| void cloudViewer::io::MKVReader::Close | ( | ) |
Close the opened mkv playback.
Definition at line 62 of file MKVReader.cpp.
References cloudViewer::io::k4a_plugin::k4a_playback_close().
Referenced by Open(), and cloudViewer::io::pybind_sensor().
|
inline |
Get metadata of the mkv playback.
Definition at line 45 of file MKVReader.h.
Referenced by cloudViewer::io::pybind_sensor().
|
inline |
Check if the mkv file is all read.
Definition at line 35 of file MKVReader.h.
Referenced by cloudViewer::io::pybind_sensor().
| bool cloudViewer::io::MKVReader::IsOpened | ( | ) |
Check If the mkv file is opened.
Definition at line 28 of file MKVReader.cpp.
Referenced by NextFrame(), Open(), cloudViewer::io::pybind_sensor(), and SeekTimestamp().
| std::shared_ptr< geometry::RGBDImage > cloudViewer::io::MKVReader::NextFrame | ( | ) |
Get next frame from the mkv playback and returns the RGBD object.
Definition at line 141 of file MKVReader.cpp.
References cloudViewer::io::AzureKinectSensor::DecompressCapture(), IsOpened(), cloudViewer::io::k4a_plugin::k4a_capture_release(), cloudViewer::io::k4a_plugin::k4a_playback_get_next_capture(), LogError, and LogInfo.
Referenced by cloudViewer::io::pybind_sensor().
| bool cloudViewer::io::MKVReader::Open | ( | const std::string & | filename | ) |
Open an mkv playback.
| filename | Path to the mkv file. |
Definition at line 45 of file MKVReader.cpp.
References Close(), cloudViewer::io::MKVMetadata::ConvertFromJsonValue(), filename, IsOpened(), cloudViewer::io::k4a_plugin::k4a_playback_open(), and LogWarning.
Referenced by cloudViewer::io::pybind_sensor().
| bool cloudViewer::io::MKVReader::SeekTimestamp | ( | size_t | timestamp | ) |
Seek to the timestamp (in us).
Definition at line 120 of file MKVReader.cpp.
References IsOpened(), cloudViewer::io::k4a_plugin::k4a_playback_seek_timestamp(), LogWarning, and cloudViewer::io::MKVMetadata::stream_length_usec_.
Referenced by cloudViewer::io::pybind_sensor().