#include <QCam.hpp>
Inheritance diagram for QCam:


Public Member Functions | |
| virtual QCamFrame | yuvFrame () const=0 |
| return the frame in yuv 420P format. | |
| virtual const QSize & | size () const=0 |
| return the size of the current frame. | |
| virtual void | resize (const QSize &s)=0 |
| try to resize the current frame. | |
| virtual const QSize * | getAllowedSize () const=0 |
| return an array of supported size of th capture window. | |
| void | setProperty (const string &prop, const string &val, bool resetCapture=false) |
| Set the value of a properties. | |
| string | getProperty (const string &prop) const |
| get the value of a properties. | |
| void | importProperties (const QCam &other) |
| import properties from an other QCam object. | |
| void | exportProperties (map< string, string > &dest) const |
| export properties | |
| const map< string, string > & | getProperties () const |
| get reference on properties | |
| virtual QWidget * | buildGUI (QWidget *parent) |
| build the GUI | |
| bool | guiBuild () const |
| indicate thet the GUI have been build | |
| void | writeProperties (const string &fileName) const |
| wrtite the properties associated to the camera | |
| bool | saveFrame (const string &file) const |
| save the current frame with the current selected format | |
| void | annotate (const Vector2D &pos) const |
| put a small annotation on the frame | |
Protected Member Functions | |
| void | newFrameAvaible () |
| Must be called when a new YUV frame is avaible. | |
| void | setTime () |
| when called, will set the date of the frame to current date | |
| virtual QCamFrame QCam::yuvFrame | ( | ) | const [pure virtual] |
return the frame in yuv 420P format.
it is the native format used by all algoithms.
Implemented in QCamAdd, QCamAutoAlign, QCamMax, and QCamV4L.
| virtual void QCam::resize | ( | const QSize & | s | ) | [pure virtual] |
try to resize the current frame.
it can failed. size() must be called to know the real new size.
Implemented in QCamAdd, QCamAutoAlign, QCamMax, and QCamV4L.
| const QSize * QCam::getAllowedSize | ( | ) | const [pure virtual] |
| void QCam::setProperty | ( | const string & | prop, | |
| const string & | val, | |||
| bool | resetCapture = false | |||
| ) |
Set the value of a properties.
Properties are dumped is file "<dirName>/properties.txt" in sequence capture mode. Properties are dumped is file "<fileName>.properties" in snapshot capture mode.
| void QCam::newFrameAvaible | ( | ) | [protected] |
Must be called when a new YUV frame is avaible.
It is used by frame() to opimize conversion from YUV to QImage.
1.5.1