File indexing completed on 2024-05-12 05:46:54
0001 /* 0002 * Copyright (c) 2006 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * This library is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU Lesser General Public License as published by 0006 * the Free Software Foundation, either version 2.1 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY const; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU Lesser General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Lesser General Public License 0015 * along with this program const; if not, write to the Free Software 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 0018 Some code is derived from GraphicsMagick/magick/composite.c and is 0019 subject to the following license and copyright: 0020 0021 Copyright (C) 2002 GraphicsMagick Group, an organization dedicated 0022 to making software imaging solutions freely available. 0023 0024 Permission is hereby granted, free of charge, to any person obtaining 0025 a copy of this software and associated documentation files 0026 ("GraphicsMagick"), to deal in GraphicsMagick without restriction, 0027 including without limitation the rights to use, copy, modify, merge, 0028 publish, distribute, sublicense, and/or sell copies of GraphicsMagick, 0029 and to permit persons to whom GraphicsMagick is furnished to do so, 0030 subject to the following conditions: 0031 0032 The above copyright notice and this permission notice shall be included 0033 in all copies or substantial portions of GraphicsMagick. 0034 0035 The software is provided "as is", without warranty of any kind, express 0036 or implied, including but not limited to the warranties of 0037 merchantability, fitness for a particular purpose and noninfringement. 0038 In no event shall GraphicsMagick Group be liable for any claim, 0039 damages or other liability, whether in an action of contract, tort or 0040 otherwise, arising from, out of or in connection with GraphicsMagick 0041 or the use or other dealings in GraphicsMagick. 0042 0043 Except as contained in this notice, the name of the GraphicsMagick 0044 Group shall not be used in advertising or otherwise to promote the 0045 sale, use or other dealings in GraphicsMagick without prior written 0046 authorization from the GraphicsMagick Group. 0047 0048 Other code is derived from gwenview/src/qxcfi.* - this is released under 0049 the terms of the LGPL 0050 0051 */ 0052 0053 #ifndef RGBCOMPOSITEOPS_H 0054 #define RGBCOMPOSITEOPS_H 0055 0056 #include "KoColorSpaceConstants.h" 0057 0058 #define NATIVE_OPACITY_OPAQUE KoColorSpaceMathsTraits<channels_type>::unitValue 0059 #define NATIVE_OPACITY_TRANSPARENT KoColorSpaceMathsTraits<channels_type>::zeroValue 0060 0061 const qint32 MAX_CHANNEL_RGB = 3; 0062 0063 #include "RgbCompositeOpIn.h" 0064 #include "RgbCompositeOpOut.h" 0065 #include "RgbCompositeOpBumpmap.h" 0066 0067 #endif 0068