Public Member Functions | Private Attributes | Friends | List of all members
librealsense::frame_source Class Reference

#include <source.h>

Public Member Functions

template<class T >
void add_extension (rs2_extension ex)
 
frame_interfacealloc_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< optionget_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
 

Detailed Description

Definition at line 16 of file source.h.

Constructor & Destructor Documentation

librealsense::frame_source::frame_source ( uint32_t  max_publish_list_size = 16)

Definition at line 44 of file source.cpp.

virtual librealsense::frame_source::~frame_source ( )
inlinevirtual

Definition at line 38 of file source.h.

Member Function Documentation

template<class T >
void librealsense::frame_source::add_extension ( rs2_extension  ex)
inline

Definition at line 45 of file source.h.

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.

double librealsense::frame_source::get_time ( ) const
inline

Definition at line 40 of file source.h.

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.

void librealsense::frame_source::reset ( void  )

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.

void librealsense::frame_source::set_max_publish_list_size ( int  qsize)
inline

Definition at line 50 of file source.h.

void librealsense::frame_source::set_sensor ( const std::shared_ptr< sensor_interface > &  s)

Definition at line 94 of file source.cpp.

Friends And Related Function Documentation

friend class syncer_process_unit
friend

Definition at line 53 of file source.h.

Member Data Documentation

std::map<rs2_extension, std::shared_ptr<archive_interface> > librealsense::frame_source::_archive
private

Definition at line 57 of file source.h.

frame_callback_ptr librealsense::frame_source::_callback
private

Definition at line 60 of file source.h.

std::mutex librealsense::frame_source::_callback_mutex
mutableprivate

Definition at line 55 of file source.h.

std::atomic<uint32_t> librealsense::frame_source::_max_publish_list_size
private

Definition at line 59 of file source.h.

std::shared_ptr<metadata_parser_map> librealsense::frame_source::_metadata_parsers
private

Definition at line 62 of file source.h.

std::shared_ptr<platform::time_service> librealsense::frame_source::_ts
private

Definition at line 61 of file source.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:37