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 ***************************************************************************/
14 #include "abstractgfxscopewidget.h"
15 #include "ui_histogram_ui.h"
17 class HistogramGenerator;
20 * \brief Displays the histogram of frames.
22 class Histogram : public AbstractGfxScopeWidget {
26 explicit Histogram(QWidget *parent = 0);
28 QString widgetName() const;
31 virtual void readConfig();
35 HistogramGenerator *m_histogramGenerator;
39 QActionGroup *m_agRec;
42 bool isHUDDependingOnInput() const;
43 bool isScopeDependingOnInput() const;
44 bool isBackgroundDependingOnInput() const;
45 QImage renderHUD(uint accelerationFactor);
46 QImage renderGfxScope(uint accelerationFactor, const QImage);
47 QImage renderBackground(uint accelerationFactor);