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

#include <backend-v4l2.h>

Classes

struct  kernel_buf_guard
 

Public Member Functions

 buffers_mgr (bool memory_mapped_buf)
 
std::array< kernel_buf_guard, e_max_kernel_buf_type > & get_buffers ()
 
void handle_buffer (supported_kernel_buf_types buf_type, int file_desc, v4l2_buffer buf=v4l2_buffer(), std::shared_ptr< platform::buffer > data_buf=nullptr)
 
bool md_node_present () const
 
uint8_t metadata_size () const
 
voidmetadata_start () const
 
void request_next_frame ()
 
void set_md_attributes (uint8_t md_size, void *md_start)
 
void set_md_from_video_node (bool compressed)
 
bool verify_vd_md_sync () const
 
 ~buffers_mgr ()
 

Private Attributes

uint8_t _md_size
 
void_md_start
 
bool _mmap_bufs
 
std::array< kernel_buf_guard, e_max_kernel_buf_typebuffers
 

Detailed Description

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

Constructor & Destructor Documentation

librealsense::platform::buffers_mgr::buffers_mgr ( bool  memory_mapped_buf)
inline

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

librealsense::platform::buffers_mgr::~buffers_mgr ( )
inline

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

Member Function Documentation

std::array<kernel_buf_guard, e_max_kernel_buf_type>& librealsense::platform::buffers_mgr::get_buffers ( )
inline

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

void librealsense::platform::buffers_mgr::handle_buffer ( supported_kernel_buf_types  buf_type,
int  file_desc,
v4l2_buffer  buf = v4l2_buffer(),
std::shared_ptr< platform::buffer data_buf = nullptr 
)

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

bool librealsense::platform::buffers_mgr::md_node_present ( ) const

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

uint8_t librealsense::platform::buffers_mgr::metadata_size ( ) const
inline

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

void* librealsense::platform::buffers_mgr::metadata_start ( ) const
inline

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

void librealsense::platform::buffers_mgr::request_next_frame ( )

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

void librealsense::platform::buffers_mgr::set_md_attributes ( uint8_t  md_size,
void md_start 
)
inline

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

void librealsense::platform::buffers_mgr::set_md_from_video_node ( bool  compressed)

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

bool librealsense::platform::buffers_mgr::verify_vd_md_sync ( ) const

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

Member Data Documentation

uint8_t librealsense::platform::buffers_mgr::_md_size
private

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

void* librealsense::platform::buffers_mgr::_md_start
private

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

bool librealsense::platform::buffers_mgr::_mmap_bufs
private

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

std::array<kernel_buf_guard, e_max_kernel_buf_type> librealsense::platform::buffers_mgr::buffers
private

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