17 const char*
get_description()
const override {
return "Enable/Disable global timestamp"; }
39 void add_const_y_coefs(
double dy);
40 bool update_samples_base(
double x);
41 void update_last_sample_time(
double x);
42 double calc_value(
double x)
const;
46 void calc_linear_coefs();
47 void get_a_b(
double x,
double&
a,
double&
b)
const;
68 double get_system_hw_time(
double crnt_hw_time,
bool& is_ready);
71 bool update_diff_time();
90 std::shared_ptr<time_diff_keeper> timediff,
91 std::shared_ptr<global_time_option>);
93 rs2_time_t get_frame_timestamp(
const std::shared_ptr<frame_interface>&
frame)
override;
94 unsigned long long get_frame_counter(
const std::shared_ptr<frame_interface>& frame)
const override;
95 rs2_timestamp_domain get_frame_timestamp_domain(
const std::shared_ptr<frame_interface>& frame)
const override;
96 void reset()
override;
101 mutable std::recursive_mutex
_mtx;
114 void enable_time_diff_keeper(
bool is_enable);
115 virtual double get_device_time_ms() = 0;
116 virtual void create_snapshot(std::shared_ptr<global_time_interface>& snapshot)
const override {}
std::recursive_mutex _enable_mtx
double _min_command_delay
virtual void create_snapshot(std::shared_ptr< global_time_interface > &snapshot) const override
GLboolean GLboolean GLboolean b
std::recursive_mutex _mtx
std::recursive_mutex _read_mtx
const char * get_description() const override
std::shared_ptr< global_time_option > _option_is_enabled
global_time_interface * _device
std::deque< CSample > _last_values
#define LRS_EXTENSION_API
virtual void enable_recording(std::function< void(const global_time_interface &)> record_action) override
static const textual_icon stop
GLboolean GLboolean GLboolean GLboolean a
unsigned int _poll_intervals_ms
std::shared_ptr< time_diff_keeper > _tf_keeper
std::unique_ptr< frame_timestamp_reader > _device_timestamp_reader
CLinearCoefficients _coefs
std::weak_ptr< time_diff_keeper > _time_diff_keeper
auto operator+=(std::string &lhs, StringRef const &sr) -> std::string &
active_object _active_object
double _last_request_time
unsigned int _buffer_size
MAP_EXTENSION(RS2_EXTENSION_POINTS, librealsense::points)
CSample(double x, double y)
rs2_timestamp_domain
Specifies the clock in relation to which the frame timestamp was measured.