Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK
k4a::data_block Class Reference

Wrapper for k4a_playback_data_block_t. More...

#include <k4arecord/playback.hpp>

Public Member Functions

 data_block (k4a_playback_data_block_t handle=nullptr) noexcept
 Creates a data_block from a k4a_playback_data_block_t Takes ownership of the handle, you should not call k4a_playback_data_block_release on the handle after giving it to the data_block; the data_block will take care of that.
 
 data_block (const data_block &)=delete
 
data_blockoperator= (const data_block &)=delete
 
 data_block (data_block &&other) noexcept
 Moves another data_block into a new data_block.
 
data_blockoperator= (data_block &&other) noexcept
 Moves another data_block into this data_block; other is set to invalid.
 
 operator bool () const noexcept
 Returns true if the data_block is valid, false otherwise.
 
bool is_valid () const noexcept
 Returns true if the data_block is valid, false otherwise.
 
void reset () noexcept
 Releases the underlying k4a_playback_data_block_t; the data_block is set to invalid.
 
std::chrono::microseconds get_device_timestamp_usec () const noexcept
 Get the time stamp in micro seconds for the given data_block. More...
 
size_t get_buffer_size () const noexcept
 Get the size of the data_block buffer. More...
 
const uint8_t * get_buffer () const noexcept
 Get the data_block buffer. More...
 

Detailed Description


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