Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
v4l_capture Class Reference

#include <camera.h>

List of all members.

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 11 of file camera.h.


Member Typedef Documentation

typedef struct v4l_capture::_buffer v4l_capture::buffer [private]

Constructor & Destructor Documentation

Definition at line 10 of file camera.cpp.

Definition at line 15 of file camera.cpp.


Member Function Documentation

uchar * v4l_capture::capture ( )

Definition at line 33 of file camera.cpp.

bool v4l_capture::close_device ( void  ) [private]

Definition at line 76 of file camera.cpp.

Definition at line 45 of file camera.cpp.

Definition at line 40 of file camera.cpp.

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

Definition at line 23 of file camera.cpp.

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

Definition at line 50 of file camera.cpp.

bool v4l_capture::init_device ( void  ) [private]

Definition at line 209 of file camera.cpp.

bool v4l_capture::init_mmap ( void  ) [private]

Definition at line 140 of file camera.cpp.

bool v4l_capture::open_device ( void  ) [private]

Definition at line 63 of file camera.cpp.

bool v4l_capture::read_frame ( void  ) [private]

Definition at line 117 of file camera.cpp.

bool v4l_capture::start_capturing ( void  ) [private]

Definition at line 294 of file camera.cpp.

bool v4l_capture::stop_capturing ( void  ) [private]

Definition at line 323 of file camera.cpp.

Definition at line 288 of file camera.cpp.

bool v4l_capture::uninit_mmap ( void  ) [private]

Definition at line 196 of file camera.cpp.

bool v4l_capture::write_img ( uchar *  ret) [private]

Definition at line 86 of file camera.cpp.


Member Data Documentation

Definition at line 20 of file camera.h.

std::string v4l_capture::dev_name [private]

Definition at line 18 of file camera.h.

int v4l_capture::fd [private]

Definition at line 19 of file camera.h.

cv::Mat v4l_capture::frame [private]

Definition at line 17 of file camera.h.

Definition at line 19 of file camera.h.

unsigned int v4l_capture::n_buffers [private]

Definition at line 21 of file camera.h.

Definition at line 19 of file camera.h.


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


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed May 15 2019 05:02:21