trikRuntime
TrikV4l2VideoDevice Class Reference

Class for working with a camera on a TRIK controller. More...

#include <trikV4l2VideoDevice.h>

Inheritance diagram for TrikV4l2VideoDevice:
Collaboration diagram for TrikV4l2VideoDevice:

Public Slots

void readFrameData (int fd)
 Read data from v4l2 buffers. More...
 

Signals

void dataReady ()
 Signal when photo was made. More...
 

Public Member Functions

 TrikV4l2VideoDevice (const QString &inputFile)
 TRIK v4l2 video device constructor. More...
 
 ~TrikV4l2VideoDevice ()
 
const QVector< uint8_t > & makeShot ()
 Make photo using TRIK camera. More...
 
const QVector< uint8_t > & getFrame () const
 Get last frame. More...
 

Detailed Description

Class for working with a camera on a TRIK controller.

Constructor & Destructor Documentation

TrikV4l2VideoDevice::TrikV4l2VideoDevice ( const QString &  inputFile)
explicit

TRIK v4l2 video device constructor.

Parameters
inputFile- camera device name
TrikV4l2VideoDevice::~TrikV4l2VideoDevice ( )

Member Function Documentation

void TrikV4l2VideoDevice::dataReady ( )
signal

Signal when photo was made.

const QVector<uint8_t>& TrikV4l2VideoDevice::getFrame ( ) const
inline

Get last frame.

const QVector< uint8_t > & TrikV4l2VideoDevice::makeShot ( )

Make photo using TRIK camera.

void TrikV4l2VideoDevice::readFrameData ( int  fd)
slot

Read data from v4l2 buffers.

Parameters
fd- file descriptor

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