#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 | |
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.
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.
void v4l_capture::uninit_device | ( | void | ) | [private] |
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.
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] |