#include <source.h>
Public Member Functions | |
template<class T > | |
void | add_extension (rs2_extension ex) |
frame_interface * | alloc_frame (rs2_extension type, size_t size, frame_additional_data additional_data, bool requires_memory) const |
callback_invocation_holder | begin_callback () |
void | flush () const |
frame_source (uint32_t max_publish_list_size=16) | |
frame_callback_ptr | get_callback () const |
std::shared_ptr< option > | get_published_size_option () |
double | get_time () const |
void | init (std::shared_ptr< metadata_parser_map > metadata_parsers) |
void | invoke_callback (frame_holder frame) const |
void | reset () |
void | set_callback (frame_callback_ptr callback) |
void | set_max_publish_list_size (int qsize) |
void | set_sensor (const std::shared_ptr< sensor_interface > &s) |
virtual | ~frame_source () |
Private Attributes | |
std::map< rs2_extension, std::shared_ptr< archive_interface > > | _archive |
frame_callback_ptr | _callback |
std::mutex | _callback_mutex |
std::atomic< uint32_t > | _max_publish_list_size |
std::shared_ptr< metadata_parser_map > | _metadata_parsers |
std::shared_ptr< platform::time_service > | _ts |
Friends | |
class | syncer_process_unit |
librealsense::frame_source::frame_source | ( | uint32_t | max_publish_list_size = 16 | ) |
Definition at line 44 of file source.cpp.
|
inlinevirtual |
|
inline |
frame_interface * librealsense::frame_source::alloc_frame | ( | rs2_extension | type, |
size_t | size, | ||
frame_additional_data | additional_data, | ||
bool | requires_memory | ||
) | const |
Definition at line 87 of file source.cpp.
callback_invocation_holder librealsense::frame_source::begin_callback | ( | ) |
Definition at line 70 of file source.cpp.
void librealsense::frame_source::flush | ( | ) | const |
Definition at line 139 of file source.cpp.
frame_callback_ptr librealsense::frame_source::get_callback | ( | ) | const |
Definition at line 108 of file source.cpp.
std::shared_ptr< option > librealsense::frame_source::get_published_size_option | ( | ) |
Definition at line 39 of file source.cpp.
|
inline |
void librealsense::frame_source::init | ( | std::shared_ptr< metadata_parser_map > | metadata_parsers | ) |
Definition at line 50 of file source.cpp.
void librealsense::frame_source::invoke_callback | ( | frame_holder | frame | ) | const |
Definition at line 113 of file source.cpp.
Definition at line 76 of file source.cpp.
void librealsense::frame_source::set_callback | ( | frame_callback_ptr | callback | ) |
Definition at line 102 of file source.cpp.
|
inline |
void librealsense::frame_source::set_sensor | ( | const std::shared_ptr< sensor_interface > & | s | ) |
Definition at line 94 of file source.cpp.
|
friend |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |