Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
|
Go to the documentation of this file.
2 #ifndef LIBREALSENSE_TIMESTAMPS_H
3 #define LIBREALSENSE_TIMESTAMPS_H
5 #include "../include/librealsense/rs.h"
7 #include <condition_variable>
35 std::deque<rs_timestamp_data> data_queue;
51 timestamp_corrector(std::atomic<uint32_t>* event_queue_size, std::atomic<uint32_t>* events_timeout);
62 std::condition_variable cv;
63 std::atomic<uint32_t>* event_queue_size;
64 std::atomic<uint32_t>* events_timeout;
71 #endif // LIBREALSENSE_TIMESTAMPS_H
void push_back_data(rs_timestamp_data data)
rs_stream
Streams are different types of data provided by RealSense devices.
Definition: rs.h:33
rs_frame_metadata
Types of value provided from the device with each frame.
Definition: rs.h:203
stream
Streams are different types of data provided by RealSense devices.
Definition: rs.hpp:24
virtual rs_stream get_stream_type() const =0
void correct_timestamp(frame_interface &frame, rs_stream stream) override
Definition: timestamps.h:40
~timestamp_corrector() override
virtual void set_timestamp_domain(rs_timestamp_domain timestamp_domain)=0
void on_timestamp(rs_timestamp_data data) override
virtual ~timestamp_corrector_interface()
Definition: timestamps.h:42
virtual ~frame_interface()
Definition: timestamps.h:16
virtual bool supports_frame_metadata(rs_frame_metadata frame_metadata) const =0
virtual double get_frame_metadata(rs_frame_metadata frame_metadata) const =0
rs_timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.
Definition: rs.h:292
virtual unsigned long long get_frame_number() const =0
Definition: timestamps.h:14
Definition: timestamps.h:49
Definition: timestamps.h:26
virtual void correct_timestamp(frame_interface &frame, rs_stream stream)=0
timestamp_corrector(std::atomic< uint32_t > *event_queue_size, std::atomic< uint32_t > *events_timeout)
frame_metadata
Types of value provided from the device with each frame.
Definition: rs.hpp:160
bool erase(rs_timestamp_data data)
virtual void on_timestamp(rs_timestamp_data data)=0
Timestamp data from the motion microcontroller.
Definition: rs.h:339
bool correct(frame_interface &frame)
virtual void set_timestamp(double new_ts)=0
void release() override
Definition: timestamps.h:55
rs_event_source
Source device that triggered a specific timestamp event from the motion module.
Definition: rs.h:276
timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.
Definition: rs.hpp:242