#include <eyaprocesses.h>
Signals | |
| void | signalProcessFinished (int) |
| void | signalProcessError (QProcess::ProcessError) |
Public Member Functions | |
| EyaAudioVideoProcess (QObject *parent=0) | |
| Constructor. | |
| ~EyaAudioVideoProcess () | |
| Destructor. | |
| void | start (EyaParameters *params, QString dateString=QDate().currentDate().toString(Qt::ISODate), QString timerString=QString()) |
| This function starts the audio and video acquisition: ffmpeg is properly called by taking into account the settings chosen by the user. | |
| void | stop () |
| Stop the acquisition process. | |
| QTime | getStartTime () |
| QString | getCurrentWorkingDir () |
| void | setPhotoRegion (QRect) |
Private Slots | |
| void | slotProcessStarted () |
| void | slotProcessFinished (int, QProcess::ExitStatus) |
| void | slotProcessError (QProcess::ProcessError) |
Private Member Functions | |
| QString | createOutputFileAndDir (EyaParameters *, QString, QString) |
| This function creates the output dirs where the final files will be saved. | |
| void | writeIdxFile (QString) |
| To save the photo crop infos. | |
Private Attributes | |
| QProcess * | proc |
| QTime | startTime |
| QString | currentWorkingDir |
| QRect | rectSelectedPhotoRegion |
The audio and video class acquisition explots the ffmpeg application to start the acquisition. The ffmpeg call is properly filled in by taking into account the options chosen by the user.
| EyaAudioVideoProcess::EyaAudioVideoProcess | ( | QObject * | parent = 0 |
) |
Constructor.
| EyaAudioVideoProcess::~EyaAudioVideoProcess | ( | ) |
Destructor.
| QString EyaAudioVideoProcess::createOutputFileAndDir | ( | EyaParameters * | params, | |
| QString | dateString, | |||
| QString | timerString | |||
| ) | [private] |
This function creates the output dirs where the final files will be saved.
| QString EyaAudioVideoProcess::getCurrentWorkingDir | ( | ) |
| QTime EyaAudioVideoProcess::getStartTime | ( | ) |
| void EyaAudioVideoProcess::setPhotoRegion | ( | QRect | r | ) |
| void EyaAudioVideoProcess::signalProcessError | ( | QProcess::ProcessError | ) | [signal] |
| void EyaAudioVideoProcess::signalProcessFinished | ( | int | ) | [signal] |
| void EyaAudioVideoProcess::slotProcessError | ( | QProcess::ProcessError | error | ) | [private, slot] |
| void EyaAudioVideoProcess::slotProcessFinished | ( | int | exitCode, | |
| QProcess::ExitStatus | exitStatus | |||
| ) | [private, slot] |
| void EyaAudioVideoProcess::slotProcessStarted | ( | ) | [private, slot] |
| void EyaAudioVideoProcess::start | ( | EyaParameters * | params, | |
| QString | dateString = QDate().currentDate().toString(Qt::ISODate), |
|||
| QString | timerString = QString() | |||
| ) |
This function starts the audio and video acquisition: ffmpeg is properly called by taking into account the settings chosen by the user.
| void EyaAudioVideoProcess::stop | ( | ) |
Stop the acquisition process.
| void EyaAudioVideoProcess::writeIdxFile | ( | QString | filename | ) | [private] |
To save the photo crop infos.
QString EyaAudioVideoProcess::currentWorkingDir [private] |
QProcess* EyaAudioVideoProcess::proc [private] |
QRect EyaAudioVideoProcess::rectSelectedPhotoRegion [private] |
QTime EyaAudioVideoProcess::startTime [private] |
1.5.8