Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::platform::recording Class Reference

#include <recorder.h>

Public Member Functions

calladd_call (lookup_key key)
 
callcycle_calls (call_type call_type, int id)
 
callfind_call (call_type t, int entity_id, std::function< bool(const call &c)> history_match_validation=[](const call &c){return true;})
 
double get_time ()
 
template<class T >
std::pair< int, int > insert_list (std::vector< T > list, std::vector< T > &target)
 
std::vector< uint8_tload_blob (int id) const
 
void load_device_changed_data (backend_device_group &old, backend_device_group &curr, lookup_key k)
 
std::vector< hid_device_infoload_hid_device_info_list ()
 
std::vector< hid_sensorload_hid_sensors2_list (int entity_id)
 
template<class T >
std::vector< T > load_list (const std::vector< T > &source, const call &c)
 
template<class T >
std::vector< T > load_list (const std::vector< T > &source, const int range_start, const int range_end)
 
std::vector< stream_profileload_stream_profiles (int id, call_type type)
 
std::vector< usb_device_infoload_usb_device_info_list ()
 
std::vector< uvc_device_infoload_uvc_device_info_list ()
 
callpick_next_call (int id=0)
 
 recording (std::shared_ptr< time_service > ts=nullptr, std::shared_ptr< playback_device_watcher > watcher=nullptr)
 
void save (const char *filename, const char *section, bool append=false) const
 
int save_blob (const void *ptr, size_t size)
 
void save_device_changed_data (backend_device_group old, backend_device_group curr, lookup_key k)
 
void save_device_info_list (std::vector< uvc_device_info > list, lookup_key k)
 
void save_device_info_list (std::vector< hid_device_info > list, lookup_key k)
 
void save_device_info_list (std::vector< usb_device_info > list, lookup_key k)
 
void save_hid_sensors (std::vector< hid_sensor > list, lookup_key key)
 
void save_hid_sensors2_inputs (std::vector< hid_sensor_input > list, lookup_key key)
 
template<class T >
void save_list (std::vector< T > list, std::vector< T > &target, call_type type, int entity_id)
 
void save_stream_profiles (std::vector< stream_profile > list, lookup_key key)
 
size_t size () const
 

Static Public Member Functions

static std::shared_ptr< recordingload (const char *filename, const char *section, std::shared_ptr< playback_device_watcher > watcher=nullptr, std::string min_api_version="")
 

Private Member Functions

double get_current_time ()
 
void invoke_device_changed_event ()
 

Private Attributes

double _curr_time = 0
 
std::map< size_t, size_t_cursors
 
std::map< size_t, size_t_cycles
 
std::recursive_mutex _mutex
 
std::shared_ptr< time_service_ts
 
std::shared_ptr< playback_device_watcher_watcher
 
std::vector< std::vector< uint8_t > > blobs
 
std::vector< callcalls
 
std::vector< hid_device_infohid_device_infos
 
std::vector< hid_sensor_inputhid_sensor_inputs
 
std::vector< hid_sensorhid_sensors
 
std::vector< stream_profilestream_profiles
 
std::vector< usb_device_infousb_device_infos
 
std::vector< uvc_device_infouvc_device_infos
 

Detailed Description

Definition at line 109 of file recorder.h.

Constructor & Destructor Documentation

librealsense::platform::recording::recording ( std::shared_ptr< time_service ts = nullptr,
std::shared_ptr< playback_device_watcher watcher = nullptr 
)

Definition at line 148 of file recorder.cpp.

Member Function Documentation

call& librealsense::platform::recording::add_call ( lookup_key  key)
inline

Definition at line 147 of file recorder.h.

call * librealsense::platform::recording::cycle_calls ( call_type  call_type,
int  id 
)

Definition at line 592 of file recorder.cpp.

call & librealsense::platform::recording::find_call ( call_type  t,
int  entity_id,
std::function< bool(const call &c)>  history_match_validation = [](const callc) {return true; } 
)

Definition at line 551 of file recorder.cpp.

double librealsense::platform::recording::get_current_time ( )
private

Definition at line 546 of file recorder.cpp.

rs2_time_t librealsense::platform::recording::get_time ( )

Definition at line 166 of file recorder.cpp.

template<class T >
std::pair<int, int> librealsense::platform::recording::insert_list ( std::vector< T >  list,
std::vector< T > &  target 
)
inline

Definition at line 121 of file recorder.h.

void librealsense::platform::recording::invoke_device_changed_event ( )
private

Definition at line 153 of file recorder.cpp.

shared_ptr< recording > librealsense::platform::recording::load ( const char *  filename,
const char *  section,
std::shared_ptr< playback_device_watcher watcher = nullptr,
std::string  min_api_version = "" 
)
static

Definition at line 385 of file recorder.cpp.

std::vector<uint8_t> librealsense::platform::recording::load_blob ( int  id) const
inline

Definition at line 291 of file recorder.h.

