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