]> git.sesse.net Git - kdenlive/blob - src/scopes/colorscopes/rgbparade.h
Const'ref
[kdenlive] / src / scopes / colorscopes / rgbparade.h
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 #ifndef RGBPARADE_H
12 #define RGBPARADE_H
13
14 #include <QObject>
15 #include "abstractgfxscopewidget.h"
16 #include "ui_rgbparade_ui.h"
17
18 class QImage;
19 class RGBParade_UI;
20 class RGBParadeGenerator;
21
22 /**
23  * \brief Displays the RGB waveform of a frame.
24  * This is the same as the Waveform, but for each colour channel separately.
25  */
26 class RGBParade : public AbstractGfxScopeWidget
27 {
28 public:
29     explicit RGBParade(QWidget *parent = 0);
30     ~RGBParade();
31     QString widgetName() const;
32
33 protected:
34     virtual void readConfig();
35     void writeConfig();
36     QRect scopeRect();
37
38 private:
39     Ui::RGBParade_UI *ui;
40     RGBParadeGenerator *m_rgbParadeGenerator;
41
42     QAction *m_aAxis;
43     QAction *m_aGradRef;
44
45     bool isHUDDependingOnInput() const;
46     bool isScopeDependingOnInput() const;
47     bool isBackgroundDependingOnInput() const;
48
49     QImage renderHUD(uint accelerationFactor);
50     QImage renderGfxScope(uint accelerationFactor, const QImage &);
51     QImage renderBackground(uint accelerationFactor);
52 };
53
54 #endif // RGBPARADE_H