app: code cleanup in the GEGL ops
This commit is contained in:
@ -53,7 +53,7 @@ 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",
|
||||
"name", "gimp:addition-mode",
|
||||
"description", "GIMP addition mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:anti-erase-mode",
|
||||
"description", "GIMP anti erase mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:behind-mode",
|
||||
"description", "GIMP behind mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -83,9 +83,9 @@ 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",
|
||||
"name", "gimp:border",
|
||||
"categories", "gimp",
|
||||
"description", "GIMP Border operation",
|
||||
NULL);
|
||||
|
||||
operation_class->prepare = gimp_operation_border_prepare;
|
||||
|
@ -57,8 +57,8 @@ 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",
|
||||
"name", "gimp:brightness-contrast",
|
||||
"categories", "color",
|
||||
"description", "GIMP Brightness-Contrast operation",
|
||||
NULL);
|
||||
|
||||
|
@ -53,7 +53,7 @@ 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",
|
||||
"name", "gimp:burn-mode",
|
||||
"description", "GIMP burn mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#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,
|
||||
@ -40,6 +40,8 @@ static void gimp_operation_cage_coef_calc_set_property (GObject
|
||||
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,
|
||||
@ -61,9 +63,9 @@ 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"),
|
||||
"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;
|
||||
@ -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,9 +100,9 @@ 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"),
|
||||
"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,8 +57,8 @@ 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",
|
||||
"name", "gimp:color-balance",
|
||||
"categories", "color",
|
||||
"description", "GIMP Color Balance operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:color-erase-mode",
|
||||
"description", "GIMP color erase mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -56,8 +56,8 @@ 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",
|
||||
"name", "gimp:colorize",
|
||||
"categories", "color",
|
||||
"description", "GIMP Colorize operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:color-mode",
|
||||
"description", "GIMP color mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -60,8 +60,8 @@ 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",
|
||||
"name", "gimp:curves",
|
||||
"categories", "color",
|
||||
"description", "GIMP Curves operation",
|
||||
NULL);
|
||||
|
||||
|
@ -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",
|
||||
"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,8 +56,8 @@ 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",
|
||||
"name", "gimp:desaturate",
|
||||
"categories", "color",
|
||||
"description", "GIMP Desaturate operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:difference-mode",
|
||||
"description", "GIMP difference mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -29,16 +29,11 @@
|
||||
|
||||
#include "gimpoperationdissolvemode.h"
|
||||
|
||||
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,
|
||||
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,
|
||||
@ -47,6 +42,12 @@ static gboolean gimp_operation_dissolve_mode_process (
|
||||
gint level);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpOperationDissolveMode, gimp_operation_dissolve_mode,
|
||||
GIMP_TYPE_OPERATION_POINT_LAYER_MODE)
|
||||
|
||||
static gint32 random_table[RANDOM_TABLE_SIZE];
|
||||
|
||||
|
||||
static void
|
||||
gimp_operation_dissolve_mode_class_init (GimpOperationDissolveModeClass *klass)
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:divide-mode",
|
||||
"description", "GIMP divide mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -53,7 +53,7 @@ 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",
|
||||
"name", "gimp:dodge-mode",
|
||||
"description", "GIMP dodge mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -76,9 +76,9 @@ 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",
|
||||
"name", "gimp:equalize",
|
||||
"categories", "color",
|
||||
"description", "GIMP Equalize operation",
|
||||
NULL);
|
||||
|
||||
point_class->process = gimp_operation_equalize_process;
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:erase-mode",
|
||||
"description", "GIMP erase mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:grain-extract-mode",
|
||||
"description", "GIMP grain extract mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:grain-merge-mode",
|
||||
"description", "GIMP grain merge mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -49,14 +49,15 @@ static void gimp_operation_grow_set_property (GObject *object,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec);
|
||||
|
||||
static void gimp_operation_grow_prepare (GeglOperation *operation);
|
||||
static GeglRectangle
|
||||
gimp_operation_grow_get_required_for_output (GeglOperation *self,
|
||||
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,
|
||||
@ -81,9 +82,9 @@ 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",
|
||||
"name", "gimp:grow",
|
||||
"categories", "gimp",
|
||||
"description", "GIMP Grow operation",
|
||||
NULL);
|
||||
|
||||
operation_class->prepare = gimp_operation_grow_prepare;
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:hardlight-mode",
|
||||
"description", "GIMP hardlight mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ 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",
|
||||
"name", "gimp:hue-mode",
|
||||
"description", "GIMP hue mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -57,8 +57,8 @@ 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",
|
||||
"name", "gimp:hue-saturation",
|
||||
"categories", "color",
|
||||
"description", "GIMP Hue-Saturation operation",
|
||||
NULL);
|
||||
|
||||
|
@ -57,8 +57,8 @@ 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",
|
||||
"name", "gimp:levels",
|
||||
"categories", "color",
|
||||
"description", "GIMP Levels operation",
|
||||
NULL);
|
||||
|
||||
|
@ -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",
|
||||
"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
|
||||
|
@ -53,7 +53,7 @@ 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",
|
||||
"name", "gimp:multiply-mode",
|
||||
"description", "GIMP multiply mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -58,8 +58,8 @@ gimp_operation_normal_mode_class_init (GimpOperationNormalModeClass *klass)
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:normal-mode",
|
||||
"description" , "GIMP normal mode operation",
|
||||
"name", "gimp:normal-mode",
|
||||
"description", "GIMP normal mode operation",
|
||||
NULL);
|
||||
|
||||
|
||||
|
@ -53,12 +53,13 @@ gimp_operation_overlay_mode_class_init (GimpOperationOverlayModeClass *klass)
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:overlay-mode",
|
||||
"name", "gimp:overlay-mode",
|
||||
"description", "GIMP overlay mode operation",
|
||||
NULL);
|
||||
|
||||
point_class->process = gimp_operation_overlay_mode_process;
|
||||
operation_class->prepare = gimp_operation_overlay_mode_prepare;
|
||||
|
||||
point_class->process = gimp_operation_overlay_mode_process;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -112,9 +112,7 @@ gimp_operation_point_filter_set_property (GObject *object,
|
||||
static void
|
||||
gimp_operation_point_filter_prepare (GeglOperation *operation)
|
||||
{
|
||||
const Babl *format;
|
||||
|
||||
format = babl_format ("R'G'B'A float");
|
||||
const Babl *format = babl_format ("R'G'B'A float");
|
||||
|
||||
gegl_operation_set_format (operation, "input", format);
|
||||
gegl_operation_set_format (operation, "output", format);
|
||||
|
@ -57,8 +57,8 @@ gimp_operation_posterize_class_init (GimpOperationPosterizeClass *klass)
|
||||
object_class->get_property = gimp_operation_point_filter_get_property;
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:posterize",
|
||||
"categories" , "color",
|
||||
"name", "gimp:posterize",
|
||||
"categories", "color",
|
||||
"description", "GIMP Posterize operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ gimp_operation_replace_mode_class_init (GimpOperationReplaceModeClass *klass)
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:replace-mode",
|
||||
"name", "gimp:replace-mode",
|
||||
"description", "GIMP replace mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ gimp_operation_saturation_mode_class_init (GimpOperationSaturationModeClass *kla
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:saturation-mode",
|
||||
"name", "gimp:saturation-mode",
|
||||
"description", "GIMP saturation mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -53,7 +53,7 @@ gimp_operation_screen_mode_class_init (GimpOperationScreenModeClass *klass)
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:screen-mode",
|
||||
"name", "gimp:screen-mode",
|
||||
"description", "GIMP screen mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -70,9 +70,9 @@ gimp_operation_set_alpha_class_init (GimpOperationSetAlphaClass *klass)
|
||||
object_class->get_property = gimp_operation_set_alpha_get_property;
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:set-alpha",
|
||||
"categories" , "color",
|
||||
"description" , "Set a buffer's alpha channel to a value",
|
||||
"name", "gimp:set-alpha",
|
||||
"categories", "color",
|
||||
"description", "Set a buffer's alpha channel to a value",
|
||||
NULL);
|
||||
|
||||
operation_class->prepare = gimp_operation_set_alpha_prepare;
|
||||
|
@ -81,9 +81,9 @@ gimp_operation_shapeburst_class_init (GimpOperationShapeburstClass *klass)
|
||||
object_class->get_property = gimp_operation_shapeburst_get_property;
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:shapeburst",
|
||||
"categories" , "gimp",
|
||||
"description" , "GIMP Shapeburst operation",
|
||||
"name", "gimp:shapeburst",
|
||||
"categories", "gimp",
|
||||
"description", "GIMP Shapeburst operation",
|
||||
NULL);
|
||||
|
||||
operation_class->prepare = gimp_operation_shapeburst_prepare;
|
||||
|
@ -50,14 +50,15 @@ static void gimp_operation_shrink_set_property (GObject *object,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec);
|
||||
|
||||
static void gimp_operation_shrink_prepare (GeglOperation *operation);
|
||||
static GeglRectangle
|
||||
gimp_operation_shrink_get_required_for_output (GeglOperation *self,
|
||||
gimp_operation_shrink_get_required_for_output (GeglOperation *self,
|
||||
const gchar *input_pad,
|
||||
const GeglRectangle *roi);
|
||||
static GeglRectangle
|
||||
gimp_operation_shrink_get_cached_region (GeglOperation *self,
|
||||
const GeglRectangle *roi);
|
||||
static void gimp_operation_shrink_prepare (GeglOperation *operation);
|
||||
|
||||
static gboolean gimp_operation_shrink_process (GeglOperation *operation,
|
||||
GeglBuffer *input,
|
||||
GeglBuffer *output,
|
||||
@ -82,9 +83,9 @@ gimp_operation_shrink_class_init (GimpOperationShrinkClass *klass)
|
||||
object_class->get_property = gimp_operation_shrink_get_property;
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:shrink",
|
||||
"categories" , "gimp",
|
||||
"description" , "GIMP Shrink operation",
|
||||
"name", "gimp:shrink",
|
||||
"categories", "gimp",
|
||||
"description", "GIMP Shrink operation",
|
||||
NULL);
|
||||
|
||||
operation_class->prepare = gimp_operation_shrink_prepare;
|
||||
|
@ -53,12 +53,13 @@ gimp_operation_softlight_mode_class_init (GimpOperationSoftlightModeClass *klass
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:softlight-mode",
|
||||
"name", "gimp:softlight-mode",
|
||||
"description", "GIMP softlight mode operation",
|
||||
NULL);
|
||||
|
||||
point_class->process = gimp_operation_softlight_mode_process;
|
||||
operation_class->prepare = gimp_operation_softlight_mode_prepare;
|
||||
|
||||
point_class->process = gimp_operation_softlight_mode_process;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -51,7 +51,7 @@ gimp_operation_subtract_mode_class_init (GimpOperationSubtractModeClass *klass)
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:subtract-mode",
|
||||
"name", "gimp:subtract-mode",
|
||||
"description", "GIMP subtract mode operation",
|
||||
NULL);
|
||||
|
||||
|
@ -56,8 +56,8 @@ gimp_operation_threshold_class_init (GimpOperationThresholdClass *klass)
|
||||
object_class->get_property = gimp_operation_point_filter_get_property;
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:threshold",
|
||||
"categories" , "color",
|
||||
"name", "gimp:threshold",
|
||||
"categories", "color",
|
||||
"description", "GIMP Threshold operation",
|
||||
NULL);
|
||||
|
||||
|
@ -51,7 +51,7 @@ gimp_operation_value_mode_class_init (GimpOperationValueModeClass *klass)
|
||||
point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
|
||||
|
||||
gegl_operation_class_set_keys (operation_class,
|
||||
"name" , "gimp:value-mode",
|
||||
"name", "gimp:value-mode",
|
||||
"description", "GIMP value mode operation",
|
||||
NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user