]> git.sesse.net Git - kdenlive/blob - src/colorcorrection/waveformgenerator.h
AbstractScopeWidget changes:
[kdenlive] / src / colorcorrection / waveformgenerator.h
1 /***************************************************************************
2  *   Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com)      *
3  *   This file is part of kdenlive. See www.kdenlive.org.                  *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  ***************************************************************************/
10
11 #ifndef WAVEFORMGENERATOR_H
12 #define WAVEFORMGENERATOR_H
13
14 #include <QObject>
15 #include <QImage>
16 #include <QSize>
17
18 class WaveformGenerator : public QObject
19 {
20     Q_OBJECT
21
22 public:
23     WaveformGenerator();
24     ~WaveformGenerator();
25
26     QImage calculateWaveform(const QSize &waveformSize, const QImage &image, const bool &drawAxis, const uint &accelFactor = 1);
27
28 signals:
29     void signalCalculationFinished(QImage image, const uint &ms);
30
31 };
32
33 #endif // WAVEFORMGENERATOR_H