]> git.sesse.net Git - kdenlive/blob - src/colortools.h
Vectorscope changes:
[kdenlive] / src / colortools.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 /**
12   Color tools.
13  */
14
15 #ifndef COLORTOOLS_H
16 #define COLORTOOLS_H
17
18 #include <QImage>
19
20 class ColorTools : public QObject
21 {
22     Q_OBJECT
23
24 public:
25     ColorTools();
26
27     /**
28       @brief Draws a UV plane with given Y value.
29       scaling defines how far to zoom in (or out). Lower value = zoom in.
30       The modified version always scales the RGB values so that at least one of them attains 255.
31       If not the full rect should be filled, set circleOnly to true.
32       See also: http://en.wikipedia.org/wiki/YUV and http://de.wikipedia.org/wiki/Vektorskop
33      */
34     QImage yuvColorWheel(const QSize& size, const unsigned char Y, const float scaling, const bool modifiedVersion, const bool circleOnly);
35
36 signals:
37     void signalWheelCalculationFinished();
38 };
39
40 #endif // COLORTOOLS_H