#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 | |
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 | |
buffer * | buffers |
std::string | dev_name |
int | fd |
cv::Mat | frame |
int | height |
unsigned int | n_buffers |
int | width |
typedef struct v4l_capture::_buffer v4l_capture::buffer [private] |
Definition at line 10 of file camera.cpp.
Definition at line 15 of file camera.cpp.
uchar * v4l_capture::capture | ( | ) |
Definition at line 33 of file camera.cpp.
void 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.
void v4l_capture::init_device | ( | void | ) | [private] |
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.
void v4l_capture::read_frame | ( | void | ) | [private] |
Definition at line 114 of file camera.cpp.
bool v4l_capture::start_capturing | ( | void | ) | [private] |
Definition at line 286 of file camera.cpp.
void v4l_capture::stop_capturing | ( | void | ) | [private] |
Definition at line 315 of file camera.cpp.
void v4l_capture::uninit_device | ( | void | ) | [private] |
Definition at line 280 of file camera.cpp.
void v4l_capture::uninit_mmap | ( | void | ) | [private] |
Definition at line 190 of file camera.cpp.
void v4l_capture::write_img | ( | uchar * | ret | ) | [private] |
Definition at line 85 of file camera.cpp.
buffer* v4l_capture::buffers [private] |
std::string v4l_capture::dev_name [private] |
int v4l_capture::fd [private] |
cv::Mat v4l_capture::frame [private] |
int v4l_capture::height [private] |
unsigned int v4l_capture::n_buffers [private] |
int v4l_capture::width [private] |