Krita Source Code Documentation
Loading...
Searching...
No Matches
RgbCompositeOps.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5
6 Some code is derived from GraphicsMagick/magick/composite.c and is
7 subject to the following license and copyright:
8
9 SPDX-FileCopyrightText: 2002 GraphicsMagick Group an organization dedicated
10 to making software imaging solutions freely available.
11
12 Permission is hereby granted, free of charge, to any person obtaining
13 a copy of this software and associated documentation files
14 ("GraphicsMagick"), to deal in GraphicsMagick without restriction,
15 including without limitation the rights to use, copy, modify, merge,
16 publish, distribute, sublicense, and/or sell copies of GraphicsMagick,
17 and to permit persons to whom GraphicsMagick is furnished to do so,
18 subject to the following conditions:
19
20 The above copyright notice and this permission notice shall be included
21 in all copies or substantial portions of GraphicsMagick.
22
23 The software is provided "as is", without warranty of any kind, express
24 or implied, including but not limited to the warranties of
25 merchantability, fitness for a particular purpose and noninfringement.
26 In no event shall GraphicsMagick Group be liable for any claim,
27 damages or other liability, whether in an action of contract, tort or
28 otherwise, arising from, out of or in connection with GraphicsMagick
29 or the use or other dealings in GraphicsMagick.
30
31 Except as contained in this notice, the name of the GraphicsMagick
32 Group shall not be used in advertising or otherwise to promote the
33 sale, use or other dealings in GraphicsMagick without prior written
34 authorization from the GraphicsMagick Group.
35
36 Other code is derived from gwenview/src/qxcfi.* - this is released under
37 the terms of the LGPL
38
39 */
40
41#ifndef RGBCOMPOSITEOPS_H
42#define RGBCOMPOSITEOPS_H
43
45
46#define NATIVE_OPACITY_OPAQUE KoColorSpaceMathsTraits<channels_type>::unitValue
47#define NATIVE_OPACITY_TRANSPARENT KoColorSpaceMathsTraits<channels_type>::zeroValue
48
49const qint32 MAX_CHANNEL_RGB = 3;
50
51#include "RgbCompositeOpIn.h"
52#include "RgbCompositeOpOut.h"
54
55#endif
56
const qint32 MAX_CHANNEL_RGB