![]() |
MediaX v1.1.2 [7554dd3]
Video streaming for military vehicles
|
Class for Video 4 Linux 2 (V4L2) capture. More...
#include <v4l2_source.h>

Public Member Functions | |
| V4L2Capture (std::string_view device, int width, int height) | |
| Construct a new V4L2Capture object. | |
| V4L2Capture & | operator= (const V4L2Capture &)=delete |
| Delete the assignment operator. | |
| ~V4L2Capture () | |
| Destroy the V4L2Capture::V4L2Capture object. | |
| int | Initalise () |
| Initalise the V4L2 device. | |
| bool | CaptureFrame (uint8_t *buffer) const |
| Capture a frame from the V4L2 device. | |
| V4L2Capture (const V4L2Capture &)=delete | |
| Delete the copy constructor. | |
Private Member Functions | |
| void | PrintCaps (const v4l2_capability *cap) const |
| Print the capabilities of the V4L2 device. | |
Class for Video 4 Linux 2 (V4L2) capture.
| V4L2Capture::V4L2Capture | ( | std::string_view | device, |
| int | width, | ||
| int | height | ||
| ) |
Construct a new V4L2Capture object.
| device | The device to capture from |
| width | The width of the frame |
| height | The height of the frame |
| bool V4L2Capture::CaptureFrame | ( | uint8_t * | buffer | ) | const |
Capture a frame from the V4L2 device.
| buffer | The buffer to store the frame in |
| int V4L2Capture::Initalise | ( | ) |
Initalise the V4L2 device.
|
delete |
Delete the assignment operator.
|
private |
Print the capabilities of the V4L2 device.
| cap |