]> git.sesse.net Git - kdenlive/blob - src/colorcorrection/vectorscopegenerator.h
1f6851d27db319bddef0d205f983447b77e799d8
[kdenlive] / src / colorcorrection / vectorscopegenerator.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 VECTORSCOPEGENERATOR_H
12 #define VECTORSCOPEGENERATOR_H
13
14 #include <QObject>
15
16 class QImage;
17 class QPoint;
18 class QPointF;
19 class QSize;
20
21 class VectorscopeGenerator : public QObject
22 {
23 Q_OBJECT
24
25 public:
26     enum PaintMode { PaintMode_Green, PaintMode_Green2, PaintMode_Original, PaintMode_Chroma, PaintMode_YUV, PaintMode_Black };
27
28     QImage calculateVectorscope(const QSize &vectorscopeSize, const QImage &image, const float &gain,
29                                 const VectorscopeGenerator::PaintMode &paintMode,
30                                 const bool&, const uint &accelFactor = 1) const;
31
32     QPoint mapToCircle(const QSize &targetSize, const QPointF &point) const;
33     static const float scaling;
34
35 signals:
36     void signalCalculationFinished(QImage image, const uint &ms);
37
38 };
39
40 #endif // VECTORSCOPEGENERATOR_H