Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::timestamp_composite_matcher Class Reference

#include <sync.h>

Inheritance diagram for librealsense::timestamp_composite_matcher:
Inheritance graph
[legend]

Public Member Functions

bool are_equivalent (frame_holder &a, frame_holder &b) override
 
void clean_inactive_streams (frame_holder &f) override
 
bool is_smaller_than (frame_holder &a, frame_holder &b) override
 
bool skip_missing_stream (std::vector< matcher * > synced, matcher *missing, const syncronization_environment &env) override
 
 timestamp_composite_matcher (std::vector< std::shared_ptr< matcher >> matchers)
 
virtual void update_last_arrived (frame_holder &f, matcher *m) override
 
void update_next_expected (const frame_holder &f) override
 
- Public Member Functions inherited from librealsense::composite_matcher
 composite_matcher (std::vector< std::shared_ptr< matcher >> matchers, std::string name)
 
void dispatch (frame_holder f, const syncronization_environment &env) override
 
std::shared_ptr< matcherfind_matcher (const frame_holder &f)
 
std::string frames_to_string (std::vector< librealsense::matcher * > matchers)
 
virtual void stop () override
 
void sync (frame_holder f, const syncronization_environment &env) override
 
- Public Member Functions inherited from librealsense::matcher
callback_invocation_holder begin_callback ()
 
bool get_active () const
 
virtual std::string get_name () const override
 
const std::vector< stream_id > & get_streams () const override
 
const std::vector< rs2_stream > & get_streams_types () const override
 
 matcher (std::vector< stream_id > streams_id={})
 
void set_active (const bool active)
 
virtual void set_callback (sync_callback f) override
 
virtual ~matcher ()
 

Private Member Functions

bool are_equivalent (double a, double b, int fps)
 
unsigned int get_fps (const frame_holder &f)
 

Private Attributes

std::map< matcher *, unsigned int > _fps
 
std::map< matcher *, double > _last_arrived
 

Additional Inherited Members

- Protected Attributes inherited from librealsense::composite_matcher
std::map< matcher *, single_consumer_frame_queue< frame_holder > > _frames_queue
 
std::map< stream_id, std::shared_ptr< matcher > > _matchers
 
std::map< matcher *, double > _next_expected
 
std::map< matcher *, rs2_timestamp_domain_next_expected_domain
 
- Protected Attributes inherited from librealsense::matcher
bool _active = true
 
sync_callback _callback
 
callbacks_heap _callback_inflight
 
std::string _name
 
std::vector< stream_id_streams_id
 
std::vector< rs2_stream_streams_type
 

Detailed Description

Definition at line 183 of file sync.h.

Constructor & Destructor Documentation

librealsense::timestamp_composite_matcher::timestamp_composite_matcher ( std::vector< std::shared_ptr< matcher >>  matchers)

Definition at line 481 of file sync.cpp.

Member Function Documentation

bool librealsense::timestamp_composite_matcher::are_equivalent ( frame_holder a,
frame_holder b 
)
overridevirtual

Implements librealsense::composite_matcher.

Definition at line 485 of file sync.cpp.

bool librealsense::timestamp_composite_matcher::are_equivalent ( double  a,
double  b,
int  fps 
)
private

Definition at line 610 of file sync.cpp.

void librealsense::timestamp_composite_matcher::clean_inactive_streams ( frame_holder f)
overridevirtual

Implements librealsense::composite_matcher.

Definition at line 548 of file sync.cpp.

unsigned int librealsense::timestamp_composite_matcher::get_fps ( const frame_holder f)
private

Definition at line 520 of file sync.cpp.

bool librealsense::timestamp_composite_matcher::is_smaller_than ( frame_holder a,
frame_holder b 
)
overridevirtual

Implements librealsense::composite_matcher.

Definition at line 497 of file sync.cpp.

bool librealsense::timestamp_composite_matcher::skip_missing_stream ( std::vector< matcher * >  synced,
matcher missing,
const syncronization_environment env 
)
overridevirtual

Implements librealsense::composite_matcher.

Definition at line 580 of file sync.cpp.

void librealsense::timestamp_composite_matcher::update_last_arrived ( frame_holder f,
matcher m 
)
overridevirtual

Implements librealsense::composite_matcher.

Definition at line 509 of file sync.cpp.

void librealsense::timestamp_composite_matcher::update_next_expected ( const frame_holder f)
overridevirtual

Implements librealsense::composite_matcher.

Definition at line 531 of file sync.cpp.

Member Data Documentation

std::map<matcher*, unsigned int> librealsense::timestamp_composite_matcher::_fps
private

Definition at line 198 of file sync.h.

std::map<matcher*, double> librealsense::timestamp_composite_matcher::_last_arrived
private

Definition at line 197 of file sync.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:38