Public Member Functions | Private Attributes | List of all members
rs2::syncer Class Reference

#include <rs_processing.hpp>

Public Member Functions

void operator() (frame f) const
 
bool poll_for_frames (frameset *fs) const
 
 syncer (int queue_size=1)
 
bool try_wait_for_frames (frameset *fs, unsigned int timeout_ms=5000) const
 
frameset wait_for_frames (unsigned int timeout_ms=5000) const
 

Private Attributes

frame_queue _results
 
asynchronous_syncer _sync
 

Detailed Description

Definition at line 597 of file rs_processing.hpp.

Constructor & Destructor Documentation

rs2::syncer::syncer ( int  queue_size = 1)
inline

Sync instance to align frames from different streams

Definition at line 603 of file rs_processing.hpp.

Member Function Documentation

void rs2::syncer::operator() ( frame  f) const
inline

Definition at line 652 of file rs_processing.hpp.

bool rs2::syncer::poll_for_frames ( frameset fs) const
inline

Check if a coherent set of frames is available

Parameters
[out]fsNew coherent frame-set
Returns
true if new frame-set was stored to result

Definition at line 624 of file rs_processing.hpp.

bool rs2::syncer::try_wait_for_frames ( frameset fs,
unsigned int  timeout_ms = 5000 
) const
inline

Wait until coherent set of frames becomes available

Parameters
[in]timeout_msMax time in milliseconds to wait until an available frame
[out]fsNew coherent frame-set
Returns
true if new frame-set was stored to result

Definition at line 641 of file rs_processing.hpp.

frameset rs2::syncer::wait_for_frames ( unsigned int  timeout_ms = 5000) const
inline

Wait until coherent set of frames becomes available

Parameters
[in]timeout_msMax time in milliseconds to wait until an exception will be thrown
Returns
Set of coherent frames

Definition at line 614 of file rs_processing.hpp.

Member Data Documentation

frame_queue rs2::syncer::_results
private

Definition at line 658 of file rs_processing.hpp.

asynchronous_syncer rs2::syncer::_sync
private

Definition at line 657 of file rs_processing.hpp.


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


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