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

void close_device ()
bool init_all (size_t _width, size_t _height, unsigned int _devId)
void init_device ()
void init_mmap ()
bool open_device ()
void read_frame (void)
bool start_capturing ()
void stop_capturing ()
void uninit_device ()
void uninit_mmap ()
void 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.

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.

Definition at line 202 of file camera.cpp.

void v4l_capture::init_mmap ( void  ) [private]

Definition at line 135 of file camera.cpp.

bool v4l_capture::open_device ( void  ) [private]

Definition at line 63 of file camera.cpp.

Definition at line 114 of file camera.cpp.

bool v4l_capture::start_capturing ( void  ) [private]

Definition at line 286 of file camera.cpp.

Definition at line 315 of file camera.cpp.

Definition at line 280 of file camera.cpp.

Definition at line 190 of file camera.cpp.

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

Definition at line 85 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 Sep 6 2017 02:35:58