]> git.sesse.net Git - kdenlive/blob - src/audioscopes/spectrogram.cpp
Preparing Spectrogram widget
[kdenlive] / src / audioscopes / spectrogram.cpp
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 #include "spectrogram.h"
12
13 Spectrogram::Spectrogram(QWidget *parent) :
14         AbstractAudioScopeWidget(false, parent)
15 {
16     ui = new Ui::Spectrogram_UI;
17     ui->setupUi(this);
18     AbstractScopeWidget::init();
19 }
20
21 Spectrogram::~Spectrogram()
22 {
23     writeConfig();
24 }
25
26 void Spectrogram::readConfig()
27 {
28     AbstractScopeWidget::readConfig();
29 }
30 void Spectrogram::writeConfig() {}
31
32 QString Spectrogram::widgetName() const { return QString("Spectrogram"); }
33
34 QRect Spectrogram::scopeRect() { return AbstractScopeWidget::rect(); }
35
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) {
38     return QImage();
39 }
40 QImage Spectrogram::renderBackground(uint) { return QImage(); }
41
42 bool Spectrogram::isHUDDependingOnInput() const { return false; }
43 bool Spectrogram::isScopeDependingOnInput() const { return false; }
44 bool Spectrogram::isBackgroundDependingOnInput() const { return false; }