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

#include <backend-v4l2.h>

Public Member Functions

void attach_buffer (const v4l2_buffer &buf)
 
 buffer (int fd, v4l2_buf_type type, bool use_memory_map, uint32_t index)
 
void detach_buffer ()
 
uint8_tget_frame_start () const
 
uint32_t get_full_length () const
 
uint32_t get_length_frame_only () const
 
void prepare_for_streaming (int fd)
 
void request_next_frame (int fd, bool force=false)
 
bool use_memory_map () const
 
 ~buffer ()
 

Private Attributes

v4l2_buffer _buf
 
uint32_t _index
 
uint32_t _length
 
bool _must_enqueue = false
 
std::mutex _mutex
 
uint32_t _original_length
 
uint8_t_start
 
v4l2_buf_type _type
 
bool _use_memory_map
 

Detailed Description

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

Constructor & Destructor Documentation

librealsense::platform::buffer::buffer ( int  fd,
v4l2_buf_type  type,
bool  use_memory_map,
uint32_t  index 
)

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

librealsense::platform::buffer::~buffer ( )

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

Member Function Documentation

void librealsense::platform::buffer::attach_buffer ( const v4l2_buffer &  buf)

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

void librealsense::platform::buffer::detach_buffer ( )

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

uint8_t* librealsense::platform::buffer::get_frame_start ( ) const
inline

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

uint32_t librealsense::platform::buffer::get_full_length ( ) const
inline

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

uint32_t librealsense::platform::buffer::get_length_frame_only ( ) const
inline

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

void librealsense::platform::buffer::prepare_for_streaming ( int  fd)

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

void librealsense::platform::buffer::request_next_frame ( int  fd,
bool  force = false 
)

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

bool librealsense::platform::buffer::use_memory_map ( ) const
inline

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

Member Data Documentation

v4l2_buffer librealsense::platform::buffer::_buf
private

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

uint32_t librealsense::platform::buffer::_index
private

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

uint32_t librealsense::platform::buffer::_length
private

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

bool librealsense::platform::buffer::_must_enqueue = false
private

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

std::mutex librealsense::platform::buffer::_mutex
private

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

uint32_t librealsense::platform::buffer::_original_length
private

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

uint8_t* librealsense::platform::buffer::_start
private

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

v4l2_buf_type librealsense::platform::buffer::_type
private

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

bool librealsense::platform::buffer::_use_memory_map
private

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