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;
19 class Histogram : public AbstractGfxScopeWidget {
23 Histogram(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent = 0);
25 QString widgetName() const;
28 virtual void readConfig();
32 HistogramGenerator *m_histogramGenerator;
36 QActionGroup *m_agRec;
39 bool isHUDDependingOnInput() const;
40 bool isScopeDependingOnInput() const;
41 bool isBackgroundDependingOnInput() const;
42 QImage renderHUD(uint accelerationFactor);
43 QImage renderScope(uint accelerationFactor, const QImage);
44 QImage renderBackground(uint accelerationFactor);