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 #include "spectrogram.h"
13 Spectrogram::Spectrogram(QWidget *parent) :
14 AbstractAudioScopeWidget(false, parent)
16 ui = new Ui::Spectrogram_UI;
18 AbstractScopeWidget::init();
21 Spectrogram::~Spectrogram()
26 void Spectrogram::readConfig()
28 AbstractScopeWidget::readConfig();
30 void Spectrogram::writeConfig() {}
32 QString Spectrogram::widgetName() const { return QString("Spectrogram"); }
34 QRect Spectrogram::scopeRect() { return AbstractScopeWidget::rect(); }
36 QImage Spectrogram::renderHUD(uint) { return QImage(); }
37 QImage Spectrogram::renderAudioScope(uint accelerationFactor, const QVector<int16_t> audioFrame, const int freq, const int num_channels, const int num_samples) {
40 QImage Spectrogram::renderBackground(uint) { return QImage(); }
42 bool Spectrogram::isHUDDependingOnInput() const { return false; }
43 bool Spectrogram::isScopeDependingOnInput() const { return false; }
44 bool Spectrogram::isBackgroundDependingOnInput() const { return false; }