2006-12-10 05:33:38 +08:00
|
|
|
# GIMP - The GNU Image Manipulation Program
|
2003-07-03 08:47:26 +08:00
|
|
|
# Copyright (C) 1999-2003 Manish Singh <yosh@gimp.org>
|
1999-03-18 07:08:08 +08:00
|
|
|
|
2009-01-18 06:28:01 +08:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
1999-03-18 07:08:08 +08:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
1999-03-18 07:08:08 +08:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
1999-03-20 07:04:16 +08:00
|
|
|
# but WITHOUTFILE ANY WARRANTY; without even the implied warranty of
|
1999-03-18 07:08:08 +08:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2018-07-12 05:27:07 +08:00
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
1999-03-18 07:08:08 +08:00
|
|
|
|
1999-03-20 07:04:16 +08:00
|
|
|
# autogenerated by enumgen.pl
|
|
|
|
|
1999-03-18 07:08:08 +08:00
|
|
|
package Gimp::CodeGen::enums;
|
|
|
|
|
|
|
|
%enums = (
|
2018-03-18 03:19:58 +08:00
|
|
|
GeglDistanceMetric =>
|
|
|
|
{ contig => 1,
|
|
|
|
external => 1,
|
|
|
|
symbols => [ qw(GEGL_DISTANCE_METRIC_EUCLIDEAN
|
|
|
|
GEGL_DISTANCE_METRIC_MANHATTAN
|
|
|
|
GEGL_DISTANCE_METRIC_CHEBYSHEV) ],
|
|
|
|
mapping => { GEGL_DISTANCE_METRIC_EUCLIDEAN => '0',
|
|
|
|
GEGL_DISTANCE_METRIC_MANHATTAN => '1',
|
|
|
|
GEGL_DISTANCE_METRIC_CHEBYSHEV => '2' }
|
|
|
|
},
|
2005-01-23 07:38:36 +08:00
|
|
|
GimpAddMaskType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2014-04-30 02:55:08 +08:00
|
|
|
symbols => [ qw(GIMP_ADD_MASK_WHITE GIMP_ADD_MASK_BLACK
|
|
|
|
GIMP_ADD_MASK_ALPHA GIMP_ADD_MASK_ALPHA_TRANSFER
|
|
|
|
GIMP_ADD_MASK_SELECTION GIMP_ADD_MASK_COPY
|
|
|
|
GIMP_ADD_MASK_CHANNEL) ],
|
|
|
|
mapping => { GIMP_ADD_MASK_WHITE => '0',
|
|
|
|
GIMP_ADD_MASK_BLACK => '1',
|
|
|
|
GIMP_ADD_MASK_ALPHA => '2',
|
|
|
|
GIMP_ADD_MASK_ALPHA_TRANSFER => '3',
|
|
|
|
GIMP_ADD_MASK_SELECTION => '4',
|
|
|
|
GIMP_ADD_MASK_COPY => '5',
|
|
|
|
GIMP_ADD_MASK_CHANNEL => '6' }
|
2005-01-23 07:38:36 +08:00
|
|
|
},
|
|
|
|
GimpBlendMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2014-04-30 02:55:08 +08:00
|
|
|
symbols => [ qw(GIMP_BLEND_FG_BG_RGB GIMP_BLEND_FG_BG_HSV
|
|
|
|
GIMP_BLEND_FG_TRANSPARENT GIMP_BLEND_CUSTOM) ],
|
|
|
|
mapping => { GIMP_BLEND_FG_BG_RGB => '0',
|
|
|
|
GIMP_BLEND_FG_BG_HSV => '1',
|
|
|
|
GIMP_BLEND_FG_TRANSPARENT => '2',
|
|
|
|
GIMP_BLEND_CUSTOM => '3' }
|
2005-01-23 07:38:36 +08:00
|
|
|
},
|
2014-05-13 06:27:29 +08:00
|
|
|
GimpBrushGeneratedShape =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_BRUSH_GENERATED_CIRCLE
|
|
|
|
GIMP_BRUSH_GENERATED_SQUARE
|
|
|
|
GIMP_BRUSH_GENERATED_DIAMOND) ],
|
|
|
|
mapping => { GIMP_BRUSH_GENERATED_CIRCLE => '0',
|
|
|
|
GIMP_BRUSH_GENERATED_SQUARE => '1',
|
|
|
|
GIMP_BRUSH_GENERATED_DIAMOND => '2' }
|
|
|
|
},
|
2005-01-23 07:38:36 +08:00
|
|
|
GimpBucketFillMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2014-04-30 02:55:08 +08:00
|
|
|
symbols => [ qw(GIMP_BUCKET_FILL_FG GIMP_BUCKET_FILL_BG
|
|
|
|
GIMP_BUCKET_FILL_PATTERN) ],
|
|
|
|
mapping => { GIMP_BUCKET_FILL_FG => '0',
|
|
|
|
GIMP_BUCKET_FILL_BG => '1',
|
|
|
|
GIMP_BUCKET_FILL_PATTERN => '2' }
|
2005-01-23 07:38:36 +08:00
|
|
|
},
|
2015-11-09 09:16:03 +08:00
|
|
|
GimpCapStyle =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_CAP_BUTT GIMP_CAP_ROUND GIMP_CAP_SQUARE) ],
|
|
|
|
mapping => { GIMP_CAP_BUTT => '0',
|
|
|
|
GIMP_CAP_ROUND => '1',
|
|
|
|
GIMP_CAP_SQUARE => '2' }
|
|
|
|
},
|
2005-01-23 07:38:36 +08:00
|
|
|
GimpChannelOps =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_CHANNEL_OP_ADD GIMP_CHANNEL_OP_SUBTRACT
|
|
|
|
GIMP_CHANNEL_OP_REPLACE GIMP_CHANNEL_OP_INTERSECT) ],
|
|
|
|
mapping => { GIMP_CHANNEL_OP_ADD => '0',
|
|
|
|
GIMP_CHANNEL_OP_SUBTRACT => '1',
|
|
|
|
GIMP_CHANNEL_OP_REPLACE => '2',
|
|
|
|
GIMP_CHANNEL_OP_INTERSECT => '3' }
|
|
|
|
},
|
|
|
|
GimpChannelType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2017-01-10 02:40:30 +08:00
|
|
|
symbols => [ qw(GIMP_CHANNEL_RED GIMP_CHANNEL_GREEN
|
|
|
|
GIMP_CHANNEL_BLUE GIMP_CHANNEL_GRAY
|
|
|
|
GIMP_CHANNEL_INDEXED GIMP_CHANNEL_ALPHA) ],
|
|
|
|
mapping => { GIMP_CHANNEL_RED => '0',
|
|
|
|
GIMP_CHANNEL_GREEN => '1',
|
|
|
|
GIMP_CHANNEL_BLUE => '2',
|
|
|
|
GIMP_CHANNEL_GRAY => '3',
|
|
|
|
GIMP_CHANNEL_INDEXED => '4',
|
|
|
|
GIMP_CHANNEL_ALPHA => '5' }
|
2005-01-23 07:38:36 +08:00
|
|
|
},
|
2014-05-14 05:29:17 +08:00
|
|
|
GimpCloneType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_CLONE_IMAGE GIMP_CLONE_PATTERN) ],
|
|
|
|
mapping => { GIMP_CLONE_IMAGE => '0',
|
|
|
|
GIMP_CLONE_PATTERN => '1' }
|
|
|
|
},
|
2016-10-29 22:50:13 +08:00
|
|
|
GimpColorTag =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_COLOR_TAG_NONE GIMP_COLOR_TAG_BLUE
|
|
|
|
GIMP_COLOR_TAG_GREEN GIMP_COLOR_TAG_YELLOW
|
|
|
|
GIMP_COLOR_TAG_ORANGE GIMP_COLOR_TAG_BROWN
|
|
|
|
GIMP_COLOR_TAG_RED GIMP_COLOR_TAG_VIOLET
|
|
|
|
GIMP_COLOR_TAG_GRAY) ],
|
|
|
|
mapping => { GIMP_COLOR_TAG_NONE => '0',
|
|
|
|
GIMP_COLOR_TAG_BLUE => '1',
|
|
|
|
GIMP_COLOR_TAG_GREEN => '2',
|
|
|
|
GIMP_COLOR_TAG_YELLOW => '3',
|
|
|
|
GIMP_COLOR_TAG_ORANGE => '4',
|
|
|
|
GIMP_COLOR_TAG_BROWN => '5',
|
|
|
|
GIMP_COLOR_TAG_RED => '6',
|
|
|
|
GIMP_COLOR_TAG_VIOLET => '7',
|
|
|
|
GIMP_COLOR_TAG_GRAY => '8' }
|
|
|
|
},
|
2014-05-13 06:27:29 +08:00
|
|
|
GimpComponentType =>
|
|
|
|
{ contig => 0,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_COMPONENT_TYPE_U8 GIMP_COMPONENT_TYPE_U16
|
|
|
|
GIMP_COMPONENT_TYPE_U32 GIMP_COMPONENT_TYPE_HALF
|
|
|
|
GIMP_COMPONENT_TYPE_FLOAT
|
|
|
|
GIMP_COMPONENT_TYPE_DOUBLE) ],
|
|
|
|
mapping => { GIMP_COMPONENT_TYPE_U8 => '100',
|
|
|
|
GIMP_COMPONENT_TYPE_U16 => '200',
|
|
|
|
GIMP_COMPONENT_TYPE_U32 => '300',
|
|
|
|
GIMP_COMPONENT_TYPE_HALF => '500',
|
|
|
|
GIMP_COMPONENT_TYPE_FLOAT => '600',
|
|
|
|
GIMP_COMPONENT_TYPE_DOUBLE => '700' }
|
|
|
|
},
|
2014-05-14 06:06:01 +08:00
|
|
|
GimpConvertPaletteType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2017-02-27 03:55:00 +08:00
|
|
|
symbols => [ qw(GIMP_CONVERT_PALETTE_GENERATE
|
|
|
|
GIMP_CONVERT_PALETTE_REUSE
|
|
|
|
GIMP_CONVERT_PALETTE_WEB GIMP_CONVERT_PALETTE_MONO
|
|
|
|
GIMP_CONVERT_PALETTE_CUSTOM) ],
|
|
|
|
mapping => { GIMP_CONVERT_PALETTE_GENERATE => '0',
|
|
|
|
GIMP_CONVERT_PALETTE_REUSE => '1',
|
|
|
|
GIMP_CONVERT_PALETTE_WEB => '2',
|
|
|
|
GIMP_CONVERT_PALETTE_MONO => '3',
|
|
|
|
GIMP_CONVERT_PALETTE_CUSTOM => '4' }
|
2014-05-14 06:06:01 +08:00
|
|
|
},
|
2014-04-30 04:44:58 +08:00
|
|
|
GimpConvolveType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_CONVOLVE_BLUR GIMP_CONVOLVE_SHARPEN) ],
|
|
|
|
mapping => { GIMP_CONVOLVE_BLUR => '0',
|
|
|
|
GIMP_CONVOLVE_SHARPEN => '1' }
|
|
|
|
},
|
2005-04-16 22:51:49 +08:00
|
|
|
GimpDesaturateMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2015-10-23 01:50:56 +08:00
|
|
|
symbols => [ qw(GIMP_DESATURATE_LIGHTNESS GIMP_DESATURATE_LUMA
|
2017-03-18 04:20:40 +08:00
|
|
|
GIMP_DESATURATE_AVERAGE GIMP_DESATURATE_LUMINANCE
|
|
|
|
GIMP_DESATURATE_VALUE) ],
|
2005-04-16 22:51:49 +08:00
|
|
|
mapping => { GIMP_DESATURATE_LIGHTNESS => '0',
|
2015-10-23 01:50:56 +08:00
|
|
|
GIMP_DESATURATE_LUMA => '1',
|
|
|
|
GIMP_DESATURATE_AVERAGE => '2',
|
2017-03-18 04:20:40 +08:00
|
|
|
GIMP_DESATURATE_LUMINANCE => '3',
|
|
|
|
GIMP_DESATURATE_VALUE => '4' }
|
2005-04-16 22:51:49 +08:00
|
|
|
},
|
2005-01-23 08:00:20 +08:00
|
|
|
GimpDodgeBurnType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2014-04-30 02:55:08 +08:00
|
|
|
symbols => [ qw(GIMP_DODGE_BURN_TYPE_DODGE
|
|
|
|
GIMP_DODGE_BURN_TYPE_BURN) ],
|
|
|
|
mapping => { GIMP_DODGE_BURN_TYPE_DODGE => '0',
|
|
|
|
GIMP_DODGE_BURN_TYPE_BURN => '1' }
|
2005-01-23 08:00:20 +08:00
|
|
|
},
|
2014-05-13 06:27:29 +08:00
|
|
|
GimpFillType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2014-06-03 07:11:32 +08:00
|
|
|
symbols => [ qw(GIMP_FILL_FOREGROUND GIMP_FILL_BACKGROUND
|
|
|
|
GIMP_FILL_WHITE GIMP_FILL_TRANSPARENT
|
|
|
|
GIMP_FILL_PATTERN) ],
|
|
|
|
mapping => { GIMP_FILL_FOREGROUND => '0',
|
|
|
|
GIMP_FILL_BACKGROUND => '1',
|
|
|
|
GIMP_FILL_WHITE => '2',
|
|
|
|
GIMP_FILL_TRANSPARENT => '3',
|
|
|
|
GIMP_FILL_PATTERN => '4' }
|
2014-05-13 06:27:29 +08:00
|
|
|
},
|
2005-07-29 10:35:12 +08:00
|
|
|
GimpForegroundExtractMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2013-05-08 05:00:57 +08:00
|
|
|
symbols => [ qw(GIMP_FOREGROUND_EXTRACT_SIOX
|
|
|
|
GIMP_FOREGROUND_EXTRACT_MATTING) ],
|
|
|
|
mapping => { GIMP_FOREGROUND_EXTRACT_SIOX => '0',
|
|
|
|
GIMP_FOREGROUND_EXTRACT_MATTING => '1' }
|
2005-07-29 10:35:12 +08:00
|
|
|
},
|
2018-04-14 04:33:16 +08:00
|
|
|
GimpGradientBlendColorSpace =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL
|
2018-04-15 00:11:38 +08:00
|
|
|
GIMP_GRADIENT_BLEND_RGB_LINEAR
|
|
|
|
GIMP_GRADIENT_BLEND_CIE_LAB) ],
|
2018-04-14 04:33:16 +08:00
|
|
|
mapping => { GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL => '0',
|
2018-04-15 00:11:38 +08:00
|
|
|
GIMP_GRADIENT_BLEND_RGB_LINEAR => '1',
|
|
|
|
GIMP_GRADIENT_BLEND_CIE_LAB => '2' }
|
2018-04-14 04:33:16 +08:00
|
|
|
},
|
2014-05-13 06:27:29 +08:00
|
|
|
GimpGradientSegmentColor =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_GRADIENT_SEGMENT_RGB
|
|
|
|
GIMP_GRADIENT_SEGMENT_HSV_CCW
|
|
|
|
GIMP_GRADIENT_SEGMENT_HSV_CW) ],
|
|
|
|
mapping => { GIMP_GRADIENT_SEGMENT_RGB => '0',
|
|
|
|
GIMP_GRADIENT_SEGMENT_HSV_CCW => '1',
|
|
|
|
GIMP_GRADIENT_SEGMENT_HSV_CW => '2' }
|
|
|
|
},
|
|
|
|
GimpGradientSegmentType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_GRADIENT_SEGMENT_LINEAR
|
|
|
|
GIMP_GRADIENT_SEGMENT_CURVED
|
|
|
|
GIMP_GRADIENT_SEGMENT_SINE
|
|
|
|
GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING
|
2018-10-03 09:13:16 +08:00
|
|
|
GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING
|
|
|
|
GIMP_GRADIENT_SEGMENT_STEP) ],
|
2014-05-13 06:27:29 +08:00
|
|
|
mapping => { GIMP_GRADIENT_SEGMENT_LINEAR => '0',
|
|
|
|
GIMP_GRADIENT_SEGMENT_CURVED => '1',
|
|
|
|
GIMP_GRADIENT_SEGMENT_SINE => '2',
|
|
|
|
GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING => '3',
|
2018-10-03 09:13:16 +08:00
|
|
|
GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING => '4',
|
|
|
|
GIMP_GRADIENT_SEGMENT_STEP => '5' }
|
2014-05-13 06:27:29 +08:00
|
|
|
},
|
2014-05-14 05:29:17 +08:00
|
|
|
GimpGradientType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_GRADIENT_LINEAR GIMP_GRADIENT_BILINEAR
|
|
|
|
GIMP_GRADIENT_RADIAL GIMP_GRADIENT_SQUARE
|
|
|
|
GIMP_GRADIENT_CONICAL_SYMMETRIC
|
|
|
|
GIMP_GRADIENT_CONICAL_ASYMMETRIC
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_ANGULAR
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_SPHERICAL
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_DIMPLED
|
|
|
|
GIMP_GRADIENT_SPIRAL_CLOCKWISE
|
|
|
|
GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE) ],
|
|
|
|
mapping => { GIMP_GRADIENT_LINEAR => '0',
|
|
|
|
GIMP_GRADIENT_BILINEAR => '1',
|
|
|
|
GIMP_GRADIENT_RADIAL => '2',
|
|
|
|
GIMP_GRADIENT_SQUARE => '3',
|
|
|
|
GIMP_GRADIENT_CONICAL_SYMMETRIC => '4',
|
|
|
|
GIMP_GRADIENT_CONICAL_ASYMMETRIC => '5',
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_ANGULAR => '6',
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_SPHERICAL => '7',
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_DIMPLED => '8',
|
|
|
|
GIMP_GRADIENT_SPIRAL_CLOCKWISE => '9',
|
|
|
|
GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE => '10' }
|
|
|
|
},
|
2005-10-01 00:35:04 +08:00
|
|
|
GimpGridStyle =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_GRID_DOTS GIMP_GRID_INTERSECTIONS
|
|
|
|
GIMP_GRID_ON_OFF_DASH GIMP_GRID_DOUBLE_DASH
|
|
|
|
GIMP_GRID_SOLID) ],
|
|
|
|
mapping => { GIMP_GRID_DOTS => '0',
|
|
|
|
GIMP_GRID_INTERSECTIONS => '1',
|
|
|
|
GIMP_GRID_ON_OFF_DASH => '2',
|
|
|
|
GIMP_GRID_DOUBLE_DASH => '3',
|
|
|
|
GIMP_GRID_SOLID => '4' }
|
|
|
|
},
|
2014-05-14 06:06:01 +08:00
|
|
|
GimpHueRange =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2017-01-09 09:45:16 +08:00
|
|
|
symbols => [ qw(GIMP_HUE_RANGE_ALL GIMP_HUE_RANGE_RED
|
|
|
|
GIMP_HUE_RANGE_YELLOW GIMP_HUE_RANGE_GREEN
|
|
|
|
GIMP_HUE_RANGE_CYAN GIMP_HUE_RANGE_BLUE
|
|
|
|
GIMP_HUE_RANGE_MAGENTA) ],
|
|
|
|
mapping => { GIMP_HUE_RANGE_ALL => '0',
|
|
|
|
GIMP_HUE_RANGE_RED => '1',
|
|
|
|
GIMP_HUE_RANGE_YELLOW => '2',
|
|
|
|
GIMP_HUE_RANGE_GREEN => '3',
|
|
|
|
GIMP_HUE_RANGE_CYAN => '4',
|
|
|
|
GIMP_HUE_RANGE_BLUE => '5',
|
|
|
|
GIMP_HUE_RANGE_MAGENTA => '6' }
|
2014-05-14 06:06:01 +08:00
|
|
|
},
|
2005-01-23 07:38:36 +08:00
|
|
|
GimpIconType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2014-05-12 05:56:30 +08:00
|
|
|
symbols => [ qw(GIMP_ICON_TYPE_ICON_NAME
|
2005-01-23 07:38:36 +08:00
|
|
|
GIMP_ICON_TYPE_INLINE_PIXBUF
|
|
|
|
GIMP_ICON_TYPE_IMAGE_FILE) ],
|
2014-05-12 05:56:30 +08:00
|
|
|
mapping => { GIMP_ICON_TYPE_ICON_NAME => '0',
|
2005-01-23 07:38:36 +08:00
|
|
|
GIMP_ICON_TYPE_INLINE_PIXBUF => '1',
|
|
|
|
GIMP_ICON_TYPE_IMAGE_FILE => '2' }
|
|
|
|
},
|
2004-07-29 20:33:15 +08:00
|
|
|
GimpImageBaseType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_RGB GIMP_GRAY GIMP_INDEXED) ],
|
|
|
|
mapping => { GIMP_RGB => '0',
|
|
|
|
GIMP_GRAY => '1',
|
|
|
|
GIMP_INDEXED => '2' }
|
|
|
|
},
|
|
|
|
GimpImageType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_RGB_IMAGE GIMP_RGBA_IMAGE GIMP_GRAY_IMAGE
|
|
|
|
GIMP_GRAYA_IMAGE GIMP_INDEXED_IMAGE
|
|
|
|
GIMP_INDEXEDA_IMAGE) ],
|
|
|
|
mapping => { GIMP_RGB_IMAGE => '0',
|
|
|
|
GIMP_RGBA_IMAGE => '1',
|
|
|
|
GIMP_GRAY_IMAGE => '2',
|
|
|
|
GIMP_GRAYA_IMAGE => '3',
|
|
|
|
GIMP_INDEXED_IMAGE => '4',
|
|
|
|
GIMP_INDEXEDA_IMAGE => '5' }
|
|
|
|
},
|
2014-04-30 04:44:58 +08:00
|
|
|
GimpInkBlobType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_INK_BLOB_TYPE_CIRCLE
|
|
|
|
GIMP_INK_BLOB_TYPE_SQUARE
|
|
|
|
GIMP_INK_BLOB_TYPE_DIAMOND) ],
|
|
|
|
mapping => { GIMP_INK_BLOB_TYPE_CIRCLE => '0',
|
|
|
|
GIMP_INK_BLOB_TYPE_SQUARE => '1',
|
|
|
|
GIMP_INK_BLOB_TYPE_DIAMOND => '2' }
|
|
|
|
},
|
2005-01-23 07:06:37 +08:00
|
|
|
GimpInterpolationType =>
|
2014-04-25 05:04:52 +08:00
|
|
|
{ contig => 1,
|
2005-01-23 07:06:37 +08:00
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_INTERPOLATION_NONE GIMP_INTERPOLATION_LINEAR
|
2013-01-01 04:27:07 +08:00
|
|
|
GIMP_INTERPOLATION_CUBIC GIMP_INTERPOLATION_NOHALO
|
2014-04-25 05:04:52 +08:00
|
|
|
GIMP_INTERPOLATION_LOHALO) ],
|
2005-01-23 07:06:37 +08:00
|
|
|
mapping => { GIMP_INTERPOLATION_NONE => '0',
|
|
|
|
GIMP_INTERPOLATION_LINEAR => '1',
|
|
|
|
GIMP_INTERPOLATION_CUBIC => '2',
|
2013-01-01 04:27:07 +08:00
|
|
|
GIMP_INTERPOLATION_NOHALO => '3',
|
2014-04-25 05:04:52 +08:00
|
|
|
GIMP_INTERPOLATION_LOHALO => '4' }
|
2005-01-23 07:06:37 +08:00
|
|
|
},
|
2015-11-09 09:16:03 +08:00
|
|
|
GimpJoinStyle =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_JOIN_MITER GIMP_JOIN_ROUND GIMP_JOIN_BEVEL) ],
|
|
|
|
mapping => { GIMP_JOIN_MITER => '0',
|
|
|
|
GIMP_JOIN_ROUND => '1',
|
|
|
|
GIMP_JOIN_BEVEL => '2' }
|
|
|
|
},
|
2014-05-13 06:27:29 +08:00
|
|
|
GimpMaskApplyMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_MASK_APPLY GIMP_MASK_DISCARD) ],
|
|
|
|
mapping => { GIMP_MASK_APPLY => '0',
|
|
|
|
GIMP_MASK_DISCARD => '1' }
|
|
|
|
},
|
|
|
|
GimpMergeType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_EXPAND_AS_NECESSARY GIMP_CLIP_TO_IMAGE
|
|
|
|
GIMP_CLIP_TO_BOTTOM_LAYER GIMP_FLATTEN_IMAGE) ],
|
|
|
|
mapping => { GIMP_EXPAND_AS_NECESSARY => '0',
|
|
|
|
GIMP_CLIP_TO_IMAGE => '1',
|
|
|
|
GIMP_CLIP_TO_BOTTOM_LAYER => '2',
|
|
|
|
GIMP_FLATTEN_IMAGE => '3' }
|
|
|
|
},
|
2014-05-14 05:29:17 +08:00
|
|
|
GimpMessageHandlerType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_MESSAGE_BOX GIMP_CONSOLE GIMP_ERROR_CONSOLE) ],
|
|
|
|
mapping => { GIMP_MESSAGE_BOX => '0',
|
|
|
|
GIMP_CONSOLE => '1',
|
|
|
|
GIMP_ERROR_CONSOLE => '2' }
|
|
|
|
},
|
2014-05-13 06:27:29 +08:00
|
|
|
GimpOffsetType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_OFFSET_BACKGROUND GIMP_OFFSET_TRANSPARENT) ],
|
|
|
|
mapping => { GIMP_OFFSET_BACKGROUND => '0',
|
|
|
|
GIMP_OFFSET_TRANSPARENT => '1' }
|
|
|
|
},
|
|
|
|
GimpOrientationType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_ORIENTATION_HORIZONTAL
|
|
|
|
GIMP_ORIENTATION_VERTICAL GIMP_ORIENTATION_UNKNOWN) ],
|
|
|
|
mapping => { GIMP_ORIENTATION_HORIZONTAL => '0',
|
|
|
|
GIMP_ORIENTATION_VERTICAL => '1',
|
|
|
|
GIMP_ORIENTATION_UNKNOWN => '2' }
|
|
|
|
},
|
2005-01-23 08:00:20 +08:00
|
|
|
GimpPaintApplicationMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_PAINT_CONSTANT GIMP_PAINT_INCREMENTAL) ],
|
|
|
|
mapping => { GIMP_PAINT_CONSTANT => '0',
|
|
|
|
GIMP_PAINT_INCREMENTAL => '1' }
|
|
|
|
},
|
2001-05-21 21:58:46 +08:00
|
|
|
GimpPDBArgType =>
|
2018-04-28 20:00:23 +08:00
|
|
|
{ contig => 1,
|
2004-07-29 20:33:15 +08:00
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2001-05-21 21:58:46 +08:00
|
|
|
symbols => [ qw(GIMP_PDB_INT32 GIMP_PDB_INT16 GIMP_PDB_INT8
|
|
|
|
GIMP_PDB_FLOAT GIMP_PDB_STRING GIMP_PDB_INT32ARRAY
|
|
|
|
GIMP_PDB_INT16ARRAY GIMP_PDB_INT8ARRAY
|
|
|
|
GIMP_PDB_FLOATARRAY GIMP_PDB_STRINGARRAY
|
2010-07-09 15:34:44 +08:00
|
|
|
GIMP_PDB_COLOR GIMP_PDB_ITEM GIMP_PDB_DISPLAY
|
2001-05-21 21:58:46 +08:00
|
|
|
GIMP_PDB_IMAGE GIMP_PDB_LAYER GIMP_PDB_CHANNEL
|
|
|
|
GIMP_PDB_DRAWABLE GIMP_PDB_SELECTION
|
2008-07-14 22:09:16 +08:00
|
|
|
GIMP_PDB_COLORARRAY GIMP_PDB_VECTORS
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_PDB_PARASITE GIMP_PDB_STATUS GIMP_PDB_END) ],
|
2001-05-21 21:58:46 +08:00
|
|
|
mapping => { GIMP_PDB_INT32 => '0',
|
|
|
|
GIMP_PDB_INT16 => '1',
|
|
|
|
GIMP_PDB_INT8 => '2',
|
|
|
|
GIMP_PDB_FLOAT => '3',
|
|
|
|
GIMP_PDB_STRING => '4',
|
|
|
|
GIMP_PDB_INT32ARRAY => '5',
|
|
|
|
GIMP_PDB_INT16ARRAY => '6',
|
|
|
|
GIMP_PDB_INT8ARRAY => '7',
|
|
|
|
GIMP_PDB_FLOATARRAY => '8',
|
|
|
|
GIMP_PDB_STRINGARRAY => '9',
|
|
|
|
GIMP_PDB_COLOR => '10',
|
2010-07-09 15:34:44 +08:00
|
|
|
GIMP_PDB_ITEM => '11',
|
2001-05-21 21:58:46 +08:00
|
|
|
GIMP_PDB_DISPLAY => '12',
|
|
|
|
GIMP_PDB_IMAGE => '13',
|
|
|
|
GIMP_PDB_LAYER => '14',
|
|
|
|
GIMP_PDB_CHANNEL => '15',
|
|
|
|
GIMP_PDB_DRAWABLE => '16',
|
|
|
|
GIMP_PDB_SELECTION => '17',
|
2008-07-14 22:09:16 +08:00
|
|
|
GIMP_PDB_COLORARRAY => '18',
|
2005-12-29 09:07:02 +08:00
|
|
|
GIMP_PDB_VECTORS => '19',
|
2001-05-21 21:58:46 +08:00
|
|
|
GIMP_PDB_PARASITE => '20',
|
2001-11-10 03:04:41 +08:00
|
|
|
GIMP_PDB_STATUS => '21',
|
2018-04-28 20:00:23 +08:00
|
|
|
GIMP_PDB_END => '22' }
|
2001-05-21 21:58:46 +08:00
|
|
|
},
|
2008-08-19 06:54:26 +08:00
|
|
|
GimpPDBErrorHandler =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_PDB_ERROR_HANDLER_INTERNAL
|
|
|
|
GIMP_PDB_ERROR_HANDLER_PLUGIN) ],
|
|
|
|
mapping => { GIMP_PDB_ERROR_HANDLER_INTERNAL => '0',
|
|
|
|
GIMP_PDB_ERROR_HANDLER_PLUGIN => '1' }
|
|
|
|
},
|
2001-05-21 21:58:46 +08:00
|
|
|
GimpPDBProcType =>
|
|
|
|
{ contig => 1,
|
2004-07-29 20:33:15 +08:00
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2001-05-21 21:58:46 +08:00
|
|
|
symbols => [ qw(GIMP_INTERNAL GIMP_PLUGIN GIMP_EXTENSION
|
|
|
|
GIMP_TEMPORARY) ],
|
|
|
|
mapping => { GIMP_INTERNAL => '0',
|
|
|
|
GIMP_PLUGIN => '1',
|
|
|
|
GIMP_EXTENSION => '2',
|
2001-12-09 07:12:59 +08:00
|
|
|
GIMP_TEMPORARY => '3' }
|
2001-05-21 21:58:46 +08:00
|
|
|
},
|
|
|
|
GimpPDBStatusType =>
|
|
|
|
{ contig => 1,
|
2004-07-29 20:33:15 +08:00
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2001-05-21 21:58:46 +08:00
|
|
|
symbols => [ qw(GIMP_PDB_EXECUTION_ERROR GIMP_PDB_CALLING_ERROR
|
|
|
|
GIMP_PDB_PASS_THROUGH GIMP_PDB_SUCCESS
|
|
|
|
GIMP_PDB_CANCEL) ],
|
|
|
|
mapping => { GIMP_PDB_EXECUTION_ERROR => '0',
|
|
|
|
GIMP_PDB_CALLING_ERROR => '1',
|
|
|
|
GIMP_PDB_PASS_THROUGH => '2',
|
|
|
|
GIMP_PDB_SUCCESS => '3',
|
2001-12-09 07:12:59 +08:00
|
|
|
GIMP_PDB_CANCEL => '4' }
|
2001-05-21 21:58:46 +08:00
|
|
|
},
|
2014-05-14 05:29:17 +08:00
|
|
|
GimpPrecision =>
|
|
|
|
{ contig => 0,
|
2004-07-29 20:33:15 +08:00
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
symbols => [ qw(GIMP_PRECISION_U8_LINEAR
|
|
|
|
GIMP_PRECISION_U8_NON_LINEAR
|
|
|
|
GIMP_PRECISION_U8_PERCEPTUAL
|
|
|
|
GIMP_PRECISION_U16_LINEAR
|
|
|
|
GIMP_PRECISION_U16_NON_LINEAR
|
|
|
|
GIMP_PRECISION_U16_PERCEPTUAL
|
|
|
|
GIMP_PRECISION_U32_LINEAR
|
|
|
|
GIMP_PRECISION_U32_NON_LINEAR
|
|
|
|
GIMP_PRECISION_U32_PERCEPTUAL
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_HALF_LINEAR
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_HALF_NON_LINEAR
|
|
|
|
GIMP_PRECISION_HALF_PERCEPTUAL
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_FLOAT_LINEAR
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_FLOAT_NON_LINEAR
|
|
|
|
GIMP_PRECISION_FLOAT_PERCEPTUAL
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_DOUBLE_LINEAR
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_DOUBLE_NON_LINEAR
|
|
|
|
GIMP_PRECISION_DOUBLE_PERCEPTUAL
|
|
|
|
GIMP_PRECISION_U8_GAMMA GIMP_PRECISION_U16_GAMMA
|
|
|
|
GIMP_PRECISION_U32_GAMMA GIMP_PRECISION_HALF_GAMMA
|
|
|
|
GIMP_PRECISION_FLOAT_GAMMA
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_DOUBLE_GAMMA) ],
|
|
|
|
mapping => { GIMP_PRECISION_U8_LINEAR => '100',
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_U8_NON_LINEAR => '150',
|
|
|
|
GIMP_PRECISION_U8_PERCEPTUAL => '175',
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_U16_LINEAR => '200',
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_U16_NON_LINEAR => '250',
|
|
|
|
GIMP_PRECISION_U16_PERCEPTUAL => '275',
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_U32_LINEAR => '300',
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_U32_NON_LINEAR => '350',
|
|
|
|
GIMP_PRECISION_U32_PERCEPTUAL => '375',
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_HALF_LINEAR => '500',
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_HALF_NON_LINEAR => '550',
|
|
|
|
GIMP_PRECISION_HALF_PERCEPTUAL => '575',
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_FLOAT_LINEAR => '600',
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_FLOAT_NON_LINEAR => '650',
|
|
|
|
GIMP_PRECISION_FLOAT_PERCEPTUAL => '675',
|
2014-05-14 05:29:17 +08:00
|
|
|
GIMP_PRECISION_DOUBLE_LINEAR => '700',
|
Initial space invasion commit in GIMP
All babl formats now have a space equivalent to a color profile,
determining the format's primaries and TRCs. This commit makes GIMP
aware of this.
libgimp:
- enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
NON_LINEAR and PERCPTUAL for each encoding, matching the babl
encoding variants RGB, R'G'B' and R~G~B~.
- gimp_color_transform_can_gegl_copy() now returns TRUE if both
profiles can return a babl space, increasing the amount of fast babl
color conversions significantly.
- TODO: no solution yet for getting libgimp drawable proxy buffers in
the right format with space.
plug-ins:
- follow the GimpPrecision change.
- TODO: everything else unchanged and partly broken or sub-optimal,
like setting a new image's color profile too late.
app:
- add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
replacement for all "linear" booleans.
- change gimp-babl functions to take babl spaces and GimpTRCType
parameters and support all sorts of new perceptual ~ formats.
- a lot of places changed in the early days of goat invasion didn't
take advantage of gimp-babl utility functions and constructed
formats manually. They all needed revisiting and many now use much
simpler code calling gimp-babl API.
- change gimp_babl_format_get_color_profile() to really extract a
newly allocated color profile from the format, and add
gimp_babl_get_builtin_color_profile() which does the same as
gimp_babl_format_get_color_profile() did before. Visited all callers
to decide whether they are looking for the format's actual profile,
or for one of the builtin profiles, simplifying code that only needs
builtin profiles.
- drawables have a new get_space_api(), get_linear() is now get_trc().
- images now have a "layer space" and an API to get it,
gimp_image_get_layer_format() returns formats in that space.
- an image's layer space is created from the image's color profile,
change gimpimage-color-profile to deal with that correctly
- change many babl_format() calls to babl_format_with_space() and take
the space from passed formats or drawables
- add function gimp_layer_fix_format_space() which replaces the
layer's buffer with one that has the image's layer format, but
doesn't change pixel values
- use gimp_layer_fix_format_space() to make sure layers loaded from
XCF and created by plug-ins have the right space when added to the
image, because it's impossible to always assign the right space upon
layer creation
- "assign color profile" and "discard color profile" now require use
of gimp_layer_fix_format_space() too because the profile is now
embedded in all formats via the space. Add
gimp_image_assign_color_profile() which does all that and call it
instead of a simple gimp_image_set_color_profile(), also from the
PDB set-color-profile functions, which are essentially "assign" and
"discard" calls.
- generally, make sure a new image's color profile is set before
adding layers to it, gimp_image_set_color_profile() is more than
before considered know-what-you-are-doing API.
- take special precaution in all places that call
gimp_drawable_convert_type(), we now must pass a new_profile from
all callers that convert layers within the same image (such as
image_convert_type, image_convert_precision), because the layer's
new space can't be determined from the image's layer format during
the call.
- change all "linear" properties to "trc", in all config objects like
for levels and curves, in the histogram, in the widgets. This results
in some GUI that now has three choices instead of two.
TODO: we might want to reduce that back to two later.
- keep "linear" boolean properties around as compat if needed for file
pasring, but always convert the parsed parsed boolean to
GimpTRCType.
- TODO: the image's "enable color management" switch is currently
broken, will fix that in another commit.
2018-07-21 20:23:01 +08:00
|
|
|
GIMP_PRECISION_DOUBLE_NON_LINEAR => '750',
|
|
|
|
GIMP_PRECISION_DOUBLE_PERCEPTUAL => '775',
|
|
|
|
GIMP_PRECISION_U8_GAMMA => 'GIMP_PRECISION_U8_NON_LINEAR',
|
|
|
|
GIMP_PRECISION_U16_GAMMA => 'GIMP_PRECISION_U16_NON_LINEAR',
|
|
|
|
GIMP_PRECISION_U32_GAMMA => 'GIMP_PRECISION_U32_NON_LINEAR',
|
|
|
|
GIMP_PRECISION_HALF_GAMMA => 'GIMP_PRECISION_HALF_NON_LINEAR',
|
|
|
|
GIMP_PRECISION_FLOAT_GAMMA => 'GIMP_PRECISION_FLOAT_NON_LINEAR',
|
|
|
|
GIMP_PRECISION_DOUBLE_GAMMA => 'GIMP_PRECISION_DOUBLE_NON_LINEAR' }
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-11 03:16:16 +08:00
|
|
|
},
|
2004-08-30 22:57:24 +08:00
|
|
|
GimpProgressCommand =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_PROGRESS_COMMAND_START
|
|
|
|
GIMP_PROGRESS_COMMAND_END
|
|
|
|
GIMP_PROGRESS_COMMAND_SET_TEXT
|
2005-02-12 23:46:31 +08:00
|
|
|
GIMP_PROGRESS_COMMAND_SET_VALUE
|
2005-09-10 02:07:31 +08:00
|
|
|
GIMP_PROGRESS_COMMAND_PULSE
|
|
|
|
GIMP_PROGRESS_COMMAND_GET_WINDOW) ],
|
2004-08-30 22:57:24 +08:00
|
|
|
mapping => { GIMP_PROGRESS_COMMAND_START => '0',
|
|
|
|
GIMP_PROGRESS_COMMAND_END => '1',
|
|
|
|
GIMP_PROGRESS_COMMAND_SET_TEXT => '2',
|
2005-02-12 23:46:31 +08:00
|
|
|
GIMP_PROGRESS_COMMAND_SET_VALUE => '3',
|
2005-09-10 02:07:31 +08:00
|
|
|
GIMP_PROGRESS_COMMAND_PULSE => '4',
|
|
|
|
GIMP_PROGRESS_COMMAND_GET_WINDOW => '5' }
|
2004-08-30 22:57:24 +08:00
|
|
|
},
|
2014-05-14 05:29:17 +08:00
|
|
|
GimpRepeatMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_REPEAT_NONE GIMP_REPEAT_SAWTOOTH
|
|
|
|
GIMP_REPEAT_TRIANGULAR GIMP_REPEAT_TRUNCATE) ],
|
|
|
|
mapping => { GIMP_REPEAT_NONE => '0',
|
|
|
|
GIMP_REPEAT_SAWTOOTH => '1',
|
|
|
|
GIMP_REPEAT_TRIANGULAR => '2',
|
|
|
|
GIMP_REPEAT_TRUNCATE => '3' }
|
|
|
|
},
|
|
|
|
GimpRotationType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_ROTATE_90 GIMP_ROTATE_180 GIMP_ROTATE_270) ],
|
|
|
|
mapping => { GIMP_ROTATE_90 => '0',
|
|
|
|
GIMP_ROTATE_180 => '1',
|
|
|
|
GIMP_ROTATE_270 => '2' }
|
|
|
|
},
|
|
|
|
GimpRunMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_RUN_INTERACTIVE GIMP_RUN_NONINTERACTIVE
|
|
|
|
GIMP_RUN_WITH_LAST_VALS) ],
|
|
|
|
mapping => { GIMP_RUN_INTERACTIVE => '0',
|
|
|
|
GIMP_RUN_NONINTERACTIVE => '1',
|
|
|
|
GIMP_RUN_WITH_LAST_VALS => '2' }
|
|
|
|
},
|
|
|
|
GimpSelectCriterion =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_SELECT_CRITERION_COMPOSITE
|
|
|
|
GIMP_SELECT_CRITERION_R GIMP_SELECT_CRITERION_G
|
|
|
|
GIMP_SELECT_CRITERION_B GIMP_SELECT_CRITERION_H
|
2015-10-17 11:19:23 +08:00
|
|
|
GIMP_SELECT_CRITERION_S GIMP_SELECT_CRITERION_V
|
2017-05-10 04:02:19 +08:00
|
|
|
GIMP_SELECT_CRITERION_A
|
|
|
|
GIMP_SELECT_CRITERION_LCH_L
|
|
|
|
GIMP_SELECT_CRITERION_LCH_C
|
|
|
|
GIMP_SELECT_CRITERION_LCH_H) ],
|
2014-05-14 05:29:17 +08:00
|
|
|
mapping => { GIMP_SELECT_CRITERION_COMPOSITE => '0',
|
|
|
|
GIMP_SELECT_CRITERION_R => '1',
|
|
|
|
GIMP_SELECT_CRITERION_G => '2',
|
|
|
|
GIMP_SELECT_CRITERION_B => '3',
|
|
|
|
GIMP_SELECT_CRITERION_H => '4',
|
|
|
|
GIMP_SELECT_CRITERION_S => '5',
|
2015-10-17 11:19:23 +08:00
|
|
|
GIMP_SELECT_CRITERION_V => '6',
|
2017-05-10 04:02:19 +08:00
|
|
|
GIMP_SELECT_CRITERION_A => '7',
|
|
|
|
GIMP_SELECT_CRITERION_LCH_L => '8',
|
|
|
|
GIMP_SELECT_CRITERION_LCH_C => '9',
|
|
|
|
GIMP_SELECT_CRITERION_LCH_H => '10' }
|
2014-05-14 05:29:17 +08:00
|
|
|
},
|
|
|
|
GimpSizeType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_PIXELS GIMP_POINTS) ],
|
|
|
|
mapping => { GIMP_PIXELS => '0',
|
|
|
|
GIMP_POINTS => '1' }
|
|
|
|
},
|
|
|
|
GimpStackTraceMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_STACK_TRACE_NEVER GIMP_STACK_TRACE_QUERY
|
|
|
|
GIMP_STACK_TRACE_ALWAYS) ],
|
|
|
|
mapping => { GIMP_STACK_TRACE_NEVER => '0',
|
|
|
|
GIMP_STACK_TRACE_QUERY => '1',
|
|
|
|
GIMP_STACK_TRACE_ALWAYS => '2' }
|
|
|
|
},
|
2015-11-09 05:48:48 +08:00
|
|
|
GimpStrokeMethod =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_STROKE_LINE GIMP_STROKE_PAINT_METHOD) ],
|
|
|
|
mapping => { GIMP_STROKE_LINE => '0',
|
|
|
|
GIMP_STROKE_PAINT_METHOD => '1' }
|
|
|
|
},
|
2008-04-01 06:18:45 +08:00
|
|
|
GimpTextDirection =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
2018-07-29 12:57:38 +08:00
|
|
|
symbols => [ qw(GIMP_TEXT_DIRECTION_LTR GIMP_TEXT_DIRECTION_RTL
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_RTL
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_LTR
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT) ],
|
2008-04-01 06:18:45 +08:00
|
|
|
mapping => { GIMP_TEXT_DIRECTION_LTR => '0',
|
2018-07-29 12:57:38 +08:00
|
|
|
GIMP_TEXT_DIRECTION_RTL => '1',
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_RTL => '2',
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_RTL_UPRIGHT => '3',
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_LTR => '4',
|
|
|
|
GIMP_TEXT_DIRECTION_TTB_LTR_UPRIGHT => '5' }
|
2008-04-01 06:18:45 +08:00
|
|
|
},
|
2008-10-27 15:59:32 +08:00
|
|
|
GimpTextHintStyle =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_TEXT_HINT_STYLE_NONE
|
|
|
|
GIMP_TEXT_HINT_STYLE_SLIGHT
|
|
|
|
GIMP_TEXT_HINT_STYLE_MEDIUM
|
|
|
|
GIMP_TEXT_HINT_STYLE_FULL) ],
|
|
|
|
mapping => { GIMP_TEXT_HINT_STYLE_NONE => '0',
|
|
|
|
GIMP_TEXT_HINT_STYLE_SLIGHT => '1',
|
|
|
|
GIMP_TEXT_HINT_STYLE_MEDIUM => '2',
|
|
|
|
GIMP_TEXT_HINT_STYLE_FULL => '3' }
|
|
|
|
},
|
2008-04-01 06:18:45 +08:00
|
|
|
GimpTextJustification =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_TEXT_JUSTIFY_LEFT GIMP_TEXT_JUSTIFY_RIGHT
|
|
|
|
GIMP_TEXT_JUSTIFY_CENTER GIMP_TEXT_JUSTIFY_FILL) ],
|
|
|
|
mapping => { GIMP_TEXT_JUSTIFY_LEFT => '0',
|
|
|
|
GIMP_TEXT_JUSTIFY_RIGHT => '1',
|
|
|
|
GIMP_TEXT_JUSTIFY_CENTER => '2',
|
|
|
|
GIMP_TEXT_JUSTIFY_FILL => '3' }
|
|
|
|
},
|
2014-05-14 05:29:17 +08:00
|
|
|
GimpTransferMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_TRANSFER_SHADOWS GIMP_TRANSFER_MIDTONES
|
|
|
|
GIMP_TRANSFER_HIGHLIGHTS) ],
|
|
|
|
mapping => { GIMP_TRANSFER_SHADOWS => '0',
|
|
|
|
GIMP_TRANSFER_MIDTONES => '1',
|
|
|
|
GIMP_TRANSFER_HIGHLIGHTS => '2' }
|
|
|
|
},
|
|
|
|
GimpTransformDirection =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_TRANSFORM_FORWARD GIMP_TRANSFORM_BACKWARD) ],
|
|
|
|
mapping => { GIMP_TRANSFORM_FORWARD => '0',
|
|
|
|
GIMP_TRANSFORM_BACKWARD => '1' }
|
|
|
|
},
|
|
|
|
GimpTransformResize =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_TRANSFORM_RESIZE_ADJUST
|
|
|
|
GIMP_TRANSFORM_RESIZE_CLIP
|
|
|
|
GIMP_TRANSFORM_RESIZE_CROP
|
|
|
|
GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT) ],
|
|
|
|
mapping => { GIMP_TRANSFORM_RESIZE_ADJUST => '0',
|
|
|
|
GIMP_TRANSFORM_RESIZE_CLIP => '1',
|
|
|
|
GIMP_TRANSFORM_RESIZE_CROP => '2',
|
|
|
|
GIMP_TRANSFORM_RESIZE_CROP_WITH_ASPECT => '3' }
|
|
|
|
},
|
|
|
|
GimpUnit =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_UNIT_PIXEL GIMP_UNIT_INCH GIMP_UNIT_MM
|
|
|
|
GIMP_UNIT_POINT GIMP_UNIT_PICA GIMP_UNIT_END) ],
|
|
|
|
mapping => { GIMP_UNIT_PIXEL => '0',
|
|
|
|
GIMP_UNIT_INCH => '1',
|
|
|
|
GIMP_UNIT_MM => '2',
|
|
|
|
GIMP_UNIT_POINT => '3',
|
|
|
|
GIMP_UNIT_PICA => '4',
|
|
|
|
GIMP_UNIT_END => '5' }
|
|
|
|
},
|
2006-10-25 23:14:03 +08:00
|
|
|
GimpVectorsStrokeType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'libgimpbase/gimpbaseenums.h',
|
|
|
|
symbols => [ qw(GIMP_VECTORS_STROKE_TYPE_BEZIER) ],
|
|
|
|
mapping => { GIMP_VECTORS_STROKE_TYPE_BEZIER => '0' }
|
|
|
|
},
|
2015-06-10 07:38:20 +08:00
|
|
|
GimpColorManagementMode =>
|
|
|
|
{ contig => 1,
|
2016-06-07 03:05:16 +08:00
|
|
|
header => 'libgimpconfig/gimpconfigenums.h',
|
2015-06-10 07:38:20 +08:00
|
|
|
symbols => [ qw(GIMP_COLOR_MANAGEMENT_OFF
|
|
|
|
GIMP_COLOR_MANAGEMENT_DISPLAY
|
|
|
|
GIMP_COLOR_MANAGEMENT_SOFTPROOF) ],
|
|
|
|
mapping => { GIMP_COLOR_MANAGEMENT_OFF => '0',
|
|
|
|
GIMP_COLOR_MANAGEMENT_DISPLAY => '1',
|
|
|
|
GIMP_COLOR_MANAGEMENT_SOFTPROOF => '2' }
|
|
|
|
},
|
|
|
|
GimpColorRenderingIntent =>
|
|
|
|
{ contig => 1,
|
2016-06-07 03:05:16 +08:00
|
|
|
header => 'libgimpconfig/gimpconfigenums.h',
|
2015-06-10 07:38:20 +08:00
|
|
|
symbols => [ qw(GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL
|
|
|
|
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC
|
|
|
|
GIMP_COLOR_RENDERING_INTENT_SATURATION
|
|
|
|
GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC) ],
|
|
|
|
mapping => { GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL => '0',
|
|
|
|
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC => '1',
|
|
|
|
GIMP_COLOR_RENDERING_INTENT_SATURATION => '2',
|
|
|
|
GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC => '3' }
|
|
|
|
},
|
2017-02-20 08:17:07 +08:00
|
|
|
GimpLayerColorSpace =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'operations/operations-enums.h',
|
|
|
|
symbols => [ qw(GIMP_LAYER_COLOR_SPACE_AUTO
|
|
|
|
GIMP_LAYER_COLOR_SPACE_RGB_LINEAR
|
|
|
|
GIMP_LAYER_COLOR_SPACE_RGB_PERCEPTUAL) ],
|
|
|
|
mapping => { GIMP_LAYER_COLOR_SPACE_AUTO => '0',
|
|
|
|
GIMP_LAYER_COLOR_SPACE_RGB_LINEAR => '1',
|
|
|
|
GIMP_LAYER_COLOR_SPACE_RGB_PERCEPTUAL => '2' }
|
|
|
|
},
|
2017-02-02 07:38:25 +08:00
|
|
|
GimpLayerCompositeMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'operations/operations-enums.h',
|
|
|
|
symbols => [ qw(GIMP_LAYER_COMPOSITE_AUTO
|
2018-03-15 02:52:10 +08:00
|
|
|
GIMP_LAYER_COMPOSITE_UNION
|
|
|
|
GIMP_LAYER_COMPOSITE_CLIP_TO_BACKDROP
|
|
|
|
GIMP_LAYER_COMPOSITE_CLIP_TO_LAYER
|
|
|
|
GIMP_LAYER_COMPOSITE_INTERSECTION) ],
|
2017-02-02 07:38:25 +08:00
|
|
|
mapping => { GIMP_LAYER_COMPOSITE_AUTO => '0',
|
2018-03-15 02:52:10 +08:00
|
|
|
GIMP_LAYER_COMPOSITE_UNION => '1',
|
|
|
|
GIMP_LAYER_COMPOSITE_CLIP_TO_BACKDROP => '2',
|
|
|
|
GIMP_LAYER_COMPOSITE_CLIP_TO_LAYER => '3',
|
|
|
|
GIMP_LAYER_COMPOSITE_INTERSECTION => '4' }
|
2017-02-02 07:38:25 +08:00
|
|
|
},
|
2017-01-09 06:00:19 +08:00
|
|
|
GimpLayerMode =>
|
2012-04-09 07:11:50 +08:00
|
|
|
{ contig => 1,
|
2017-02-05 22:59:29 +08:00
|
|
|
header => 'operations/operations-enums.h',
|
2017-02-26 23:26:34 +08:00
|
|
|
symbols => [ qw(GIMP_LAYER_MODE_NORMAL_LEGACY
|
|
|
|
GIMP_LAYER_MODE_DISSOLVE
|
2017-02-20 06:14:44 +08:00
|
|
|
GIMP_LAYER_MODE_BEHIND_LEGACY
|
2017-01-09 09:03:52 +08:00
|
|
|
GIMP_LAYER_MODE_MULTIPLY_LEGACY
|
|
|
|
GIMP_LAYER_MODE_SCREEN_LEGACY
|
|
|
|
GIMP_LAYER_MODE_OVERLAY_LEGACY
|
|
|
|
GIMP_LAYER_MODE_DIFFERENCE_LEGACY
|
|
|
|
GIMP_LAYER_MODE_ADDITION_LEGACY
|
|
|
|
GIMP_LAYER_MODE_SUBTRACT_LEGACY
|
|
|
|
GIMP_LAYER_MODE_DARKEN_ONLY_LEGACY
|
|
|
|
GIMP_LAYER_MODE_LIGHTEN_ONLY_LEGACY
|
|
|
|
GIMP_LAYER_MODE_HSV_HUE_LEGACY
|
|
|
|
GIMP_LAYER_MODE_HSV_SATURATION_LEGACY
|
2017-03-16 18:17:05 +08:00
|
|
|
GIMP_LAYER_MODE_HSL_COLOR_LEGACY
|
2017-01-09 09:03:52 +08:00
|
|
|
GIMP_LAYER_MODE_HSV_VALUE_LEGACY
|
|
|
|
GIMP_LAYER_MODE_DIVIDE_LEGACY
|
|
|
|
GIMP_LAYER_MODE_DODGE_LEGACY
|
|
|
|
GIMP_LAYER_MODE_BURN_LEGACY
|
|
|
|
GIMP_LAYER_MODE_HARDLIGHT_LEGACY
|
|
|
|
GIMP_LAYER_MODE_SOFTLIGHT_LEGACY
|
|
|
|
GIMP_LAYER_MODE_GRAIN_EXTRACT_LEGACY
|
|
|
|
GIMP_LAYER_MODE_GRAIN_MERGE_LEGACY
|
2017-03-09 02:06:46 +08:00
|
|
|
GIMP_LAYER_MODE_COLOR_ERASE_LEGACY
|
2017-01-09 06:00:19 +08:00
|
|
|
GIMP_LAYER_MODE_OVERLAY GIMP_LAYER_MODE_LCH_HUE
|
|
|
|
GIMP_LAYER_MODE_LCH_CHROMA
|
|
|
|
GIMP_LAYER_MODE_LCH_COLOR
|
2016-12-23 06:50:02 +08:00
|
|
|
GIMP_LAYER_MODE_LCH_LIGHTNESS
|
2017-02-26 23:26:34 +08:00
|
|
|
GIMP_LAYER_MODE_NORMAL GIMP_LAYER_MODE_BEHIND
|
|
|
|
GIMP_LAYER_MODE_MULTIPLY GIMP_LAYER_MODE_SCREEN
|
|
|
|
GIMP_LAYER_MODE_DIFFERENCE
|
2017-02-20 06:14:44 +08:00
|
|
|
GIMP_LAYER_MODE_ADDITION GIMP_LAYER_MODE_SUBTRACT
|
2017-01-10 10:07:36 +08:00
|
|
|
GIMP_LAYER_MODE_DARKEN_ONLY
|
2017-01-11 02:37:51 +08:00
|
|
|
GIMP_LAYER_MODE_LIGHTEN_ONLY
|
|
|
|
GIMP_LAYER_MODE_HSV_HUE
|
|
|
|
GIMP_LAYER_MODE_HSV_SATURATION
|
2017-03-16 07:30:01 +08:00
|
|
|
GIMP_LAYER_MODE_HSL_COLOR
|
2017-01-11 10:02:54 +08:00
|
|
|
GIMP_LAYER_MODE_HSV_VALUE GIMP_LAYER_MODE_DIVIDE
|
2017-02-20 06:14:44 +08:00
|
|
|
GIMP_LAYER_MODE_DODGE GIMP_LAYER_MODE_BURN
|
2017-01-15 04:52:54 +08:00
|
|
|
GIMP_LAYER_MODE_HARDLIGHT
|
2017-01-11 11:36:31 +08:00
|
|
|
GIMP_LAYER_MODE_SOFTLIGHT
|
|
|
|
GIMP_LAYER_MODE_GRAIN_EXTRACT
|
2017-01-15 05:56:54 +08:00
|
|
|
GIMP_LAYER_MODE_GRAIN_MERGE
|
2017-01-23 02:48:49 +08:00
|
|
|
GIMP_LAYER_MODE_VIVID_LIGHT
|
|
|
|
GIMP_LAYER_MODE_PIN_LIGHT
|
|
|
|
GIMP_LAYER_MODE_LINEAR_LIGHT
|
2017-02-20 06:14:44 +08:00
|
|
|
GIMP_LAYER_MODE_HARD_MIX GIMP_LAYER_MODE_EXCLUSION
|
2017-01-23 02:48:49 +08:00
|
|
|
GIMP_LAYER_MODE_LINEAR_BURN
|
2017-01-31 04:43:16 +08:00
|
|
|
GIMP_LAYER_MODE_LUMA_DARKEN_ONLY
|
2017-02-21 01:21:12 +08:00
|
|
|
GIMP_LAYER_MODE_LUMA_LIGHTEN_ONLY
|
2017-03-09 02:06:46 +08:00
|
|
|
GIMP_LAYER_MODE_LUMINANCE
|
2017-03-11 05:33:14 +08:00
|
|
|
GIMP_LAYER_MODE_COLOR_ERASE GIMP_LAYER_MODE_ERASE
|
2017-04-22 01:38:22 +08:00
|
|
|
GIMP_LAYER_MODE_MERGE GIMP_LAYER_MODE_SPLIT
|
|
|
|
GIMP_LAYER_MODE_PASS_THROUGH) ],
|
2017-02-26 23:26:34 +08:00
|
|
|
mapping => { GIMP_LAYER_MODE_NORMAL_LEGACY => '0',
|
2017-01-09 06:00:19 +08:00
|
|
|
GIMP_LAYER_MODE_DISSOLVE => '1',
|
2017-02-20 06:14:44 +08:00
|
|
|
GIMP_LAYER_MODE_BEHIND_LEGACY => '2',
|
2017-01-09 08:27:20 +08:00
|
|
|
GIMP_LAYER_MODE_MULTIPLY_LEGACY => '3',
|
|
|
|
GIMP_LAYER_MODE_SCREEN_LEGACY => '4',
|
|
|
|
GIMP_LAYER_MODE_OVERLAY_LEGACY => '5',
|
|
|
|
GIMP_LAYER_MODE_DIFFERENCE_LEGACY => '6',
|
|
|
|
GIMP_LAYER_MODE_ADDITION_LEGACY => '7',
|
|
|
|
GIMP_LAYER_MODE_SUBTRACT_LEGACY => '8',
|
|
|
|
GIMP_LAYER_MODE_DARKEN_ONLY_LEGACY => '9',
|
|
|
|
GIMP_LAYER_MODE_LIGHTEN_ONLY_LEGACY => '10',
|
|
|
|
GIMP_LAYER_MODE_HSV_HUE_LEGACY => '11',
|
|
|
|
GIMP_LAYER_MODE_HSV_SATURATION_LEGACY => '12',
|
2017-03-16 18:17:05 +08:00
|
|
|
GIMP_LAYER_MODE_HSL_COLOR_LEGACY => '13',
|
2017-01-09 08:27:20 +08:00
|
|
|
GIMP_LAYER_MODE_HSV_VALUE_LEGACY => '14',
|
|
|
|
GIMP_LAYER_MODE_DIVIDE_LEGACY => '15',
|
|
|
|
GIMP_LAYER_MODE_DODGE_LEGACY => '16',
|
|
|
|
GIMP_LAYER_MODE_BURN_LEGACY => '17',
|
|
|
|
GIMP_LAYER_MODE_HARDLIGHT_LEGACY => '18',
|
|
|
|
GIMP_LAYER_MODE_SOFTLIGHT_LEGACY => '19',
|
|
|
|
GIMP_LAYER_MODE_GRAIN_EXTRACT_LEGACY => '20',
|
|
|
|
GIMP_LAYER_MODE_GRAIN_MERGE_LEGACY => '21',
|
2017-03-09 02:06:46 +08:00
|
|
|
GIMP_LAYER_MODE_COLOR_ERASE_LEGACY => '22',
|
2017-01-09 06:00:19 +08:00
|
|
|
GIMP_LAYER_MODE_OVERLAY => '23',
|
|
|
|
GIMP_LAYER_MODE_LCH_HUE => '24',
|
|
|
|
GIMP_LAYER_MODE_LCH_CHROMA => '25',
|
|
|
|
GIMP_LAYER_MODE_LCH_COLOR => '26',
|
2016-12-23 06:50:02 +08:00
|
|
|
GIMP_LAYER_MODE_LCH_LIGHTNESS => '27',
|
2017-02-26 23:26:34 +08:00
|
|
|
GIMP_LAYER_MODE_NORMAL => '28',
|
2017-02-21 01:21:12 +08:00
|
|
|
GIMP_LAYER_MODE_BEHIND => '29',
|
|
|
|
GIMP_LAYER_MODE_MULTIPLY => '30',
|
|
|
|
GIMP_LAYER_MODE_SCREEN => '31',
|
|
|
|
GIMP_LAYER_MODE_DIFFERENCE => '32',
|
|
|
|
GIMP_LAYER_MODE_ADDITION => '33',
|
|
|
|
GIMP_LAYER_MODE_SUBTRACT => '34',
|
|
|
|
GIMP_LAYER_MODE_DARKEN_ONLY => '35',
|
|
|
|
GIMP_LAYER_MODE_LIGHTEN_ONLY => '36',
|
|
|
|
GIMP_LAYER_MODE_HSV_HUE => '37',
|
|
|
|
GIMP_LAYER_MODE_HSV_SATURATION => '38',
|
2017-03-16 07:30:01 +08:00
|
|
|
GIMP_LAYER_MODE_HSL_COLOR => '39',
|
2017-02-21 01:21:12 +08:00
|
|
|
GIMP_LAYER_MODE_HSV_VALUE => '40',
|
|
|
|
GIMP_LAYER_MODE_DIVIDE => '41',
|
|
|
|
GIMP_LAYER_MODE_DODGE => '42',
|
|
|
|
GIMP_LAYER_MODE_BURN => '43',
|
|
|
|
GIMP_LAYER_MODE_HARDLIGHT => '44',
|
|
|
|
GIMP_LAYER_MODE_SOFTLIGHT => '45',
|
|
|
|
GIMP_LAYER_MODE_GRAIN_EXTRACT => '46',
|
|
|
|
GIMP_LAYER_MODE_GRAIN_MERGE => '47',
|
|
|
|
GIMP_LAYER_MODE_VIVID_LIGHT => '48',
|
|
|
|
GIMP_LAYER_MODE_PIN_LIGHT => '49',
|
|
|
|
GIMP_LAYER_MODE_LINEAR_LIGHT => '50',
|
|
|
|
GIMP_LAYER_MODE_HARD_MIX => '51',
|
|
|
|
GIMP_LAYER_MODE_EXCLUSION => '52',
|
|
|
|
GIMP_LAYER_MODE_LINEAR_BURN => '53',
|
|
|
|
GIMP_LAYER_MODE_LUMA_DARKEN_ONLY => '54',
|
|
|
|
GIMP_LAYER_MODE_LUMA_LIGHTEN_ONLY => '55',
|
2017-03-09 02:06:46 +08:00
|
|
|
GIMP_LAYER_MODE_LUMINANCE => '56',
|
2017-03-11 03:35:46 +08:00
|
|
|
GIMP_LAYER_MODE_COLOR_ERASE => '57',
|
2017-03-11 05:33:14 +08:00
|
|
|
GIMP_LAYER_MODE_ERASE => '58',
|
2017-03-16 02:52:14 +08:00
|
|
|
GIMP_LAYER_MODE_MERGE => '59',
|
2017-04-22 01:38:22 +08:00
|
|
|
GIMP_LAYER_MODE_SPLIT => '60',
|
|
|
|
GIMP_LAYER_MODE_PASS_THROUGH => '61' }
|
2012-04-09 07:11:50 +08:00
|
|
|
},
|
2017-02-05 22:59:29 +08:00
|
|
|
GimpConvertDitherType =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'core/core-enums.h',
|
2017-02-27 03:10:54 +08:00
|
|
|
symbols => [ qw(GIMP_CONVERT_DITHER_NONE GIMP_CONVERT_DITHER_FS
|
|
|
|
GIMP_CONVERT_DITHER_FS_LOWBLEED
|
|
|
|
GIMP_CONVERT_DITHER_FIXED) ],
|
|
|
|
mapping => { GIMP_CONVERT_DITHER_NONE => '0',
|
|
|
|
GIMP_CONVERT_DITHER_FS => '1',
|
|
|
|
GIMP_CONVERT_DITHER_FS_LOWBLEED => '2',
|
|
|
|
GIMP_CONVERT_DITHER_FIXED => '3' }
|
2017-02-05 22:59:29 +08:00
|
|
|
},
|
|
|
|
GimpHistogramChannel =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'core/core-enums.h',
|
|
|
|
symbols => [ qw(GIMP_HISTOGRAM_VALUE GIMP_HISTOGRAM_RED
|
|
|
|
GIMP_HISTOGRAM_GREEN GIMP_HISTOGRAM_BLUE
|
|
|
|
GIMP_HISTOGRAM_ALPHA GIMP_HISTOGRAM_LUMINANCE) ],
|
|
|
|
mapping => { GIMP_HISTOGRAM_VALUE => '0',
|
|
|
|
GIMP_HISTOGRAM_RED => '1',
|
|
|
|
GIMP_HISTOGRAM_GREEN => '2',
|
|
|
|
GIMP_HISTOGRAM_BLUE => '3',
|
|
|
|
GIMP_HISTOGRAM_ALPHA => '4',
|
|
|
|
GIMP_HISTOGRAM_LUMINANCE => '5' }
|
|
|
|
},
|
2003-03-25 01:58:28 +08:00
|
|
|
GimpBrushApplicationMode =>
|
|
|
|
{ contig => 1,
|
|
|
|
header => 'paint/paint-enums.h',
|
|
|
|
symbols => [ qw(GIMP_BRUSH_HARD GIMP_BRUSH_SOFT) ],
|
|
|
|
mapping => { GIMP_BRUSH_HARD => '0',
|
|
|
|
GIMP_BRUSH_SOFT => '1' }
|
1999-03-20 07:04:16 +08:00
|
|
|
}
|
1999-03-18 07:08:08 +08:00
|
|
|
);
|
|
|
|
|
1999-03-20 07:04:16 +08:00
|
|
|
foreach $e (values %enums) {
|
|
|
|
$e->{info} = "";
|
1999-04-04 13:59:08 +08:00
|
|
|
foreach (@{$e->{symbols}}) {
|
2002-03-18 06:54:26 +08:00
|
|
|
$e->{info} .= "$_ ($e->{mapping}->{$_}), "
|
1999-04-04 13:59:08 +08:00
|
|
|
}
|
1999-03-20 07:04:16 +08:00
|
|
|
$e->{info} =~ s/, $//;
|
1999-03-18 07:08:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|