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

#include <config.h>

Classes

struct  device_request
 

Public Member Functions

bool can_resolve (std::shared_ptr< pipeline > pipe)
 
 config ()
 
 config (const config &other)
 
void disable_all_streams ()
 
void disable_stream (rs2_stream stream, int index=-1)
 
void enable_all_stream ()
 
void enable_device (const std::string &serial)
 
void enable_device_from_file (const std::string &file, bool repeat_playback)
 
void enable_record_to_file (const std::string &file)
 
void enable_stream (rs2_stream stream, int index, uint32_t width, uint32_t height, rs2_format format, uint32_t framerate)
 
std::shared_ptr< profileget_cached_resolved_profile ()
 
bool get_repeat_playback ()
 
std::shared_ptr< profileresolve (std::shared_ptr< pipeline > pipe, const std::chrono::milliseconds &timeout=std::chrono::milliseconds(0))
 

Private Member Functions

util::config filter_stream_requests (const stream_profiles &profiles) const
 
stream_profiles get_default_configuration (std::shared_ptr< device_interface > dev)
 
std::shared_ptr< device_interfaceget_or_add_playback_device (std::shared_ptr< context > ctx, const std::string &file)
 
std::shared_ptr< profileresolve (std::shared_ptr< device_interface > dev)
 
std::shared_ptr< device_interfaceresolve_device_requests (std::shared_ptr< pipeline > pipe, const std::chrono::milliseconds &timeout)
 

Private Attributes

device_request _device_request
 
bool _enable_all_streams = false
 
std::mutex _mtx
 
bool _playback_loop
 
std::shared_ptr< profile_resolved_profile
 
std::map< std::pair< rs2_stream, int >, stream_profile_stream_requests
 
std::vector< std::pair< rs2_stream, int > > _streams_to_disable
 

Detailed Description

Definition at line 18 of file config.h.

Constructor & Destructor Documentation

librealsense::pipeline::config::config ( )

Definition at line 11 of file pipeline/config.cpp.

librealsense::pipeline::config::config ( const config other)
inline

Definition at line 36 of file config.h.

Member Function Documentation

bool librealsense::pipeline::config::can_resolve ( std::shared_ptr< pipeline pipe)

Definition at line 225 of file pipeline/config.cpp.

void librealsense::pipeline::config::disable_all_streams ( )

Definition at line 91 of file pipeline/config.cpp.

void librealsense::pipeline::config::disable_stream ( rs2_stream  stream,
int  index = -1 
)

Definition at line 70 of file pipeline/config.cpp.

void librealsense::pipeline::config::enable_all_stream ( )

Definition at line 25 of file pipeline/config.cpp.

void librealsense::pipeline::config::enable_device ( const std::string serial)

Definition at line 34 of file pipeline/config.cpp.

void librealsense::pipeline::config::enable_device_from_file ( const std::string file,
bool  repeat_playback = true 
)

Definition at line 41 of file pipeline/config.cpp.

void librealsense::pipeline::config::enable_record_to_file ( const std::string file)

Definition at line 53 of file pipeline/config.cpp.

void librealsense::pipeline::config::enable_stream ( rs2_stream  stream,
int  index,
uint32_t  width,
uint32_t  height,
rs2_format  format,
uint32_t  framerate 
)

Definition at line 15 of file pipeline/config.cpp.

util::config librealsense::pipeline::config::filter_stream_requests ( const stream_profiles profiles) const
private

Definition at line 100 of file pipeline/config.cpp.

std::shared_ptr< profile > librealsense::pipeline::config::get_cached_resolved_profile ( )

Definition at line 64 of file pipeline/config.cpp.

stream_profiles librealsense::pipeline::config::get_default_configuration ( std::shared_ptr< device_interface dev)
private

Definition at line 309 of file pipeline/config.cpp.

std::shared_ptr< device_interface > librealsense::pipeline::config::get_or_add_playback_device ( std::shared_ptr< context ctx,
const std::string file 
)
private

Definition at line 244 of file pipeline/config.cpp.

bool librealsense::pipeline::config::get_repeat_playback ( )

Definition at line 323 of file pipeline/config.cpp.

std::shared_ptr< profile > librealsense::pipeline::config::resolve ( std::shared_ptr< pipeline pipe,
const std::chrono::milliseconds &  timeout = std::chrono::milliseconds(0) 
)

Definition at line 183 of file pipeline/config.cpp.

std::shared_ptr< profile > librealsense::pipeline::config::resolve ( std::shared_ptr< device_interface dev)
private

Definition at line 136 of file pipeline/config.cpp.

std::shared_ptr< device_interface > librealsense::pipeline::config::resolve_device_requests ( std::shared_ptr< pipeline pipe,
const std::chrono::milliseconds &  timeout 
)
private

Definition at line 262 of file pipeline/config.cpp.

Member Data Documentation

device_request librealsense::pipeline::config::_device_request
private

Definition at line 58 of file config.h.

bool librealsense::pipeline::config::_enable_all_streams = false
private

Definition at line 61 of file config.h.

std::mutex librealsense::pipeline::config::_mtx
private

Definition at line 60 of file config.h.

bool librealsense::pipeline::config::_playback_loop
private

Definition at line 63 of file config.h.

std::shared_ptr<profile> librealsense::pipeline::config::_resolved_profile
private

Definition at line 62 of file config.h.

std::map<std::pair<rs2_stream, int>, stream_profile> librealsense::pipeline::config::_stream_requests
private

Definition at line 59 of file config.h.

std::vector<std::pair<rs2_stream, int> > librealsense::pipeline::config::_streams_to_disable
private

Definition at line 64 of file config.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