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

#include <recorder.h>

Inheritance diagram for librealsense::platform::playback_uvc_device:
Inheritance graph
[legend]

Public Member Functions

void callback_thread ()
 
void close (stream_profile profile) override
 
std::string get_device_location () const override
 
power_state get_power_state () const override
 
std::vector< stream_profileget_profiles () const override
 
bool get_pu (rs2_option opt, int32_t &value) const override
 
control_range get_pu_range (rs2_option opt) const override
 
usb_spec get_usb_specification () const override
 
bool get_xu (const extension_unit &xu, uint8_t ctrl, uint8_t *data, int len) const override
 
control_range get_xu_range (const extension_unit &xu, uint8_t ctrl, int len) const override
 
void init_xu (const extension_unit &xu) override
 
void lock () const override
 
 playback_uvc_device (std::shared_ptr< recording > rec, int id)
 
void probe_and_commit (stream_profile profile, frame_callback callback, int buffers) override
 
void set_power_state (power_state state) override
 
bool set_pu (rs2_option opt, int32_t value) override
 
bool set_xu (const extension_unit &xu, uint8_t ctrl, const uint8_t *data, int len) override
 
void start_callbacks () override
 
void stop_callbacks () override
 
void stream_on (std::function< void(const notification &n)> error_handler=[](const notification &n){}) override
 
void unlock () const override
 
 ~playback_uvc_device ()
 
- Public Member Functions inherited from librealsense::platform::uvc_device
virtual ~uvc_device ()=default
 

Private Member Functions

stream_profile get_profile (call *frame) const
 

Private Attributes

std::atomic< bool > _alive
 
std::mutex _callback_mutex
 
std::thread _callback_thread
 
configurations _callbacks
 
configurations _commitments
 
compression_algorithm _compression
 
int _entity_id
 
std::shared_ptr< recording_rec
 

Additional Inherited Members

- Protected Attributes inherited from librealsense::platform::uvc_device
std::function< void(const notification &n)> _error_handler
 

Detailed Description

Definition at line 507 of file recorder.h.

Constructor & Destructor Documentation

librealsense::platform::playback_uvc_device::playback_uvc_device ( std::shared_ptr< recording rec,
int  id 
)
explicit

Definition at line 1399 of file recorder.cpp.

librealsense::platform::playback_uvc_device::~playback_uvc_device ( )

Definition at line 1178 of file recorder.cpp.

Member Function Documentation

void librealsense::platform::playback_uvc_device::callback_thread ( )

Definition at line 1530 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::close ( stream_profile  profile)
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1261 of file recorder.cpp.

string librealsense::platform::playback_uvc_device::get_device_location ( ) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1387 of file recorder.cpp.

power_state librealsense::platform::playback_uvc_device::get_power_state ( ) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1285 of file recorder.cpp.

stream_profile librealsense::platform::playback_uvc_device::get_profile ( call frame) const
private

Definition at line 1519 of file recorder.cpp.

vector< stream_profile > librealsense::platform::playback_uvc_device::get_profiles ( ) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1372 of file recorder.cpp.

bool librealsense::platform::playback_uvc_device::get_pu ( rs2_option  opt,
int32_t value 
) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1340 of file recorder.cpp.

control_range librealsense::platform::playback_uvc_device::get_pu_range ( rs2_option  opt) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1359 of file recorder.cpp.

usb_spec librealsense::platform::playback_uvc_device::get_usb_specification ( ) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1393 of file recorder.cpp.

bool librealsense::platform::playback_uvc_device::get_xu ( const extension_unit xu,
uint8_t  ctrl,
uint8_t data,
int  len 
) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1312 of file recorder.cpp.

control_range librealsense::platform::playback_uvc_device::get_xu_range ( const extension_unit xu,
uint8_t  ctrl,
int  len 
) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1324 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::init_xu ( const extension_unit xu)
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1291 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::lock ( ) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1377 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::probe_and_commit ( stream_profile  profile,
frame_callback  callback,
int  buffers 
)
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1226 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::set_power_state ( power_state  state)
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1277 of file recorder.cpp.

bool librealsense::platform::playback_uvc_device::set_pu ( rs2_option  opt,
int32_t  value 
)
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1350 of file recorder.cpp.

bool librealsense::platform::playback_uvc_device::set_xu ( const extension_unit xu,
uint8_t  ctrl,
const uint8_t data,
int  len 
)
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1296 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::start_callbacks ( )
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1251 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::stop_callbacks ( )
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1256 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::stream_on ( std::function< void(const notification &n)>  error_handler = [](const notificationn) {})
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1240 of file recorder.cpp.

void librealsense::platform::playback_uvc_device::unlock ( ) const
overridevirtual

Implements librealsense::platform::uvc_device.

Definition at line 1382 of file recorder.cpp.

Member Data Documentation

std::atomic<bool> librealsense::platform::playback_uvc_device::_alive
private

Definition at line 540 of file recorder.h.

std::mutex librealsense::platform::playback_uvc_device::_callback_mutex
private

Definition at line 544 of file recorder.h.

std::thread librealsense::platform::playback_uvc_device::_callback_thread
private

Definition at line 541 of file recorder.h.

configurations librealsense::platform::playback_uvc_device::_callbacks
private

Definition at line 542 of file recorder.h.

configurations librealsense::platform::playback_uvc_device::_commitments
private

Definition at line 543 of file recorder.h.

compression_algorithm librealsense::platform::playback_uvc_device::_compression
private

Definition at line 545 of file recorder.h.

int librealsense::platform::playback_uvc_device::_entity_id
private

Definition at line 539 of file recorder.h.

std::shared_ptr<recording> librealsense::platform::playback_uvc_device::_rec
private

Definition at line 538 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