QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SubtitleWriter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QtCore/QFile>
4
#include <QtCore/QLoggingCategory>
5
#include <QtCore/QObject>
6
#include <QtCore/QSize>
7
#include <QtCore/QTime>
8
#include <QtCore/QTimer>
9
10
class
Fact
;
11
12
Q_DECLARE_LOGGING_CATEGORY
(SubtitleWriterLog)
13
14
class
SubtitleWriter
: public QObject
15
{
16
Q_OBJECT
17
18
public
:
19
explicit
SubtitleWriter
(QObject *parent =
nullptr
);
20
~SubtitleWriter
();
21
22
void
startCapturingTelemetry(
const
QString &videoFile, QSize size);
23
void
stopCapturingTelemetry();
24
25
private
slots:
26
void
_captureTelemetry();
27
28
private
:
29
QFile _file;
30
QList<Fact*> _facts;
31
QSize _size;
32
QTime _lastEndTime;
33
QTimer _timer;
34
35
static
constexpr
int
_kSampleRate = 1;
36
};
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Fact
A Fact is used to hold a single value within the system.
Definition
Fact.h:19
SubtitleWriter
Definition
SubtitleWriter.h:15
src
VideoManager
SubtitleWriter.h
Generated by
1.9.8