ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::io::MKVReader Class Reference

#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...
 
MKVMetadataGetMetadata ()
 Get metadata of the mkv playback. More...
 
bool SeekTimestamp (size_t timestamp)
 Seek to the timestamp (in us). More...
 
std::shared_ptr< geometry::RGBDImageNextFrame ()
 Get next frame from the mkv playback and returns the RGBD object. More...
 

Detailed Description

AzureKinect mkv file reader.

Definition at line 26 of file MKVReader.h.

Constructor & Destructor Documentation

◆ MKVReader()

cloudViewer::io::MKVReader::MKVReader ( )

Default Constructor.

Definition at line 26 of file MKVReader.cpp.

◆ ~MKVReader()

virtual cloudViewer::io::MKVReader::~MKVReader ( )
inlinevirtual

Definition at line 30 of file MKVReader.h.

Member Function Documentation

◆ Close()

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().

◆ GetMetadata()

MKVMetadata& cloudViewer::io::MKVReader::GetMetadata ( )
inline

Get metadata of the mkv playback.

Definition at line 45 of file MKVReader.h.

Referenced by cloudViewer::io::pybind_sensor().

◆ IsEOF()

bool cloudViewer::io::MKVReader::IsEOF ( )
inline

Check if the mkv file is all read.

Definition at line 35 of file MKVReader.h.

Referenced by cloudViewer::io::pybind_sensor().

◆ IsOpened()

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().

◆ NextFrame()

std::shared_ptr< geometry::RGBDImage > cloudViewer::io::MKVReader::NextFrame ( )

◆ Open()

bool cloudViewer::io::MKVReader::Open ( const std::string &  filename)

Open an mkv playback.

Parameters
filenamePath 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().

◆ SeekTimestamp()

bool cloudViewer::io::MKVReader::SeekTimestamp ( size_t  timestamp)

The documentation for this class was generated from the following files: