Public Member Functions | Public Attributes | List of all members
librealsense::record_sensor Class Reference

#include <record_sensor.h>

Inheritance diagram for librealsense::record_sensor:
Inheritance graph
[legend]

Public Member Functions

void close () override
 
void disable_recording ()
 
void disable_sensor_hooks ()
 
void disable_sensor_options_recording ()
 
void enable_sensor_hooks ()
 
void enable_sensor_options_recording ()
 
bool extend_to (rs2_extension extension_type, void **ext) override
 
template<rs2_extension E, typename P >
bool extend_to_aux (P *p, void **ext)
 
stream_profiles get_active_streams () const override
 
device_interfaceget_device () override
 
frame_callback_ptr get_frames_callback () const override
 
const std::stringget_info (rs2_camera_info info) const override
 
notifications_callback_ptr get_notifications_callback () const override
 
optionget_option (rs2_option id) override
 
const optionget_option (rs2_option id) const override
 
virtual processing_blocks get_recommended_processing_blocks () const override
 
stream_profiles get_stream_profiles (int tag=profile_tag::PROFILE_TAG_ANY) const override
 
void hook_sensor_callbacks ()
 
void init ()
 
bool is_streaming () const override
 
void open (const stream_profiles &requests) override
 
void record_frame (frame_holder holder)
 
 record_sensor (device_interface &device, sensor_interface &sensor)
 
int register_before_streaming_changes_callback (std::function< void(bool)> callback) override
 
void register_notifications_callback (notifications_callback_ptr callback) override
 
void set_frames_callback (frame_callback_ptr callback) override
 
void start (frame_callback_ptr callback) override
 
void stop () override
 
void stop_with_error (const std::string &message)
 
bool supports_info (rs2_camera_info info) const override
 
bool supports_option (rs2_option id) const override
 
void unhook_sensor_callbacks ()
 
void unregister_before_start_callback (int token) override
 
frame_callback_ptr wrap_frame_callback (frame_callback_ptr callback)
 
void wrap_streams ()
 
virtual ~record_sensor ()
 
- Public Member Functions inherited from librealsense::sensor_interface
virtual ~sensor_interface ()=default
 
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::options_interface
virtual ~options_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< options_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::recommended_proccesing_blocks_interface
virtual ~recommended_proccesing_blocks_interface ()=default
 
- Public Member Functions inherited from librealsense::extendable_interface
virtual ~extendable_interface ()=default
 
- Public Member Functions inherited from librealsense::info_container
void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
void enable_recording (std::function< void(const info_interface &)> record_action) override
 
void register_info (rs2_camera_info info, const std::string &val)
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void update_info (rs2_camera_info info, const std::string &val)
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 
- Public Member Functions inherited from librealsense::options_container
void create_snapshot (std::shared_ptr< options_interface > &snapshot) const override
 
void enable_recording (std::function< void(const options_interface &)> record_action) override
 
std::shared_ptr< optionget_option_handler (rs2_option id)
 
std::shared_ptr< optionget_option_handler (rs2_option id) const
 
virtual const char * get_option_name (rs2_option option) const override
 
std::vector< rs2_optionget_supported_options () const override
 
void register_option (rs2_option id, std::shared_ptr< option > option)
 
void unregister_option (rs2_option id)
 
void update (std::shared_ptr< extension_snapshot > ext) override
 

Public Attributes

private __pad0__: template <typename T> void record_snapshot(rs2_extension extension_type
 
private __pad1__: sensor_interface& m_sensor
 
int m_before_start_callback_token
 
frame_callback_ptr m_frame_callback
 
std::atomic_bool m_is_recording
 
bool m_is_sensor_hooked
 
std::mutex m_mutex
 
frame_callback_ptr m_original_callback
 
device_interfacem_parent_device
 
std::set< int > m_recorded_streams_ids
 
std::set< rs2_optionm_recording_options
 
bool m_register_notification_to_base
 
librealsense::notifications_callback_ptr m_user_notification_callback
 
signal< record_sensor, rs2_extension, std::shared_ptr< extension_snapshot > > on_extension_change
 
signal< record_sensor, frame_holderon_frame
 
signal< record_sensor, const notification & > on_notification
 
private const recordable< T > & snapshot
 

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&) {}
 

Detailed Description

Definition at line 15 of file record_sensor.h.

Constructor & Destructor Documentation

librealsense::record_sensor::record_sensor ( device_interface device,
sensor_interface sensor 
)

Definition at line 11 of file record_sensor.cpp.

librealsense::record_sensor::~record_sensor ( )
virtual

Definition at line 23 of file record_sensor.cpp.

Member Function Documentation

void librealsense::record_sensor::close ( )
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 68 of file record_sensor.cpp.

void record_sensor::disable_recording ( )

Definition at line 240 of file record_sensor.cpp.

void record_sensor::disable_sensor_hooks ( )

Definition at line 268 of file record_sensor.cpp.

void record_sensor::disable_sensor_options_recording ( )

Definition at line 350 of file record_sensor.cpp.

void record_sensor::enable_sensor_hooks ( )

Definition at line 259 of file record_sensor.cpp.

void record_sensor::enable_sensor_options_recording ( )

Definition at line 317 of file record_sensor.cpp.

bool librealsense::record_sensor::extend_to ( rs2_extension  extension_type,
void **  ext 
)
overridevirtual

Implements librealsense::extendable_interface.

Definition at line 155 of file record_sensor.cpp.

template<rs2_extension E, typename P >
bool librealsense::record_sensor::extend_to_aux ( P *  p,
void **  ext 
)

