#include <playback_sensor.h>
Public Types | |
using | frame_interface_callback_t = std::function< void(frame_holder)> |
Public Attributes | |
signal< playback_sensor, const std::vector< device_serializer::stream_identifier > & > | closed |
signal< playback_sensor, const std::vector< device_serializer::stream_identifier > & > | opened |
signal< playback_sensor, uint32_t, frame_callback_ptr > | started |
signal< playback_sensor, uint32_t, bool > | stopped |
Protected Member Functions | |
void | set_active_streams (const stream_profiles &requests) |
Private Types | |
using | stream_unique_id = int |
Private Member Functions | |
void | register_sensor_infos (const device_serializer::sensor_snapshot &sensor_snapshot) |
void | register_sensor_options (const device_serializer::sensor_snapshot &sensor_snapshot) |
void | register_sensor_streams (const stream_profiles &vector) |
Private Attributes | |
const unsigned int | _default_queue_size |
notifications_processor | _notifications_processor |
std::mutex | m_active_profile_mutex |
stream_profiles | m_active_streams |
stream_profiles | m_available_profiles |
std::map< stream_unique_id, std::shared_ptr< dispatcher > > | m_dispatchers |
std::atomic< bool > | m_is_started |
std::mutex | m_mutex |
device_interface & | m_parent_device |
device_serializer::sensor_snapshot | m_sensor_description |
uint32_t | m_sensor_id |
std::map< std::pair< rs2_stream, uint32_t >, std::shared_ptr< stream_profile_interface > > | m_streams |
frame_callback_ptr | m_user_callback |
Additional Inherited Members | |
Protected Attributes inherited from librealsense::options_container | |
std::map< rs2_option, std::shared_ptr< option > > | _options |
std::function< void(const options_interface &)> | _recording_function = [](const options_interface&) {} |
Definition at line 16 of file playback_sensor.h.
using librealsense::playback_sensor::frame_interface_callback_t = std::function<void(frame_holder)> |
Definition at line 23 of file playback_sensor.h.
|
private |
Definition at line 79 of file playback_sensor.h.
playback_sensor::playback_sensor | ( | device_interface & | parent_device, |
const device_serializer::sensor_snapshot & | sensor_description | ||
) |
Definition at line 28 of file playback_sensor.cpp.
|
virtual |
Definition at line 40 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 104 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::extendable_interface.
Definition at line 172 of file playback_sensor.cpp.
void playback_sensor::flush_pending_frames | ( | ) |
Definition at line 188 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 280 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 178 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 272 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 130 of file playback_sensor.cpp.
|
inlineoverridevirtual |
Implements librealsense::recommended_proccesing_blocks_interface.
Definition at line 53 of file playback_sensor.h.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 54 of file playback_sensor.cpp.
|
inline |
Definition at line 100 of file playback_sensor.h.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 168 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 69 of file playback_sensor.cpp.
void playback_sensor::raise_notification | ( | const notification & | n | ) |
Definition at line 303 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 292 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 124 of file playback_sensor.cpp.
|
private |
Definition at line 207 of file playback_sensor.cpp.
|
private |
Definition at line 233 of file playback_sensor.cpp.
|
private |
Definition at line 196 of file playback_sensor.cpp.
|
protected |
Definition at line 285 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 276 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 136 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 163 of file playback_sensor.cpp.
void playback_sensor::stop | ( | bool | invoke_required | ) |
Definition at line 148 of file playback_sensor.cpp.
bool playback_sensor::streams_contains_one_frame_or_more | ( | ) |
Definition at line 44 of file playback_sensor.cpp.
|
overridevirtual |
Implements librealsense::sensor_interface.
Definition at line 298 of file playback_sensor.cpp.
void playback_sensor::update | ( | const device_serializer::sensor_snapshot & | sensor_snapshot | ) |
Definition at line 267 of file playback_sensor.cpp.
void playback_sensor::update_option | ( | rs2_option | id, |
std::shared_ptr< option > | option | ||
) |
Definition at line 183 of file playback_sensor.cpp.
|
private |
Definition at line 90 of file playback_sensor.h.
|
private |
Definition at line 78 of file playback_sensor.h.
signal<playback_sensor, const std::vector<device_serializer::stream_identifier>& > librealsense::playback_sensor::closed |
Definition at line 27 of file playback_sensor.h.
|
mutableprivate |
Definition at line 89 of file playback_sensor.h.
|
private |
Definition at line 88 of file playback_sensor.h.
|
private |
Definition at line 87 of file playback_sensor.h.
|
private |
Definition at line 80 of file playback_sensor.h.
|
private |
Definition at line 81 of file playback_sensor.h.
|
private |
Definition at line 84 of file playback_sensor.h.
|
private |
Definition at line 86 of file playback_sensor.h.
|
private |
Definition at line 82 of file playback_sensor.h.
|
private |
Definition at line 83 of file playback_sensor.h.
|
private |
Definition at line 85 of file playback_sensor.h.
|
private |
Definition at line 77 of file playback_sensor.h.
signal<playback_sensor, const std::vector<device_serializer::stream_identifier>& > librealsense::playback_sensor::opened |
Definition at line 26 of file playback_sensor.h.
signal<playback_sensor, uint32_t, frame_callback_ptr> librealsense::playback_sensor::started |
Definition at line 24 of file playback_sensor.h.
signal<playback_sensor, uint32_t, bool> librealsense::playback_sensor::stopped |
Definition at line 25 of file playback_sensor.h.