void librealsense::platform::recording::load_device_changed_data ( backend_device_group old,
backend_device_group curr,
lookup_key  k 
)
inline

Definition at line 253 of file recorder.h.

std::vector<hid_device_info> librealsense::platform::recording::load_hid_device_info_list ( )
inline

Definition at line 279 of file recorder.h.

std::vector<hid_sensor> librealsense::platform::recording::load_hid_sensors2_list ( int  entity_id)
inline

Definition at line 285 of file recorder.h.

template<class T >
std::vector<T> librealsense::platform::recording::load_list ( const std::vector< T > &  source,
const call c 
)
inline

Definition at line 159 of file recorder.h.

template<class T >
std::vector<T> librealsense::platform::recording::load_list ( const std::vector< T > &  source,
const int  range_start,
const int  range_end 
)
inline

Definition at line 171 of file recorder.h.

std::vector<stream_profile> librealsense::platform::recording::load_stream_profiles ( int  id,
call_type  type 
)
inline

Definition at line 247 of file recorder.h.

std::vector<usb_device_info> librealsense::platform::recording::load_usb_device_info_list ( )
inline

Definition at line 267 of file recorder.h.

std::vector<uvc_device_info> librealsense::platform::recording::load_uvc_device_info_list ( )
inline

Definition at line 273 of file recorder.h.

call * librealsense::platform::recording::pick_next_call ( int  id = 0)

Definition at line 585 of file recorder.cpp.

void librealsense::platform::recording::save ( const char *  filename,
const char *  section,
bool  append = false 
) const

Definition at line 171 of file recorder.cpp.

int librealsense::platform::recording::save_blob ( const void ptr,
size_t  size 
)

Definition at line 535 of file recorder.cpp.

void librealsense::platform::recording::save_device_changed_data ( backend_device_group  old,
backend_device_group  curr,
lookup_key  k 
)
inline

Definition at line 181 of file recorder.h.

void librealsense::platform::recording::save_device_info_list ( std::vector< uvc_device_info list,
lookup_key  k 
)
inline

Definition at line 216 of file recorder.h.

void librealsense::platform::recording::save_device_info_list ( std::vector< hid_device_info list,
lookup_key  k 
)
inline

Definition at line 221 of file recorder.h.

void librealsense::platform::recording::save_device_info_list ( std::vector< usb_device_info list,
lookup_key  k 
)
inline

Definition at line 226 of file recorder.h.

void librealsense::platform::recording::save_hid_sensors ( std::vector< hid_sensor list,
lookup_key  key 
)
inline

Definition at line 236 of file recorder.h.

void librealsense::platform::recording::save_hid_sensors2_inputs ( std::vector< hid_sensor_input list,
lookup_key  key 
)
inline

Definition at line 241 of file recorder.h.

template<class T >
void librealsense::platform::recording::save_list ( std::vector< T >  list,
std::vector< T > &  target,
call_type  type,
int  entity_id 
)
inline

Definition at line 133 of file recorder.h.

void librealsense::platform::recording::save_stream_profiles ( std::vector< stream_profile list,
lookup_key  key 
)
inline

Definition at line 231 of file recorder.h.

size_t librealsense::platform::recording::size ( ) const
inline

Definition at line 299 of file recorder.h.

Member Data Documentation

double librealsense::platform::recording::_curr_time = 0
private

Definition at line 322 of file recorder.h.

std::map<size_t, size_t> librealsense::platform::recording::_cursors
private

Definition at line 315 of file recorder.h.

std::map<size_t, size_t> librealsense::platform::recording::_cycles
private

Definition at line 316 of file recorder.h.

std::recursive_mutex librealsense::platform::recording::_mutex
private

Definition at line 312 of file recorder.h.

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

Definition at line 313 of file recorder.h.

std::shared_ptr<playback_device_watcher> librealsense::platform::recording::_watcher
private

Definition at line 310 of file recorder.h.

std::vector<std::vector<uint8_t> > librealsense::platform::recording::blobs
private

Definition at line 303 of file recorder.h.

std::vector<call> librealsense::platform::recording::calls
private

Definition at line 302 of file recorder.h.

std::vector<hid_device_info> librealsense::platform::recording::hid_device_infos
private

Definition at line 307 of file recorder.h.

std::vector<hid_sensor_input> librealsense::platform::recording::hid_sensor_inputs
private

Definition at line 309 of file recorder.h.

std::vector<hid_sensor> librealsense::platform::recording::hid_sensors
private

Definition at line 308 of file recorder.h.

std::vector<stream_profile> librealsense::platform::recording::stream_profiles
private

Definition at line 306 of file recorder.h.

std::vector<usb_device_info> librealsense::platform::recording::usb_device_infos
private

Definition at line 305 of file recorder.h.

std::vector<uvc_device_info> librealsense::platform::recording::uvc_device_infos
private

Definition at line 304 of file recorder.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:39