2012-05-11 03:22:44 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* gimp-operations.c
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* 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
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2016-01-21 04:26:43 +08:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
2012-05-11 03:22:44 +08:00
|
|
|
#include <gegl.h>
|
|
|
|
|
|
|
|
#include "operations-types.h"
|
|
|
|
|
|
|
|
#include "core/gimp.h"
|
|
|
|
|
2016-01-21 04:26:43 +08:00
|
|
|
#include "gegl/gimp-gegl-config.h"
|
|
|
|
|
2012-05-11 03:22:44 +08:00
|
|
|
#include "gimp-operations.h"
|
|
|
|
|
2014-06-13 08:57:26 +08:00
|
|
|
#include "gimpoperationblend.h"
|
2012-05-11 03:22:44 +08:00
|
|
|
#include "gimpoperationborder.h"
|
|
|
|
#include "gimpoperationcagecoefcalc.h"
|
|
|
|
#include "gimpoperationcagetransform.h"
|
|
|
|
#include "gimpoperationequalize.h"
|
2016-01-25 01:08:43 +08:00
|
|
|
#include "gimpoperationflood.h"
|
2012-05-11 03:22:44 +08:00
|
|
|
#include "gimpoperationgrow.h"
|
|
|
|
#include "gimpoperationhistogramsink.h"
|
2016-05-17 00:08:48 +08:00
|
|
|
#include "gimpoperationcomposecrop.h"
|
2012-05-11 03:22:44 +08:00
|
|
|
#include "gimpoperationmaskcomponents.h"
|
2014-11-07 07:39:22 +08:00
|
|
|
#include "gimpoperationscalarmultiply.h"
|
2012-05-11 03:22:44 +08:00
|
|
|
#include "gimpoperationsemiflatten.h"
|
|
|
|
#include "gimpoperationsetalpha.h"
|
|
|
|
#include "gimpoperationshapeburst.h"
|
|
|
|
#include "gimpoperationshrink.h"
|
|
|
|
#include "gimpoperationthresholdalpha.h"
|
|
|
|
|
|
|
|
#include "gimpoperationbrightnesscontrast.h"
|
|
|
|
#include "gimpoperationcolorbalance.h"
|
|
|
|
#include "gimpoperationcolorize.h"
|
|
|
|
#include "gimpoperationcurves.h"
|
|
|
|
#include "gimpoperationdesaturate.h"
|
|
|
|
#include "gimpoperationhuesaturation.h"
|
|
|
|
#include "gimpoperationlevels.h"
|
|
|
|
#include "gimpoperationposterize.h"
|
|
|
|
#include "gimpoperationthreshold.h"
|
|
|
|
|
2016-01-21 04:26:43 +08:00
|
|
|
#include "gimpbrightnesscontrastconfig.h"
|
|
|
|
#include "gimpcolorbalanceconfig.h"
|
|
|
|
#include "gimpcolorizeconfig.h"
|
|
|
|
#include "gimpcurvesconfig.h"
|
|
|
|
#include "gimphuesaturationconfig.h"
|
|
|
|
#include "gimplevelsconfig.h"
|
|
|
|
|
2012-05-11 03:22:44 +08:00
|
|
|
#include "gimpoperationpointlayermode.h"
|
|
|
|
#include "gimpoperationnormalmode.h"
|
|
|
|
#include "gimpoperationdissolvemode.h"
|
|
|
|
#include "gimpoperationbehindmode.h"
|
|
|
|
#include "gimpoperationmultiplymode.h"
|
|
|
|
#include "gimpoperationscreenmode.h"
|
|
|
|
#include "gimpoperationoverlaymode.h"
|
|
|
|
#include "gimpoperationdifferencemode.h"
|
|
|
|
#include "gimpoperationadditionmode.h"
|
|
|
|
#include "gimpoperationsubtractmode.h"
|
|
|
|
#include "gimpoperationdarkenonlymode.h"
|
|
|
|
#include "gimpoperationlightenonlymode.h"
|
|
|
|
#include "gimpoperationhuemode.h"
|
|
|
|
#include "gimpoperationsaturationmode.h"
|
|
|
|
#include "gimpoperationcolormode.h"
|
|
|
|
#include "gimpoperationvaluemode.h"
|
|
|
|
#include "gimpoperationdividemode.h"
|
|
|
|
#include "gimpoperationdodgemode.h"
|
|
|
|
#include "gimpoperationburnmode.h"
|
|
|
|
#include "gimpoperationhardlightmode.h"
|
|
|
|
#include "gimpoperationsoftlightmode.h"
|
|
|
|
#include "gimpoperationgrainextractmode.h"
|
|
|
|
#include "gimpoperationgrainmergemode.h"
|
|
|
|
#include "gimpoperationcolorerasemode.h"
|
2015-05-20 21:19:30 +08:00
|
|
|
#include "gimpoperationlchhuemode.h"
|
|
|
|
#include "gimpoperationlchchromamode.h"
|
|
|
|
#include "gimpoperationlchcolormode.h"
|
|
|
|
#include "gimpoperationlchlightnessmode.h"
|
2012-05-11 03:22:44 +08:00
|
|
|
#include "gimpoperationerasemode.h"
|
|
|
|
#include "gimpoperationreplacemode.h"
|
|
|
|
#include "gimpoperationantierasemode.h"
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2012-06-07 01:23:55 +08:00
|
|
|
gimp_operations_init (void)
|
2012-05-11 03:22:44 +08:00
|
|
|
{
|
2014-06-13 08:57:26 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_BLEND);
|
2012-05-11 03:22:44 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_BORDER);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_CAGE_COEF_CALC);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_CAGE_TRANSFORM);
|
2016-05-17 00:08:48 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_COMPOSE_CROP);
|
2012-05-11 03:22:44 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_EQUALIZE);
|
2016-01-25 01:08:43 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_FLOOD);
|
2012-05-11 03:22:44 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_GROW);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_HISTOGRAM_SINK);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_MASK_COMPONENTS);
|
2014-11-07 07:39:22 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SCALAR_MULTIPLY);
|
2012-05-11 03:22:44 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SEMI_FLATTEN);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SET_ALPHA);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SHAPEBURST);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SHRINK);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_THRESHOLD_ALPHA);
|
|
|
|
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_BRIGHTNESS_CONTRAST);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_COLOR_BALANCE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_COLORIZE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_CURVES);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_DESATURATE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_HUE_SATURATION);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_LEVELS);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_POSTERIZE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_THRESHOLD);
|
|
|
|
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_POINT_LAYER_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_NORMAL_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_DISSOLVE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_BEHIND_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_MULTIPLY_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SCREEN_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_OVERLAY_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_DIFFERENCE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_ADDITION_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SUBTRACT_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_DARKEN_ONLY_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_LIGHTEN_ONLY_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_HUE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SATURATION_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_COLOR_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_VALUE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_DIVIDE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_DODGE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_BURN_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_HARDLIGHT_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_SOFTLIGHT_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_GRAIN_EXTRACT_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_GRAIN_MERGE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_COLOR_ERASE_MODE);
|
2015-05-20 21:19:30 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_LCH_HUE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_LCH_CHROMA_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_LCH_COLOR_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_LCH_LIGHTNESS_MODE);
|
2012-05-11 03:22:44 +08:00
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_ERASE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_REPLACE_MODE);
|
|
|
|
g_type_class_ref (GIMP_TYPE_OPERATION_ANTI_ERASE_MODE);
|
2016-01-21 04:26:43 +08:00
|
|
|
|
|
|
|
gimp_gegl_config_register ("gimp:brightness-contrast",
|
|
|
|
GIMP_TYPE_BRIGHTNESS_CONTRAST_CONFIG);
|
|
|
|
gimp_gegl_config_register ("gimp:color-balance",
|
|
|
|
GIMP_TYPE_COLOR_BALANCE_CONFIG);
|
|
|
|
gimp_gegl_config_register ("gimp:colorize",
|
|
|
|
GIMP_TYPE_COLORIZE_CONFIG);
|
|
|
|
gimp_gegl_config_register ("gimp:curves",
|
|
|
|
GIMP_TYPE_CURVES_CONFIG);
|
|
|
|
gimp_gegl_config_register ("gimp:hue-saturation",
|
|
|
|
GIMP_TYPE_HUE_SATURATION_CONFIG);
|
|
|
|
gimp_gegl_config_register ("gimp:levels",
|
|
|
|
GIMP_TYPE_LEVELS_CONFIG);
|
2012-05-11 03:22:44 +08:00
|
|
|
}
|