Krita Source Code Documentation
Loading...
Searching...
No Matches
KoCompositeColorTransformation.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KO_COMPOSITE_COLOR_TRANSFORMATION_H
8#define __KO_COMPOSITE_COLOR_TRANSFORMATION_H
9
11
12#include <QScopedPointer>
13
14
32class KRITAPIGMENT_EXPORT KoCompositeColorTransformation : public KoColorTransformation
33{
34public:
35 enum Mode {
36 INPLACE = 0,
37 BUFFERED
38 };
39
40public:
43
44 void transform(const quint8 *src, quint8 *dst, qint32 nPixels) const override;
45
50 void appendTransform(KoColorTransformation *transform);
51
58 static KoColorTransformation* createOptimizedCompositeTransform(const QVector<KoColorTransformation*> transforms);
59
60private:
61 struct Private;
62 const QScopedPointer<Private> m_d;
63};
64
65#endif /* __KO_COMPOSITE_COLOR_TRANSFORMATION_H */
virtual void transform(const quint8 *src, quint8 *dst, qint32 nPixels) const =0