]> git.sesse.net Git - kdenlive/blob - src/colorcorrection/rgbparadegenerator.h
Const'ref
[kdenlive] / src / colorcorrection / rgbparadegenerator.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 RGBPARADEGENERATOR_H
12 #define RGBPARADEGENERATOR_H
13
14 #include <QObject>
15
16 class QColor;
17 class QImage;
18 class QSize;
19 class RGBParadeGenerator : public QObject
20 {
21 public:
22     enum PaintMode { PaintMode_RGB, PaintMode_White };
23
24     RGBParadeGenerator();
25     QImage calculateRGBParade(const QSize &paradeSize, const QImage &image, const RGBParadeGenerator::PaintMode paintMode,
26                               bool drawAxis, bool drawGradientRef, uint accelFactor = 1);
27
28     static const QColor colHighlight;
29     static const QColor colLight;
30     static const QColor colSoft;
31
32     static const uchar distRight;
33     static const uchar distBottom;
34 };
35
36 #endif // RGBPARADEGENERATOR_H