1#ifndef _CHRONOPTICS_TOF_STREAM_HPP_
2#define _CHRONOPTICS_TOF_STREAM_HPP_
4#include <chronoptics/tof/stream.h>
6#include <chronoptics/tof/base.hpp>
40class Stream :
public detail::Base<tof_stream, tof_stream_delete> {
51 return static_cast<FrameType
>(tof_stream_frame_type(this->ptr_, TOF_ERROR_HANDLER{}));
58 return tof_stream_frame_id(this->ptr_, TOF_ERROR_HANDLER{});
65 return tof_stream_modulation_frequency(this->ptr_, TOF_ERROR_HANDLER{});
72 return tof_stream_integration_time(this->ptr_, TOF_ERROR_HANDLER{});
79 return tof_stream_process(this->ptr_, TOF_ERROR_HANDLER{});
88inline const char* frame_type_to_string(FrameType frame_type) {
89 return tof_frame_type_to_string(
static_cast<tof_frame_type
>(frame_type), TOF_ERROR_HANDLER{});
This class describes the different data streams coming from the camera.
float modulation_frequency() const
Get the modulation frequency of the frame.
uint32_t integration_time() const
Get the integration time of the frame.
uint32_t frame_id() const
Get the frame id.
uint32_t process() const
Get a bit array of the processing performed on the frame.
Stream(tof_stream_t ptr=nullptr)
Construct from pointer.
FrameType frame_type() const
Get the frame type.