trikRuntime
trikControl::V4l2CameraImplementation Class Reference

Camera implementation using v4l2. More...

#include <v4l2CameraImplementation.h>

Inheritance diagram for trikControl::V4l2CameraImplementation:
Collaboration diagram for trikControl::V4l2CameraImplementation:

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...
 

Detailed Description

Camera implementation using v4l2.

Constructor & Destructor Documentation

V4l2CameraImplementation::V4l2CameraImplementation ( const QString &  port,
trikHal::HardwareAbstractionInterface hardwareAbstraction 
)

V4l2 camera constructor.

Parameters
port- name of device, i.e. "/dev/video0"
hardwareAbstraction- realization of HAL
trikControl::V4l2CameraImplementation::~V4l2CameraImplementation ( )
overridedefault

Member Function Documentation

QVector< uint8_t > V4l2CameraImplementation::getPhoto ( )
overridevirtual

Get photo as a vector of uint8t in RGB 888 format.

Implements trikControl::CameraImplementationInterface.


The documentation for this class was generated from the following files: