Commit 53bda86c authored by Michael Natterer's avatar Michael Natterer 😴

app: code cleanup in the GEGL ops

parent f0daec88
......@@ -53,9 +53,9 @@ gimp_operation_addition_mode_class_init (GimpOperationAdditionModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:addition-mode",
"description", "GIMP addition mode operation",
NULL);
"name", "gimp:addition-mode",
"description", "GIMP addition mode operation",
NULL);
point_class->process = gimp_operation_addition_mode_process;
operation_class->prepare = gimp_operation_addition_mode_prepare;
......
......@@ -51,9 +51,9 @@ gimp_operation_anti_erase_mode_class_init (GimpOperationAntiEraseModeClass *klas
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:anti-erase-mode",
"description", "GIMP anti erase mode operation",
NULL);
"name", "gimp:anti-erase-mode",
"description", "GIMP anti erase mode operation",
NULL);
point_class->process = gimp_operation_anti_erase_mode_process;
}
......
......@@ -51,9 +51,9 @@ gimp_operation_behind_mode_class_init (GimpOperationBehindModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:behind-mode",
"description", "GIMP behind mode operation",
NULL);
"name", "gimp:behind-mode",
"description", "GIMP behind mode operation",
NULL);
point_class->process = gimp_operation_behind_mode_process;
}
......
......@@ -83,16 +83,16 @@ gimp_operation_border_class_init (GimpOperationBorderClass *klass)
object_class->get_property = gimp_operation_border_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:border",
"categories" , "gimp",
"description" , "GIMP Border operation",
NULL);
"name", "gimp:border",
"categories", "gimp",
"description", "GIMP Border operation",
NULL);
operation_class->prepare = gimp_operation_border_prepare;
operation_class->get_required_for_output = gimp_operation_border_get_required_for_output;
operation_class->get_cached_region = gimp_operation_border_get_cached_region;
filter_class->process = gimp_operation_border_process;
filter_class->process = gimp_operation_border_process;
g_object_class_install_property (object_class, PROP_RADIUS_X,
g_param_spec_int ("radius-x",
......
......@@ -57,10 +57,10 @@ gimp_operation_brightness_contrast_class_init (GimpOperationBrightnessContrastCl
object_class->get_property = gimp_operation_point_filter_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:brightness-contrast",
"categories" , "color",
"description", "GIMP Brightness-Contrast operation",
NULL);
"name", "gimp:brightness-contrast",
"categories", "color",
"description", "GIMP Brightness-Contrast operation",
NULL);
point_class->process = gimp_operation_brightness_contrast_process;
......
......@@ -29,7 +29,7 @@
#include "gimpoperationburnmode.h"
static void gimp_operation_burn_mode_prepare (GeglOperation *operation);
static void gimp_operation_burn_mode_prepare (GeglOperation *operation);
static gboolean gimp_operation_burn_mode_process (GeglOperation *operation,
void *in_buf,
void *aux_buf,
......@@ -53,9 +53,9 @@ gimp_operation_burn_mode_class_init (GimpOperationBurnModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:burn-mode",
"description", "GIMP burn mode operation",
NULL);
"name", "gimp:burn-mode",
"description", "GIMP burn mode operation",
NULL);
point_class->process = gimp_operation_burn_mode_process;
operation_class->prepare = gimp_operation_burn_mode_prepare;
......
......@@ -30,21 +30,23 @@
#include "gimp-intl.h"
static void gimp_operation_cage_coef_calc_prepare (GeglOperation *operation);
static void gimp_operation_cage_coef_calc_finalize (GObject *object);
static void gimp_operation_cage_coef_calc_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_operation_cage_coef_calc_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static GeglRectangle gimp_operation_cage_coef_calc_get_bounding_box (GeglOperation *operation);
static gboolean gimp_operation_cage_coef_calc_process (GeglOperation *operation,
GeglBuffer *output,
const GeglRectangle *roi,
gint level);
static void gimp_operation_cage_coef_calc_finalize (GObject *object);
static void gimp_operation_cage_coef_calc_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_operation_cage_coef_calc_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void gimp_operation_cage_coef_calc_prepare (GeglOperation *operation);
static GeglRectangle gimp_operation_cage_coef_calc_get_bounding_box (GeglOperation *operation);
static gboolean gimp_operation_cage_coef_calc_process (GeglOperation *operation,
GeglBuffer *output,
const GeglRectangle *roi,
gint level);
G_DEFINE_TYPE (GimpOperationCageCoefCalc, gimp_operation_cage_coef_calc,
......@@ -61,10 +63,10 @@ gimp_operation_cage_coef_calc_class_init (GimpOperationCageCoefCalcClass *klass)
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:cage-coef-calc",
"categories" , "transform",
"description" , _("Compute a set of coefficient buffer for the GIMP cage tool"),
NULL);
"name", "gimp:cage-coef-calc",
"categories", "transform",
"description", _("Compute a set of coefficient buffer for the GIMP cage tool"),
NULL);
operation_class->prepare = gimp_operation_cage_coef_calc_prepare;
operation_class->get_bounding_box = gimp_operation_cage_coef_calc_get_bounding_box;
......@@ -92,18 +94,6 @@ gimp_operation_cage_coef_calc_init (GimpOperationCageCoefCalc *self)
{
}
static void
gimp_operation_cage_coef_calc_prepare (GeglOperation *operation)
{
GimpOperationCageCoefCalc *occc = GIMP_OPERATION_CAGE_COEF_CALC (operation);
GimpCageConfig *config = GIMP_CAGE_CONFIG (occc->config);
gegl_operation_set_format (operation,
"output",
babl_format_n (babl_type ("float"),
2 * gimp_cage_config_get_n_points (config)));
}
static void
gimp_operation_cage_coef_calc_finalize (GObject *object)
{
......@@ -181,6 +171,18 @@ gimp_operation_cage_coef_calc_is_on_straight (GimpVector2 *d1,
return (deter < 0.000000001) && (deter > -0.000000001);
}
static void
gimp_operation_cage_coef_calc_prepare (GeglOperation *operation)
{
GimpOperationCageCoefCalc *occc = GIMP_OPERATION_CAGE_COEF_CALC (operation);
GimpCageConfig *config = GIMP_CAGE_CONFIG (occc->config);
gegl_operation_set_format (operation,
"output",
babl_format_n (babl_type ("float"),
2 * gimp_cage_config_get_n_points (config)));
}
static GeglRectangle
gimp_operation_cage_coef_calc_get_bounding_box (GeglOperation *operation)
{
......
......@@ -100,10 +100,10 @@ gimp_operation_cage_transform_class_init (GimpOperationCageTransformClass *klass
object_class->finalize = gimp_operation_cage_transform_finalize;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:cage-transform",
"categories" , "transform",
"description" , _("Convert a set of coefficient buffer to a coordinate buffer for the GIMP cage tool"),
NULL);
"name", "gimp:cage-transform",
"categories", "transform",
"description", _("Convert a set of coefficient buffer to a coordinate buffer for the GIMP cage tool"),
NULL);
operation_class->prepare = gimp_operation_cage_transform_prepare;
......
......@@ -57,12 +57,12 @@ gimp_operation_color_balance_class_init (GimpOperationColorBalanceClass *klass)
object_class->get_property = gimp_operation_point_filter_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:color-balance",
"categories" , "color",
"description", "GIMP Color Balance operation",
NULL);
"name", "gimp:color-balance",
"categories", "color",
"description", "GIMP Color Balance operation",
NULL);
point_class->process = gimp_operation_color_balance_process;
point_class->process = gimp_operation_color_balance_process;
g_object_class_install_property (object_class,
GIMP_OPERATION_POINT_FILTER_PROP_CONFIG,
......
......@@ -51,9 +51,9 @@ gimp_operation_color_erase_mode_class_init (GimpOperationColorEraseModeClass *kl
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:color-erase-mode",
"description", "GIMP color erase mode operation",
NULL);
"name", "gimp:color-erase-mode",
"description", "GIMP color erase mode operation",
NULL);
point_class->process = gimp_operation_color_erase_mode_process;
}
......
......@@ -56,12 +56,12 @@ gimp_operation_colorize_class_init (GimpOperationColorizeClass *klass)
object_class->get_property = gimp_operation_point_filter_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:colorize",
"categories" , "color",
"description", "GIMP Colorize operation",
NULL);
"name", "gimp:colorize",
"categories", "color",
"description", "GIMP Colorize operation",
NULL);
point_class->process = gimp_operation_colorize_process;
point_class->process = gimp_operation_colorize_process;
g_object_class_install_property (object_class,
GIMP_OPERATION_POINT_FILTER_PROP_CONFIG,
......
......@@ -51,9 +51,9 @@ gimp_operation_color_mode_class_init (GimpOperationColorModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:color-mode",
"description", "GIMP color mode operation",
NULL);
"name", "gimp:color-mode",
"description", "GIMP color mode operation",
NULL);
point_class->process = gimp_operation_color_mode_process;
}
......
......@@ -60,12 +60,12 @@ gimp_operation_curves_class_init (GimpOperationCurvesClass *klass)
object_class->get_property = gimp_operation_point_filter_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:curves",
"categories" , "color",
"description", "GIMP Curves operation",
NULL);
"name", "gimp:curves",
"categories", "color",
"description", "GIMP Curves operation",
NULL);
point_class->process = gimp_operation_curves_process;
point_class->process = gimp_operation_curves_process;
g_object_class_install_property (object_class,
GIMP_OPERATION_POINT_FILTER_PROP_CONFIG,
......
......@@ -29,7 +29,7 @@
#include "gimpoperationdarkenonlymode.h"
static void gimp_operation_darken_only_mode_prepare (GeglOperation *operation);
static void gimp_operation_darken_only_mode_prepare (GeglOperation *operation);
static gboolean gimp_operation_darken_only_mode_process (GeglOperation *operation,
void *in_buf,
void *aux_buf,
......@@ -53,12 +53,13 @@ gimp_operation_darken_only_mode_class_init (GimpOperationDarkenOnlyModeClass *kl
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:darken-only-mode",
"description", "GIMP darken only mode operation",
NULL);
"name", "gimp:darken-only-mode",
"description", "GIMP darken only mode operation",
NULL);
point_class->process = gimp_operation_darken_only_mode_process;
operation_class->prepare = gimp_operation_darken_only_mode_prepare;
point_class->process = gimp_operation_darken_only_mode_process;
}
static void
......
......@@ -56,12 +56,12 @@ gimp_operation_desaturate_class_init (GimpOperationDesaturateClass *klass)
object_class->get_property = gimp_operation_point_filter_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:desaturate",
"categories" , "color",
"description", "GIMP Desaturate operation",
NULL);
"name", "gimp:desaturate",
"categories", "color",
"description", "GIMP Desaturate operation",
NULL);
point_class->process = gimp_operation_desaturate_process;
point_class->process = gimp_operation_desaturate_process;
g_object_class_install_property (object_class,
GIMP_OPERATION_POINT_FILTER_PROP_CONFIG,
......
......@@ -51,9 +51,9 @@ gimp_operation_difference_mode_class_init (GimpOperationDifferenceModeClass *kla
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:difference-mode",
"description", "GIMP difference mode operation",
NULL);
"name", "gimp:difference-mode",
"description", "GIMP difference mode operation",
NULL);
point_class->process = gimp_operation_difference_mode_process;
}
......
......@@ -29,23 +29,24 @@
#include "gimpoperationdissolvemode.h"
#define RANDOM_TABLE_SIZE 4096
static void gimp_operation_dissolve_mode_prepare (GeglOperation *operation);
static gboolean gimp_operation_dissolve_mode_process (GeglOperation *operation,
void *in_buf,
void *aux_buf,
void *out_buf,
glong samples,
const GeglRectangle *result,
gint level);
G_DEFINE_TYPE (GimpOperationDissolveMode, gimp_operation_dissolve_mode,
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
#define RANDOM_TABLE_SIZE 4096
static gint32 random_table[RANDOM_TABLE_SIZE];
static void gimp_operation_dissolve_mode_prepare (
GeglOperation *operation);
static gboolean gimp_operation_dissolve_mode_process (
GeglOperation *operation,
void *in_buf,
void *aux_buf,
void *out_buf,
glong samples,
const GeglRectangle *result,
gint level);
static void
gimp_operation_dissolve_mode_class_init (GimpOperationDissolveModeClass *klass)
......
......@@ -51,9 +51,9 @@ gimp_operation_divide_mode_class_init (GimpOperationDivideModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:divide-mode",
"description", "GIMP divide mode operation",
NULL);
"name", "gimp:divide-mode",
"description", "GIMP divide mode operation",
NULL);
point_class->process = gimp_operation_divide_mode_process;
}
......
......@@ -29,7 +29,7 @@
#include "gimpoperationdodgemode.h"
static void gimp_operation_dodge_mode_prepare (GeglOperation *operation);
static void gimp_operation_dodge_mode_prepare (GeglOperation *operation);
static gboolean gimp_operation_dodge_mode_process (GeglOperation *operation,
void *in_buf,
void *aux_buf,
......@@ -53,9 +53,9 @@ gimp_operation_dodge_mode_class_init (GimpOperationDodgeModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:dodge-mode",
"description", "GIMP dodge mode operation",
NULL);
"name", "gimp:dodge-mode",
"description", "GIMP dodge mode operation",
NULL);
point_class->process = gimp_operation_dodge_mode_process;
operation_class->prepare = gimp_operation_dodge_mode_prepare;
......
......@@ -40,22 +40,22 @@ enum
};
static void gimp_operation_equalize_finalize (GObject *object);
static void gimp_operation_equalize_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_operation_equalize_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static gboolean gimp_operation_equalize_process (GeglOperation *operation,
void *in_buf,
void *out_buf,
glong samples,
const GeglRectangle *roi,
gint level);
static void gimp_operation_equalize_finalize (GObject *object);
static void gimp_operation_equalize_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_operation_equalize_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static gboolean gimp_operation_equalize_process (GeglOperation *operation,
void *in_buf,
void *out_buf,
glong samples,
const GeglRectangle *roi,
gint level);
G_DEFINE_TYPE (GimpOperationEqualize, gimp_operation_equalize,
......@@ -76,12 +76,12 @@ gimp_operation_equalize_class_init (GimpOperationEqualizeClass *klass)
object_class->get_property = gimp_operation_equalize_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:equalize",
"categories" , "color",
"description" , "GIMP Equalize operation",
NULL);
"name", "gimp:equalize",
"categories", "color",
"description", "GIMP Equalize operation",
NULL);
point_class->process = gimp_operation_equalize_process;
point_class->process = gimp_operation_equalize_process;
g_object_class_install_property (object_class, PROP_HISTOGRAM,
g_param_spec_pointer ("histogram",
......
......@@ -51,9 +51,9 @@ gimp_operation_erase_mode_class_init (GimpOperationEraseModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:erase-mode",
"description", "GIMP erase mode operation",
NULL);
"name", "gimp:erase-mode",
"description", "GIMP erase mode operation",
NULL);
point_class->process = gimp_operation_erase_mode_process;
}
......
......@@ -51,9 +51,9 @@ gimp_operation_grain_extract_mode_class_init (GimpOperationGrainExtractModeClass
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:grain-extract-mode",
"description", "GIMP grain extract mode operation",
NULL);
"name", "gimp:grain-extract-mode",
"description", "GIMP grain extract mode operation",
NULL);
point_class->process = gimp_operation_grain_extract_mode_process;
}
......
......@@ -51,9 +51,9 @@ gimp_operation_grain_merge_mode_class_init (GimpOperationGrainMergeModeClass *kl
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:grain-merge-mode",
"description", "GIMP grain merge mode operation",
NULL);
"name", "gimp:grain-merge-mode",
"description", "GIMP grain merge mode operation",
NULL);
point_class->process = gimp_operation_grain_merge_mode_process;
}
......
......@@ -40,28 +40,29 @@ enum
};
static void gimp_operation_grow_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_operation_grow_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void gimp_operation_grow_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec);
static void gimp_operation_grow_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec);
static void gimp_operation_grow_prepare (GeglOperation *operation);
static GeglRectangle
gimp_operation_grow_get_required_for_output (GeglOperation *self,
const gchar *input_pad,
const GeglRectangle *roi);
gimp_operation_grow_get_required_for_output (GeglOperation *self,
const gchar *input_pad,
const GeglRectangle *roi);
static GeglRectangle
gimp_operation_grow_get_cached_region (GeglOperation *self,
const GeglRectangle *roi);
static void gimp_operation_grow_prepare (GeglOperation *operation);
static gboolean gimp_operation_grow_process (GeglOperation *operation,
GeglBuffer *input,
GeglBuffer *output,
const GeglRectangle *roi,
gint level);
gimp_operation_grow_get_cached_region (GeglOperation *self,
const GeglRectangle *roi);
static gboolean gimp_operation_grow_process (GeglOperation *operation,
GeglBuffer *input,
GeglBuffer *output,
const GeglRectangle *roi,
gint level);
G_DEFINE_TYPE (GimpOperationGrow, gimp_operation_grow,
......@@ -81,16 +82,16 @@ gimp_operation_grow_class_init (GimpOperationGrowClass *klass)
object_class->get_property = gimp_operation_grow_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:grow",
"categories" , "gimp",
"description" , "GIMP Grow operation",
NULL);
"name", "gimp:grow",
"categories", "gimp",
"description", "GIMP Grow operation",
NULL);
operation_class->prepare = gimp_operation_grow_prepare;
operation_class->get_required_for_output = gimp_operation_grow_get_required_for_output;
operation_class->get_cached_region = gimp_operation_grow_get_cached_region;
filter_class->process = gimp_operation_grow_process;
filter_class->process = gimp_operation_grow_process;
g_object_class_install_property (object_class, PROP_RADIUS_X,
g_param_spec_int ("radius-x",
......
......@@ -51,9 +51,9 @@ gimp_operation_hardlight_mode_class_init (GimpOperationHardlightModeClass *klass
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:hardlight-mode",
"description", "GIMP hardlight mode operation",
NULL);
"name", "gimp:hardlight-mode",
"description", "GIMP hardlight mode operation",
NULL);
point_class->process = gimp_operation_hardlight_mode_process;
}
......
......@@ -51,9 +51,9 @@ gimp_operation_hue_mode_class_init (GimpOperationHueModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:hue-mode",
"description", "GIMP hue mode operation",
NULL);
"name", "gimp:hue-mode",
"description", "GIMP hue mode operation",
NULL);
point_class->process = gimp_operation_hue_mode_process;
}
......
......@@ -57,12 +57,12 @@ gimp_operation_hue_saturation_class_init (GimpOperationHueSaturationClass *klass
object_class->get_property = gimp_operation_point_filter_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:hue-saturation",
"categories" , "color",
"description", "GIMP Hue-Saturation operation",
NULL);
"name", "gimp:hue-saturation",
"categories", "color",
"description", "GIMP Hue-Saturation operation",
NULL);
point_class->process = gimp_operation_hue_saturation_process;
point_class->process = gimp_operation_hue_saturation_process;
g_object_class_install_property (object_class,
GIMP_OPERATION_POINT_FILTER_PROP_CONFIG,
......
......@@ -57,12 +57,12 @@ gimp_operation_levels_class_init (GimpOperationLevelsClass *klass)
object_class->get_property = gimp_operation_point_filter_get_property;
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:levels",
"categories" , "color",
"description", "GIMP Levels operation",
NULL);
"name", "gimp:levels",
"categories", "color",
"description", "GIMP Levels operation",
NULL);
point_class->process = gimp_operation_levels_process;
point_class->process = gimp_operation_levels_process;
g_object_class_install_property (object_class,
GIMP_OPERATION_POINT_FILTER_PROP_CONFIG,
......
......@@ -28,7 +28,7 @@
#include "gimpoperationlightenonlymode.h"
static void gimp_operation_lighten_only_mode_prepare (GeglOperation *operation);
static void gimp_operation_lighten_only_mode_prepare (GeglOperation *operation);
static gboolean gimp_operation_lighten_only_mode_process (GeglOperation *operation,
void *in_buf,
void *aux_buf,
......@@ -52,12 +52,13 @@ gimp_operation_lighten_only_mode_class_init (GimpOperationLightenOnlyModeClass *
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:lighten-only-mode",
"description", "GIMP lighten only mode operation",
NULL);
"name", "gimp:lighten-only-mode",
"description", "GIMP lighten only mode operation",
NULL);
point_class->process = gimp_operation_lighten_only_mode_process;
operation_class->prepare = gimp_operation_lighten_only_mode_prepare;
point_class->process = gimp_operation_lighten_only_mode_process;
}
static void
......
......@@ -29,7 +29,7 @@
#include "gimpoperationmultiplymode.h"
static void gimp_operation_multiply_mode_prepare (GeglOperation *operation);
static void gimp_operation_multiply_mode_prepare (GeglOperation *operation);
static gboolean gimp_operation_multiply_mode_process (GeglOperation *operation,
void *in_buf,
void *aux_buf,
......@@ -53,9 +53,9 @@ gimp_operation_multiply_mode_class_init (GimpOperationMultiplyModeClass *klass)
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
gegl_operation_class_set_keys (operation_class,
"name" , "gimp:multiply-mode",
"description", "GIMP multiply mode operation",
NULL);