Video4Linux2 (V4L2) camera capture streaming.
More...
#include <v4l2Camera.h>
Video4Linux2 (V4L2) camera capture streaming.
- Note
- gstCamera, which convieniently handles both V4L2 and MIPI CSI cameras, is used mostly in lieu of v4l2Camera. v4l2Camera is provided in the event that you would rather interface with V4L2 directly, rather than go through GStreamer.
◆ ~v4l2Camera()
v4l2Camera::~v4l2Camera |
( |
| ) |
|
◆ Capture()
void* v4l2Camera::Capture |
( |
size_t |
timeout = 0 | ) |
|
◆ Close()
bool v4l2Camera::Close |
( |
| ) |
|
◆ Create()
static v4l2Camera* v4l2Camera::Create |
( |
const char * |
device_path | ) |
|
|
static |
Create V4L2 interface.
- Parameters
-
path | Filename of the video device (e.g. /dev/video0) |
◆ GetHeight()
uint32_t v4l2Camera::GetHeight |
( |
| ) |
const |
|
inline |
Retrieve height, in pixels, of camera image.
◆ GetPitch()
uint32_t v4l2Camera::GetPitch |
( |
| ) |
const |
|
inline |
Return the size in bytes of one line of the image.
◆ GetPixelDepth()
uint32_t v4l2Camera::GetPixelDepth |
( |
| ) |
const |
|
inline |
Return the bit depth per pixel.
◆ GetWidth()
uint32_t v4l2Camera::GetWidth |
( |
| ) |
const |
|
inline |
Get width, in pixels, of camera image.
◆ Open()
bool v4l2Camera::Open |
( |
| ) |
|
The documentation for this class was generated from the following file: