1 /***************************************************************************
2 * Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com) *
3 * This file is part of kdenlive. See www.kdenlive.org. *
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 ***************************************************************************/
11 #ifndef VECTORSCOPEGENERATOR_H
12 #define VECTORSCOPEGENERATOR_H
21 class VectorscopeGenerator : public QObject
26 enum PaintMode { PaintMode_Green, PaintMode_Green2, PaintMode_Original, PaintMode_Chroma, PaintMode_YUV, PaintMode_Black };
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;
32 QPoint mapToCircle(const QSize &targetSize, const QPointF &point) const;
33 static const float scaling;
36 void signalCalculationFinished(QImage image, const uint &ms);
40 #endif // VECTORSCOPEGENERATOR_H