#include <context.h>
Public Member Functions | |
std::shared_ptr< playback_device_info > | add_device (const std::string &file) |
void | add_software_device (std::shared_ptr< device_info > software_device) |
context (backend_type type, const char *filename=nullptr, const char *section=nullptr, rs2_recording_mode mode=RS2_RECORDING_MODE_COUNT, std::string min_api_version="0.0.0") | |
std::vector< std::shared_ptr< device_info > > | create_devices (platform::backend_device_group devices, const std::map< std::string, std::weak_ptr< device_info >> &playback_devices, int mask) const |
const platform::backend & | get_backend () const |
std::vector< std::shared_ptr< device_info > > | query_devices (int mask) const |
uint64_t | register_internal_device_callback (devices_changed_callback_ptr callback) |
void | remove_device (const std::string &file) |
void | set_devices_changed_callback (devices_changed_callback_ptr callback) |
void | stop () |
void | unregister_internal_device_callback (uint64_t cb_id) |
~context () | |
Private Member Functions | |
std::shared_ptr< lazy< rs2_extrinsics > > | fetch_edge (int from, int to) |
int | find_stream_profile (const stream_interface &p) |
void | on_device_changed (platform::backend_device_group old, platform::backend_device_group curr, const std::map< std::string, std::weak_ptr< device_info >> &old_playback_devices, const std::map< std::string, std::weak_ptr< device_info >> &new_playback_devices) |
void | raise_devices_changed (const std::vector< rs2_device_info > &removed, const std::vector< rs2_device_info > &added) |
Private Attributes | |
std::shared_ptr< platform::backend > | _backend |
std::shared_ptr< platform::device_watcher > | _device_watcher |
devices_changed_callback_ptr | _devices_changed_callback |
std::map< uint64_t, devices_changed_callback_ptr > | _devices_changed_callbacks |
std::mutex | _devices_changed_callbacks_mtx |
std::map< int, std::map< int, std::weak_ptr< lazy< rs2_extrinsics > > > > | _extrinsics |
std::map< std::string, std::weak_ptr< device_info > > | _playback_devices |
std::map< int, std::weak_ptr< const stream_interface > > | _streams |
std::mutex | _streams_mutex |
|
explicit |
Definition at line 99 of file context.cpp.
librealsense::context::~context | ( | ) |
Definition at line 315 of file context.cpp.
std::shared_ptr< playback_device_info > librealsense::context::add_device | ( | const std::string & | file | ) |
Definition at line 533 of file context.cpp.
void librealsense::context::add_software_device | ( | std::shared_ptr< device_info > | software_device | ) |
Definition at line 549 of file context.cpp.
std::vector< std::shared_ptr< device_info > > librealsense::context::create_devices | ( | platform::backend_device_group | devices, |
const std::map< std::string, std::weak_ptr< device_info >> & | playback_devices, | ||
int | mask | ||
) | const |
Definition at line 327 of file context.cpp.
|
private |
|
private |
|
inline |
|
private |
Definition at line 387 of file context.cpp.
std::vector< std::shared_ptr< device_info > > librealsense::context::query_devices | ( | int | mask | ) | const |
Definition at line 320 of file context.cpp.
|
private |
Definition at line 437 of file context.cpp.
uint64_t librealsense::context::register_internal_device_callback | ( | devices_changed_callback_ptr | callback | ) |
Definition at line 452 of file context.cpp.
void librealsense::context::remove_device | ( | const std::string & | file | ) |
Definition at line 564 of file context.cpp.
void librealsense::context::set_devices_changed_callback | ( | devices_changed_callback_ptr | callback | ) |
Definition at line 467 of file context.cpp.
Definition at line 461 of file context.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |