File indexing completed on 2025-03-09 04:08:37
0001 /* 0002 * SPDX-FileCopyrightText: 2006 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 0006 Some code is derived from GraphicsMagick/magick/composite.c and is 0007 subject to the following license and copyright: 0008 0009 SPDX-FileCopyrightText: 2002 GraphicsMagick Group an organization dedicated 0010 to making software imaging solutions freely available. 0011 0012 Permission is hereby granted, free of charge, to any person obtaining 0013 a copy of this software and associated documentation files 0014 ("GraphicsMagick"), to deal in GraphicsMagick without restriction, 0015 including without limitation the rights to use, copy, modify, merge, 0016 publish, distribute, sublicense, and/or sell copies of GraphicsMagick, 0017 and to permit persons to whom GraphicsMagick is furnished to do so, 0018 subject to the following conditions: 0019 0020 The above copyright notice and this permission notice shall be included 0021 in all copies or substantial portions of GraphicsMagick. 0022 0023 The software is provided "as is", without warranty of any kind, express 0024 or implied, including but not limited to the warranties of 0025 merchantability, fitness for a particular purpose and noninfringement. 0026 In no event shall GraphicsMagick Group be liable for any claim, 0027 damages or other liability, whether in an action of contract, tort or 0028 otherwise, arising from, out of or in connection with GraphicsMagick 0029 or the use or other dealings in GraphicsMagick. 0030 0031 Except as contained in this notice, the name of the GraphicsMagick 0032 Group shall not be used in advertising or otherwise to promote the 0033 sale, use or other dealings in GraphicsMagick without prior written 0034 authorization from the GraphicsMagick Group. 0035 0036 Other code is derived from gwenview/src/qxcfi.* - this is released under 0037 the terms of the LGPL 0038 0039 */ 0040 0041 #ifndef RGBCOMPOSITEOPS_H 0042 #define RGBCOMPOSITEOPS_H 0043 0044 #include "KoColorSpaceConstants.h" 0045 0046 #define NATIVE_OPACITY_OPAQUE KoColorSpaceMathsTraits<channels_type>::unitValue 0047 #define NATIVE_OPACITY_TRANSPARENT KoColorSpaceMathsTraits<channels_type>::zeroValue 0048 0049 const qint32 MAX_CHANNEL_RGB = 3; 0050 0051 #include "RgbCompositeOpIn.h" 0052 #include "RgbCompositeOpOut.h" 0053 #include "RgbCompositeOpBumpmap.h" 0054 0055 #endif 0056