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

#include <pipeline.h>

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

Public Member Functions

std::shared_ptr< profileget_active_profile () const
 
std::shared_ptr< librealsense::contextget_context () const
 
 pipeline (std::shared_ptr< librealsense::context > ctx)
 
bool poll_for_frames (frame_holder *frame)
 
std::shared_ptr< profilestart (std::shared_ptr< config > conf, frame_callback_ptr callback=nullptr)
 
void stop ()
 
bool try_wait_for_frames (frame_holder *frame, unsigned int timeout_ms)
 
std::shared_ptr< device_interfacewait_for_device (const std::chrono::milliseconds &timeout=std::chrono::hours::max(), const std::string &serial="")
 
frame_holder wait_for_frames (unsigned int timeout_ms)
 
virtual ~pipeline ()
 

Protected Member Functions

frame_callback_ptr get_callback (std::vector< int > unique_ids)
 
std::vector< int > on_start (std::shared_ptr< profile > profile)
 
void unsafe_start (std::shared_ptr< config > conf)
 
void unsafe_stop ()
 

Protected Attributes

std::shared_ptr< profile_active_profile
 
device_hub _hub
 
std::mutex _mtx
 
std::shared_ptr< config_prev_conf
 

Private Member Functions

std::shared_ptr< profileunsafe_get_active_profile () const
 

Private Attributes

std::unique_ptr< aggregator_aggregator
 
std::shared_ptr< librealsense::context_ctx
 
dispatcher _dispatcher
 
int _playback_stopped_token = -1
 
frame_callback_ptr _streams_callback
 
std::vector< rs2_stream_synced_streams
 
std::unique_ptr< syncer_process_unit_syncer
 

Detailed Description

Definition at line 20 of file pipeline.h.

Constructor & Destructor Documentation

librealsense::pipeline::pipeline::pipeline ( std::shared_ptr< librealsense::context ctx)
explicit

Definition at line 14 of file pipeline/pipeline.cpp.

librealsense::pipeline::pipeline::~pipeline ( )
virtual

Definition at line 21 of file pipeline/pipeline.cpp.

Member Function Documentation

std::shared_ptr< profile > librealsense::pipeline::pipeline::get_active_profile ( ) const

Definition at line 43 of file pipeline/pipeline.cpp.

frame_callback_ptr librealsense::pipeline::pipeline::get_callback ( std::vector< int >  unique_ids)
protected

Definition at line 197 of file pipeline/pipeline.cpp.

std::shared_ptr< librealsense::context > librealsense::pipeline::pipeline::get_context ( ) const

Definition at line 165 of file pipeline/pipeline.cpp.

std::vector< int > librealsense::pipeline::pipeline::on_start ( std::shared_ptr< profile profile)
protected

Definition at line 170 of file pipeline/pipeline.cpp.

bool librealsense::pipeline::pipeline::poll_for_frames ( frame_holder frame)

Definition at line 269 of file pipeline/pipeline.cpp.

std::shared_ptr< profile > librealsense::pipeline::pipeline::start ( std::shared_ptr< config conf,
frame_callback_ptr  callback = nullptr 
)

Definition at line 31 of file pipeline/pipeline.cpp.

void librealsense::pipeline::pipeline::stop ( )

Definition at line 120 of file pipeline/pipeline.cpp.

bool librealsense::pipeline::pipeline::try_wait_for_frames ( frame_holder frame,
unsigned int  timeout_ms 
)

Definition at line 289 of file pipeline/pipeline.cpp.

std::shared_ptr< profile > librealsense::pipeline::pipeline::unsafe_get_active_profile ( ) const
private

Definition at line 49 of file pipeline/pipeline.cpp.

void librealsense::pipeline::pipeline::unsafe_start ( std::shared_ptr< config conf)
protected

Definition at line 57 of file pipeline/pipeline.cpp.

void librealsense::pipeline::pipeline::unsafe_stop ( )
protected

Definition at line 130 of file pipeline/pipeline.cpp.

std::shared_ptr< device_interface > librealsense::pipeline::pipeline::wait_for_device ( const std::chrono::milliseconds &  timeout = std::chrono::hours::max(),
const std::string serial = "" 
)

Definition at line 159 of file pipeline/pipeline.cpp.

frame_holder librealsense::pipeline::pipeline::wait_for_frames ( unsigned int  timeout_ms)

Definition at line 228 of file pipeline/pipeline.cpp.

Member Data Documentation

std::shared_ptr<profile> librealsense::pipeline::pipeline::_active_profile
protected

Definition at line 46 of file pipeline.h.

std::unique_ptr<aggregator> librealsense::pipeline::pipeline::_aggregator
private

Definition at line 58 of file pipeline.h.

std::shared_ptr<librealsense::context> librealsense::pipeline::pipeline::_ctx
private

Definition at line 53 of file pipeline.h.

dispatcher librealsense::pipeline::pipeline::_dispatcher
private

Definition at line 55 of file pipeline.h.

device_hub librealsense::pipeline::pipeline::_hub
protected

Definition at line 47 of file pipeline.h.

std::mutex librealsense::pipeline::pipeline::_mtx
mutableprotected

Definition at line 45 of file pipeline.h.

int librealsense::pipeline::pipeline::_playback_stopped_token = -1
private

Definition at line 54 of file pipeline.h.

std::shared_ptr<config> librealsense::pipeline::pipeline::_prev_conf
protected

Definition at line 48 of file pipeline.h.

frame_callback_ptr librealsense::pipeline::pipeline::_streams_callback
private

Definition at line 60 of file pipeline.h.

std::vector<rs2_stream> librealsense::pipeline::pipeline::_synced_streams
private

Definition at line 61 of file pipeline.h.

std::unique_ptr<syncer_process_unit> librealsense::pipeline::pipeline::_syncer
private

Definition at line 57 of file pipeline.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:39