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 ***************************************************************************/
16 #include "abstractaudioscopewidget.h"
17 #include "ui_spectrogram_ui.h"
20 class Spectrogram : public AbstractAudioScopeWidget {
24 Spectrogram(QWidget *parent = 0);
27 QString widgetName() const;
30 ///// Implemented methods /////
32 QImage renderHUD(uint accelerationFactor);
33 QImage renderAudioScope(uint accelerationFactor, const QVector<int16_t> audioFrame, const int freq, const int num_channels, const int num_samples);
34 QImage renderBackground(uint accelerationFactor);
35 bool isHUDDependingOnInput() const;
36 bool isScopeDependingOnInput() const;
37 bool isBackgroundDependingOnInput() const;
38 virtual void readConfig();
42 Ui::Spectrogram_UI *ui;
45 #endif // SPECTROGRAM_H