5 #ifndef LIBREALSENSE_SYNC_H 6 #define LIBREALSENSE_SYNC_H 18 fps_calc(
unsigned long long in_number_of_frames_to_sampling,
int expected_fps)
25 double calc_fps(std::chrono::time_point<std::chrono::system_clock>& now_time)
33 auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(
48 std::vector<std::chrono::time_point<std::chrono::system_clock>>
_time_samples;
64 std::condition_variable_any
cv;
66 void get_next_frames();
75 std::atomic<uint32_t>* max_size,
76 std::atomic<uint32_t>* event_queue_size,
77 std::atomic<uint32_t>* events_timeout,
78 std::chrono::high_resolution_clock::time_point capture_started = std::chrono::high_resolution_clock::now());
81 void wait_for_frames();
82 bool poll_for_frames();
85 bool poll_for_frames_safe(
frameset ** frames);
101 void flush()
override;
frame_metadata
Types of value provided from the device with each frame.
std::vector< std::chrono::time_point< std::chrono::system_clock > > _time_samples
std::condition_variable_any cv
const uint8_t RS_STREAM_NATIVE_COUNT
fps_calc(unsigned long long in_number_of_frames_to_sampling, int expected_fps)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * data
double calc_fps(std::chrono::time_point< std::chrono::system_clock > &now_time)
Timestamp data from the motion microcontroller.
unsigned long long _frame_counter
unsigned long long _number_of_frames_to_sample
rs_stream
Streams are different types of data provided by RealSense devices.
std::vector< rs_stream > other_streams
rs_frame_metadata
Types of value provided from the device with each frame.
timestamp_corrector ts_corrector