-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideodebugger.h
43 lines (36 loc) · 958 Bytes
/
videodebugger.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef VIDEODEBUGGER_H
#define VIDEODEBUGGER_H
#include <QObject>
#include <QMediaPlayer>
#include <QVideoFrame>
#include <QDebug>
#include <QMap>
#include <QColor>
#include <QPair>
#include <QTime>
#include <QLabel>
#include <QPalette>
#include "APIConnector.h"
#include "color.h"
#include "ui_form.h"
class VideoDebugger : public QObject
{
Q_OBJECT
public:
explicit VideoDebugger(QObject *parent = 0, bool display = true);
signals:
public slots:
void mediaCheck(QMediaPlayer::MediaStatus status);
void processFrame(QVideoFrame frame);
float clamp(float);
private:
Ui_Colors *_colorsWindow;
QList<APIConnector*> _API;
QList<QMap<Color*, int>> map;
QList<Color*> _palet;
QList<QTime> _timer;
QList<QList<QColor>> _lastColors;
QList<QColor> _average;
bool _display;
};
#endif // VIDEODEBUGGER_H