1 /*$ 2 Copyright (C) 2013-2020 Azel. 3 4 This file is part of AzPainter. 5 6 AzPainter is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 AzPainter is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 $*/ 19 20 #ifndef MLIB_PSD_DEF_H 21 #define MLIB_PSD_DEF_H 22 23 enum MPSD_COLMODE 24 { 25 MPSD_COLMODE_MONO = 0, 26 MPSD_COLMODE_GRAYSCALE, 27 MPSD_COLMODE_INDEX, 28 MPSD_COLMODE_RGB, 29 MPSD_COLMODE_CMYK, 30 MPSD_COLMODE_MULTI_CHANNELS, 31 MPSD_COLMODE_HALFTONE, 32 MPSD_COLMODE_LAB 33 }; 34 35 enum MPSD_BLENDMODE 36 { 37 MPSD_BLENDMODE_NORMAL = ('n'<<24)|('o'<<16)|('r'<<8)|'m', 38 MPSD_BLENDMODE_DISSOLVE = ('d'<<24)|('i'<<16)|('s'<<8)|'s', 39 MPSD_BLENDMODE_DARKEN = ('d'<<24)|('a'<<16)|('r'<<8)|'k', 40 MPSD_BLENDMODE_MULTIPLY = ('m'<<24)|('u'<<16)|('l'<<8)|' ', 41 MPSD_BLENDMODE_BURN = ('i'<<24)|('d'<<16)|('i'<<8)|'v', 42 MPSD_BLENDMODE_LINEAR_BURN = ('l'<<24)|('b'<<16)|('r'<<8)|'n', 43 MPSD_BLENDMODE_DARKER_COL = ('d'<<24)|('k'<<16)|('C'<<8)|'l', 44 MPSD_BLENDMODE_LIGHTEN = ('l'<<24)|('i'<<16)|('t'<<8)|'e', 45 MPSD_BLENDMODE_SCREEN = ('s'<<24)|('c'<<16)|('r'<<8)|'n', 46 MPSD_BLENDMODE_DODGE = ('d'<<24)|('i'<<16)|('v'<<8)|' ', 47 MPSD_BLENDMODE_LINEAR_DODGE = ('l'<<24)|('d'<<16)|('d'<<8)|'g', 48 MPSD_BLENDMODE_LIGHTER_COL = ('l'<<24)|('g'<<16)|('C'<<8)|'l', 49 MPSD_BLENDMODE_OVERLAY = ('o'<<24)|('v'<<16)|('e'<<8)|'r', 50 MPSD_BLENDMODE_SOFT_LIGHT = ('s'<<24)|('L'<<16)|('i'<<8)|'t', 51 MPSD_BLENDMODE_HARD_LIGHT = ('h'<<24)|('L'<<16)|('i'<<8)|'t', 52 MPSD_BLENDMODE_VIVID_LIGHT = ('v'<<24)|('L'<<16)|('i'<<8)|'t', 53 MPSD_BLENDMODE_LINEAR_LIGHT = ('l'<<24)|('L'<<16)|('i'<<8)|'t', 54 MPSD_BLENDMODE_PIN_LIGHT = ('p'<<24)|('L'<<16)|('i'<<8)|'t', 55 MPSD_BLENDMODE_HARD_MIX = ('h'<<24)|('M'<<16)|('i'<<8)|'x', 56 MPSD_BLENDMODE_DIFFERENCE = ('d'<<24)|('i'<<16)|('f'<<8)|'f', 57 MPSD_BLENDMODE_EXCLUSION = ('s'<<24)|('m'<<16)|('u'<<8)|'d', 58 MPSD_BLENDMODE_SUBTRACT = ('f'<<24)|('s'<<16)|('u'<<8)|'b', 59 MPSD_BLENDMODE_DIVIDE = ('f'<<24)|('d'<<16)|('i'<<8)|'v', 60 MPSD_BLENDMODE_HUE = ('h'<<24)|('u'<<16)|('e'<<8)|' ', 61 MPSD_BLENDMODE_SATURATION = ('s'<<24)|('a'<<16)|('t'<<8)|' ', 62 MPSD_BLENDMODE_COLOR = ('c'<<24)|('o'<<16)|('l'<<8)|'r', 63 MPSD_BLENDMODE_LUMINOSITY = ('l'<<24)|('u'<<16)|('m'<<8)|' ' 64 }; 65 66 enum MPSD_CHANNEL_ID 67 { 68 MPSD_CHANNEL_ID_RED = 0, 69 MPSD_CHANNEL_ID_GREEN = 1, 70 MPSD_CHANNEL_ID_BLUE = 2, 71 MPSD_CHANNEL_ID_ALPHA = 0xffff, 72 MPSD_CHANNEL_ID_MASK = 0xfffe 73 }; 74 75 #endif 76