]> git.sesse.net Git - kdenlive/blob - src/colorcorrection/levelsgenerator.h
Levels added.
[kdenlive] / src / colorcorrection / levelsgenerator.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 LEVELSGENERATOR_H
12 #define LEVELSGENERATOR_H
13
14 #include <QObject>
15
16 class QImage;
17 class QSize;
18
19 class LevelsGenerator : public QObject
20 {
21 public:
22     LevelsGenerator();
23     QImage calculateLevels(const QSize &paradeSize, const QImage &image, const int &components, const uint &accelFactor = 1) const;
24     enum Components { ComponentY = 1<<0, ComponentR = 1<<1, ComponentG = 1<<2, ComponentB = 1<<3 };
25 };
26
27 #endif // LEVELSGENERATOR_H