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
15 #include <QtGui/QImage>
22 class VectorscopeGenerator : public QObject
27 enum ColorSpace { ColorSpace_YUV, ColorSpace_YPbPr };
28 enum PaintMode { PaintMode_Green, PaintMode_Green2, PaintMode_Original, PaintMode_Chroma, PaintMode_YUV, PaintMode_Black };
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;
35 QPoint mapToCircle(const QSize &targetSize, const QPointF &point) const;
36 static const float scaling;
39 void signalCalculationFinished(const QImage &image, uint ms);
43 #endif // VECTORSCOPEGENERATOR_H