noise-hsv: use gegl-.op.h

parent 6f042a75
......@@ -22,33 +22,32 @@
#include "config.h"
#include <glib/gi18n-lib.h>
#ifdef GEGL_CHANT_PROPERTIES
#ifdef GEGL_PROPERTIES
gegl_chant_int (holdness, _("Holdness"),
1, 8, 2,
_("Holdness"))
gegl_property_int (holdness, "nick", _("Holdness"),
"default", 2, "min", 1, "max", 8,
NULL)
gegl_chant_double (hue_distance, _("Hue"),
0.0, 180.0, 3.0,
_("Hue"))
gegl_property_double (hue_distance, "nick", _("Hue"),
"default", 3.0, "min", 0.0, "max", 180.0,
NULL)
gegl_chant_double (saturation_distance, _("Saturation"),
0.0, 1.0, 0.04,
_("Saturation"))
gegl_property_double (saturation_distance, "nick", _("Saturation"),
"default", 0.04, "min", 0.0, "max", 1.0,
NULL)
gegl_chant_double (value_distance, _("Value"),
0.0, 1.0, 0.04,
_("Value"))
gegl_property_double (value_distance, "nick", _("Value"),
"default", 0.04, "min", 0.0, "max", 1.0,
NULL)
gegl_chant_seed (seed, rand, _("Seed"),
_("Random seed"))
gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
#else
#define GEGL_CHANT_TYPE_POINT_FILTER
#define GEGL_CHANT_C_FILE "noise-hsv.c"
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "noise-hsv.c"
#include "gegl-chant.h"
#include "gegl-op.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
......@@ -115,7 +114,7 @@ process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglProperties *o = GEGL_PROPERTIES (operation);
GeglRectangle whole_region;
gint i;
gint x, y;
......@@ -183,7 +182,7 @@ process (GeglOperation *operation,
}
static void
gegl_chant_class_init (GeglChantClass *klass)
gegl_op_class_init (GeglOpClass *klass)
{
GeglOperationClass *operation_class;
GeglOperationPointFilterClass *point_filter_class;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment