]> git.sesse.net Git - kdenlive/blob - src/colorcorrection/waveformgenerator.h
b4f4155370d0f34a7b24e0f9b36380e3f0f0cf7a
[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 class QImage;
16 class QSize;
17
18 class WaveformGenerator : public QObject
19 {
20     Q_OBJECT
21
22 public:
23     enum PaintMode { PaintMode_Green, PaintMode_Yellow, PaintMode_White };
24     enum Rec { Rec_601, Rec_709 };
25
26     WaveformGenerator();
27     ~WaveformGenerator();
28
29     QImage calculateWaveform(const QSize &waveformSize, const QImage &image, WaveformGenerator::PaintMode paintMode,
30                              const bool &drawAxis, const WaveformGenerator::Rec rec, const uint &accelFactor = 1);
31
32 //signals:
33     //void signalCalculationFinished(QImage image, const uint &ms);
34
35 };
36
37 #endif // WAVEFORMGENERATOR_H