Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
v4l_capture Class Reference

#include <camera.h>

Classes

struct  _buffer
 

Public Member Functions

uchar * capture ()
 
int getHeight ()
 
int getWidth ()
 
int init (size_t _width, size_t _height, unsigned int devId)
 
 v4l_capture ()
 
 ~v4l_capture ()
 

Private Types

typedef struct v4l_capture::_buffer buffer
 

Private Member Functions

bool close_device ()
 
bool init_all (size_t _width, size_t _height, unsigned int _devId)
 
bool init_device ()
 
bool init_mmap ()
 
bool open_device ()
 
bool read_frame (void)
 
bool start_capturing ()
 
bool stop_capturing ()
 
void uninit_device ()
 
bool uninit_mmap ()
 
bool write_img (uchar *ret)
 

Private Attributes

bufferbuffers
 
std::string dev_name
 
int fd
 
cv::Mat frame
 
int height
 
unsigned int n_buffers
 
int width
 

Detailed Description

Definition at line 10 of file camera.h.

Member Typedef Documentation

◆ buffer

typedef struct v4l_capture::_buffer v4l_capture::buffer
private

Constructor & Destructor Documentation

◆ v4l_capture()

v4l_capture::v4l_capture ( )

Definition at line 10 of file camera.cpp.

◆ ~v4l_capture()

v4l_capture::~v4l_capture ( )

Definition at line 15 of file camera.cpp.

Member Function Documentation

◆ capture()

uchar * v4l_capture::capture ( )

Definition at line 33 of file camera.cpp.

◆ close_device()

bool v4l_capture::close_device ( void  )
private

Definition at line 76 of file camera.cpp.

◆ getHeight()

int v4l_capture::getHeight ( )

Definition at line 45 of file camera.cpp.

◆ getWidth()

int v4l_capture::getWidth ( )

Definition at line 40 of file camera.cpp.

◆ init()

int v4l_capture::init ( size_t  _width,
size_t  _height,
unsigned int  devId 
)

Definition at line 23 of file camera.cpp.

◆ init_all()

bool v4l_capture::init_all ( size_t  _width,
size_t  _height,
unsigned int  _devId 
)
private

Definition at line 50 of file camera.cpp.

◆ init_device()

bool v4l_capture::init_device ( void  )
private

Definition at line 209 of file camera.cpp.

◆ init_mmap()

bool v4l_capture::init_mmap ( void  )
private

Definition at line 140 of file camera.cpp.

◆ open_device()

bool v4l_capture::open_device ( void  )
private

Definition at line 63 of file camera.cpp.

◆ read_frame()

bool v4l_capture::read_frame ( void  )
private

Definition at line 117 of file camera.cpp.

◆ start_capturing()

bool v4l_capture::start_capturing ( void  )
private

Definition at line 294 of file camera.cpp.

◆ stop_capturing()

bool v4l_capture::stop_capturing ( void  )
private

Definition at line 323 of file camera.cpp.

◆ uninit_device()

void v4l_capture::uninit_device ( void  )
private

Definition at line 288 of file camera.cpp.

◆ uninit_mmap()

bool v4l_capture::uninit_mmap ( void  )
private

Definition at line 196 of file camera.cpp.

◆ write_img()

bool v4l_capture::write_img ( uchar *  ret)
private

Definition at line 86 of file camera.cpp.

Member Data Documentation

◆ buffers

buffer* v4l_capture::buffers
private

Definition at line 19 of file camera.h.

◆ dev_name

std::string v4l_capture::dev_name
private

Definition at line 17 of file camera.h.

◆ fd

int v4l_capture::fd
private

Definition at line 18 of file camera.h.

◆ frame

cv::Mat v4l_capture::frame
private

Definition at line 16 of file camera.h.

◆ height

int v4l_capture::height
private

Definition at line 18 of file camera.h.

◆ n_buffers

unsigned int v4l_capture::n_buffers
private

Definition at line 20 of file camera.h.

◆ width

int v4l_capture::width
private

Definition at line 18 of file camera.h.


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


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Sat Dec 17 2022 03:52:22