1 /***************************************************************************
2 * Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com) *
3 * This file is part of kdenlive. See www.kdenlive.org. *
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 ***************************************************************************/
11 #ifndef WAVEFORMGENERATOR_H
12 #define WAVEFORMGENERATOR_H
18 class WaveformGenerator : public QObject
23 enum PaintMode { PaintMode_Green, PaintMode_Yellow, PaintMode_White };
24 enum Rec { Rec_601, Rec_709 };
29 QImage calculateWaveform(const QSize &waveformSize, const QImage &image, WaveformGenerator::PaintMode paintMode,
30 bool drawAxis, const WaveformGenerator::Rec rec, uint accelFactor = 1);
33 //void signalCalculationFinished(QImage image, const uint &ms);
37 #endif // WAVEFORMGENERATOR_H