File indexing completed on 2024-04-28 04:52:22
0001 /* 0002 SPDX-FileCopyrightText: 2010 Simon Andreas Eugster <simon.eu@gmail.com> 0003 This file is part of kdenlive. See www.kdenlive.org. 0004 0005 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 #pragma once 0009 0010 #include <QObject> 0011 0012 class QColor; 0013 class QImage; 0014 class QSize; 0015 class RGBParadeGenerator : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 enum PaintMode { PaintMode_RGB, PaintMode_White }; 0020 0021 RGBParadeGenerator(); 0022 QImage calculateRGBParade(const QSize ¶deSize, const QImage &image, const RGBParadeGenerator::PaintMode paintMode, bool drawAxis, bool drawGradientRef, 0023 uint accelFactor = 1); 0024 0025 static const QColor colHighlight; 0026 static const QColor colLight; 0027 static const QColor colSoft; 0028 0029 static const uchar distRight; 0030 static const uchar distBottom; 0031 };