trikRuntime
|
Camera implementation using v4l2. More...
#include <v4l2CameraImplementation.h>
Public Member Functions | |
V4l2CameraImplementation (const QString &port, trikHal::HardwareAbstractionInterface &hardwareAbstraction) | |
V4l2 camera constructor. More... | |
QVector< uint8_t > | getPhoto () override |
Get photo as a vector of uint8t in RGB 888 format. More... | |
~V4l2CameraImplementation () override=default | |
Public Member Functions inherited from trikControl::CameraImplementationInterface | |
virtual | ~CameraImplementationInterface ()=default |
CameraImplementationInterface ()=default | |
QString | getTempDir () const |
Get directory, where photos are saved. More... | |
void | setTempDir (const QString &newDir) |
Set directory, where photos are saved. More... | |
Camera implementation using v4l2.
V4l2CameraImplementation::V4l2CameraImplementation | ( | const QString & | port, |
trikHal::HardwareAbstractionInterface & | hardwareAbstraction | ||
) |
V4l2 camera constructor.
port | - name of device, i.e. "/dev/video0" |
hardwareAbstraction | - realization of HAL |
|
overridedefault |
|
overridevirtual |
Get photo as a vector of uint8t in RGB 888 format.
Implements trikControl::CameraImplementationInterface.