Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::syncer Class Reference

#include <rs_processing.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ syncer()

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

Sync instance to align frames from different streams

Member Function Documentation

◆ operator()()

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

◆ poll_for_frames()

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

◆ try_wait_for_frames()

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

◆ wait_for_frames()

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

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