#include <timestamps.h>
Public Member Functions | |
void | correct_timestamp (frame_interface &frame, rs_stream stream) override |
void | on_timestamp (rs_timestamp_data data) override |
void | release () override |
timestamp_corrector (std::atomic< uint32_t > *event_queue_size, std::atomic< uint32_t > *events_timeout) | |
~timestamp_corrector () override | |
Private Member Functions | |
void | update_source_id (rs_event_source &source_id, const rs_stream stream) |
Private Attributes | |
std::condition_variable | cv |
concurrent_queue | data_queue [RS_EVENT_SOURCE_COUNT] |
std::atomic< uint32_t > * | event_queue_size |
std::atomic< uint32_t > * | events_timeout |
std::mutex | mtx |
Definition at line 49 of file timestamps.h.
timestamp_corrector::timestamp_corrector | ( | std::atomic< uint32_t > * | event_queue_size, |
std::atomic< uint32_t > * | events_timeout | ||
) |
Definition at line 71 of file timestamps.cpp.
timestamp_corrector::~timestamp_corrector | ( | ) | [override] |
Definition at line 76 of file timestamps.cpp.
void timestamp_corrector::correct_timestamp | ( | frame_interface & | frame, |
rs_stream | stream | ||
) | [override, virtual] |
Implements rsimpl::timestamp_corrector_interface.
Definition at line 110 of file timestamps.cpp.
void timestamp_corrector::on_timestamp | ( | rs_timestamp_data | data | ) | [override, virtual] |
Implements rsimpl::timestamp_corrector_interface.
Definition at line 80 of file timestamps.cpp.
void rsimpl::timestamp_corrector::release | ( | ) | [inline, override, virtual] |
Implements rsimpl::timestamp_corrector_interface.
Definition at line 55 of file timestamps.h.
void timestamp_corrector::update_source_id | ( | rs_event_source & | source_id, |
const rs_stream | stream | ||
) | [private] |
Definition at line 92 of file timestamps.cpp.
std::condition_variable rsimpl::timestamp_corrector::cv [private] |
Definition at line 62 of file timestamps.h.
Definition at line 61 of file timestamps.h.
std::atomic<uint32_t>* rsimpl::timestamp_corrector::event_queue_size [private] |
Definition at line 63 of file timestamps.h.
std::atomic<uint32_t>* rsimpl::timestamp_corrector::events_timeout [private] |
Definition at line 64 of file timestamps.h.
std::mutex rsimpl::timestamp_corrector::mtx [private] |
Definition at line 60 of file timestamps.h.