Definition at line 136 of file record_sensor.cpp.

stream_profiles record_sensor::get_active_streams ( ) const
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 200 of file record_sensor.cpp.

device_interface & record_sensor::get_device ( )
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 185 of file record_sensor.cpp.

frame_callback_ptr record_sensor::get_frames_callback ( ) const
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 190 of file record_sensor.cpp.

const std::string & librealsense::record_sensor::get_info ( rs2_camera_info  info) const
overridevirtual

Reimplemented from librealsense::info_container.

Definition at line 81 of file record_sensor.cpp.

notifications_callback_ptr librealsense::record_sensor::get_notifications_callback ( ) const
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 117 of file record_sensor.cpp.

librealsense::option & librealsense::record_sensor::get_option ( rs2_option  id)
overridevirtual

Reimplemented from librealsense::options_container.

Definition at line 73 of file record_sensor.cpp.

const librealsense::option & librealsense::record_sensor::get_option ( rs2_option  id) const
overridevirtual

Reimplemented from librealsense::options_container.

Definition at line 77 of file record_sensor.cpp.

processing_blocks librealsense::record_sensor::get_recommended_processing_blocks ( ) const
overridevirtual
stream_profiles record_sensor::get_stream_profiles ( int  tag = profile_tag::PROFILE_TAG_ANY) const
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 58 of file record_sensor.cpp.

void record_sensor::hook_sensor_callbacks ( )

Definition at line 277 of file record_sensor.cpp.

void librealsense::record_sensor::init ( )

Definition at line 32 of file record_sensor.cpp.

bool librealsense::record_sensor::is_streaming ( ) const
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 130 of file record_sensor.cpp.

void librealsense::record_sensor::open ( const stream_profiles requests)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 63 of file record_sensor.cpp.

void record_sensor::record_frame ( frame_holder  holder)

Definition at line 250 of file record_sensor.cpp.

int record_sensor::register_before_streaming_changes_callback ( std::function< void(bool)>  callback)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 205 of file record_sensor.cpp.

void librealsense::record_sensor::register_notifications_callback ( notifications_callback_ptr  callback)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 94 of file record_sensor.cpp.

void record_sensor::set_frames_callback ( frame_callback_ptr  callback)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 195 of file record_sensor.cpp.

void librealsense::record_sensor::start ( frame_callback_ptr  callback)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 122 of file record_sensor.cpp.

void librealsense::record_sensor::stop ( )
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 126 of file record_sensor.cpp.

void record_sensor::stop_with_error ( const std::string message)

Definition at line 228 of file record_sensor.cpp.

bool librealsense::record_sensor::supports_info ( rs2_camera_info  info) const
overridevirtual

Reimplemented from librealsense::info_container.

Definition at line 85 of file record_sensor.cpp.

bool librealsense::record_sensor::supports_option ( rs2_option  id) const
overridevirtual

Reimplemented from librealsense::options_container.

Definition at line 89 of file record_sensor.cpp.

void record_sensor::unhook_sensor_callbacks ( )

Definition at line 304 of file record_sensor.cpp.

void record_sensor::unregister_before_start_callback ( int  token)
overridevirtual

Implements librealsense::sensor_interface.

Definition at line 210 of file record_sensor.cpp.

frame_callback_ptr librealsense::record_sensor::wrap_frame_callback ( frame_callback_ptr  callback)

Definition at line 290 of file record_sensor.cpp.

void record_sensor::wrap_streams ( )

Definition at line 358 of file record_sensor.cpp.

Member Data Documentation

private librealsense::record_sensor::__pad0__

Definition at line 53 of file record_sensor.h.

private librealsense::record_sensor::__pad1__

Definition at line 66 of file record_sensor.h.

int librealsense::record_sensor::m_before_start_callback_token

Definition at line 73 of file record_sensor.h.

frame_callback_ptr librealsense::record_sensor::m_frame_callback

Definition at line 71 of file record_sensor.h.

std::atomic_bool librealsense::record_sensor::m_is_recording

Definition at line 70 of file record_sensor.h.

bool librealsense::record_sensor::m_is_sensor_hooked

Definition at line 75 of file record_sensor.h.

std::mutex librealsense::record_sensor::m_mutex

Definition at line 77 of file record_sensor.h.

frame_callback_ptr librealsense::record_sensor::m_original_callback

Definition at line 72 of file record_sensor.h.

device_interface& librealsense::record_sensor::m_parent_device

Definition at line 74 of file record_sensor.h.

std::set<int> librealsense::record_sensor::m_recorded_streams_ids

Definition at line 67 of file record_sensor.h.

std::set<rs2_option> librealsense::record_sensor::m_recording_options

Definition at line 68 of file record_sensor.h.

bool librealsense::record_sensor::m_register_notification_to_base

Definition at line 76 of file record_sensor.h.

librealsense::notifications_callback_ptr librealsense::record_sensor::m_user_notification_callback

Definition at line 69 of file record_sensor.h.

signal<record_sensor, rs2_extension, std::shared_ptr<extension_snapshot> > librealsense::record_sensor::on_extension_change

Definition at line 47 of file record_sensor.h.

signal<record_sensor, frame_holder> librealsense::record_sensor::on_frame

Definition at line 46 of file record_sensor.h.

signal<record_sensor, const notification&> librealsense::record_sensor::on_notification

Definition at line 45 of file record_sensor.h.

private const recordable<T>& librealsense::record_sensor::snapshot

Definition at line 53 of file record_sensor.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:38