Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
librealsense::platform::v4l_uvc_meta_device Class Reference

#include <backend-v4l2.h>

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

Public Member Functions

 v4l_uvc_meta_device (const uvc_device_info &info, bool use_memory_map=false)
 
 ~v4l_uvc_meta_device ()
 
- Public Member Functions inherited from librealsense::platform::v4l_uvc_device
void close (stream_profile) override
 
std::string fourcc_to_string (uint32_t id) const
 
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 option) const override
 
usb_spec get_usb_specification () const override
 
bool get_xu (const extension_unit &xu, uint8_t control, uint8_t *data, int size) const override
 
control_range get_xu_range (const extension_unit &xu, uint8_t control, int len) const override
 
void init_xu (const extension_unit &) override
 
void lock () const override
 
void poll ()
 
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 control, const uint8_t *data, int size) override
 
void signal_stop ()
 
void start_callbacks () override
 
void stop_callbacks () override
 
void stream_on (std::function< void(const notification &n)> error_handler) override
 
void unlock () const override
 
 v4l_uvc_device (const uvc_device_info &info, bool use_memory_map=false)
 
 ~v4l_uvc_device () override
 
- Public Member Functions inherited from librealsense::platform::uvc_device
virtual ~uvc_device ()=default
 

Protected Member Functions

virtual void acquire_metadata (buffers_mgr &buf_mgr, fd_set &fds, bool compressed_format=false)
 
void allocate_io_buffers (size_t num)
 
void map_device_descriptor ()
 
void negotiate_kernel_buffers (size_t num) const
 
void prepare_capture_buffers ()
 
void set_format (stream_profile profile)
 
void streamoff () const
 
void streamon () const
 
void unmap_device_descriptor ()
 
- Protected Member Functions inherited from librealsense::platform::v4l_uvc_device
virtual void capture_loop () override
 
virtual bool has_metadata () const override
 
virtual void stop_data_capture () override
 

Protected Attributes

std::vector< std::shared_ptr< buffer > > _md_buffers
 
int _md_fd = -1
 
std::string _md_name = ""
 
stream_profile _md_profile
 
- Protected Attributes inherited from librealsense::platform::v4l_uvc_device
buffers_mgr _buf_dispatch
 
std::vector< std::shared_ptr< buffer > > _buffers
 
frame_callback _callback
 
std::string _device_path = ""
 
usb_spec _device_usb_spec = usb_undefined
 
std::vector< int > _fds
 
uvc_device_info _info
 
std::atomic< bool > _is_alive
 
std::atomic< bool > _is_capturing
 
std::atomic< bool > _is_started
 
int _max_fd = 0
 
std::string _name = ""
 
std::unique_ptr< named_mutex_named_mtx
 
stream_profile _profile
 
power_state _state = D3
 
std::unique_ptr< std::thread > _thread
 
bool _use_memory_map
 
- Protected Attributes inherited from librealsense::platform::uvc_device
std::function< void(const notification &n)> _error_handler
 

Additional Inherited Members

- Static Public Member Functions inherited from librealsense::platform::v4l_uvc_device
static void foreach_uvc_device (std::function< void(const uvc_device_info &, const std::string &)> action)
 
- Static Protected Member Functions inherited from librealsense::platform::v4l_uvc_device
static uint32_t get_cid (rs2_option option)
 

Detailed Description

Definition at line 349 of file backend-v4l2.h.

Constructor & Destructor Documentation

librealsense::platform::v4l_uvc_meta_device::v4l_uvc_meta_device ( const uvc_device_info info,
bool  use_memory_map = false 
)

Definition at line 1574 of file backend-v4l2.cpp.

librealsense::platform::v4l_uvc_meta_device::~v4l_uvc_meta_device ( )

Definition at line 1581 of file backend-v4l2.cpp.

Member Function Documentation

void librealsense::platform::v4l_uvc_meta_device::acquire_metadata ( buffers_mgr buf_mgr,
fd_set &  fds,
bool  compressed_format = false 
)
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1725 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::allocate_io_buffers ( size_t  num)
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1611 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::map_device_descriptor ( )
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1632 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::negotiate_kernel_buffers ( size_t  num) const
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1602 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::prepare_capture_buffers ( )
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1715 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::set_format ( stream_profile  profile)
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1677 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::streamoff ( ) const
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1595 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::streamon ( ) const
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1585 of file backend-v4l2.cpp.

void librealsense::platform::v4l_uvc_meta_device::unmap_device_descriptor ( )
protectedvirtual

Reimplemented from librealsense::platform::v4l_uvc_device.

Definition at line 1667 of file backend-v4l2.cpp.

Member Data Documentation

std::vector<std::shared_ptr<buffer> > librealsense::platform::v4l_uvc_meta_device::_md_buffers
protected

Definition at line 371 of file backend-v4l2.h.

int librealsense::platform::v4l_uvc_meta_device::_md_fd = -1
protected

Definition at line 368 of file backend-v4l2.h.

std::string librealsense::platform::v4l_uvc_meta_device::_md_name = ""
protected

Definition at line 369 of file backend-v4l2.h.

stream_profile librealsense::platform::v4l_uvc_meta_device::_md_profile
protected

Definition at line 372 of file backend-v4l2.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