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

#include <backend-v4l2.h>


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
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)

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

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

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 ( )

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

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

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

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 

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

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

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

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

bool librealsense::platform::buffers_mgr::_mmap_bufs

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

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

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

The documentation for this class was generated from the following files:

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:39