[gegl] operations: add position-dependent key to many ops
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: add position-dependent key to many ops
- Date: Sat, 24 May 2014 01:08:28 +0000 (UTC)
commit f446a66f23dc16f8bfca74ccda61d301ba6dbf45
Author: Øyvind Kolås <pippin gimp org>
Date: Sat May 24 03:04:39 2014 +0200
operations: add position-dependent key to many ops
operations/common/checkerboard.c | 7 ++++---
operations/common/deinterlace.c | 5 +++--
operations/common/fractal-explorer.c | 5 +++--
operations/common/fractal-trace.c | 5 +++--
operations/common/grid.c | 8 +++++---
operations/common/lens-distortion.c | 7 ++++---
operations/common/linear-gradient.c | 5 +++--
operations/common/map-absolute.c | 5 +++--
operations/common/mirrors.c | 8 ++++----
operations/common/motion-blur-circular.c | 9 +++++----
operations/common/motion-blur-zoom.c | 9 +++++----
operations/common/noise-cell.c | 5 +++--
operations/common/noise-perlin.c | 5 +++--
operations/common/noise-simplex.c | 5 +++--
operations/common/panorama-projection.c | 6 ++++--
operations/common/pixelize.c | 5 +++--
operations/common/plasma.c | 5 +++--
operations/common/polar-coordinates.c | 5 +++--
operations/common/rectangle.c | 5 +++--
operations/common/ripple.c | 5 +++--
operations/common/texturize-canvas.c | 7 ++++---
operations/common/tile-glass.c | 7 ++++---
operations/common/tile-seamless.c | 5 +++--
operations/common/tile.c | 13 +++++++------
operations/common/vignette.c | 5 +++--
operations/common/warp.c | 5 +++--
operations/common/waves.c | 5 +++--
operations/common/whirl-pinch.c | 5 +++--
28 files changed, 100 insertions(+), 71 deletions(-)
---
diff --git a/operations/common/checkerboard.c b/operations/common/checkerboard.c
index 5afb548..db2c764 100644
--- a/operations/common/checkerboard.c
+++ b/operations/common/checkerboard.c
@@ -333,9 +333,10 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = prepare;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:checkerboard",
- "categories", "render",
- "description", _("Create a checkerboard pattern"),
+ "name", "gegl:checkerboard",
+ "categories", "render",
+ "position-dependent", "true",
+ "description", _("Create a checkerboard pattern"),
NULL);
}
diff --git a/operations/common/deinterlace.c b/operations/common/deinterlace.c
index 01643f5..550bcfc 100644
--- a/operations/common/deinterlace.c
+++ b/operations/common/deinterlace.c
@@ -332,8 +332,9 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:deinterlace",
- "categories", "enhance",
+ "name", "gegl:deinterlace",
+ "categories", "enhance",
+ "position-dependent", "true",
"description", _("Fix images where every other row or column is missing"),
NULL);
}
diff --git a/operations/common/fractal-explorer.c b/operations/common/fractal-explorer.c
index a2f551b..ff03098 100644
--- a/operations/common/fractal-explorer.c
+++ b/operations/common/fractal-explorer.c
@@ -415,8 +415,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = prepare;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:fractal-explorer",
- "categories" , "render",
+ "name" , "gegl:fractal-explorer",
+ "categories" , "render",
+ "position-dependent", "true",
"description", _("Fractal Explorer"),
NULL);
}
diff --git a/operations/common/fractal-trace.c b/operations/common/fractal-trace.c
index c20b5f8..87e690c 100644
--- a/operations/common/fractal-trace.c
+++ b/operations/common/fractal-trace.c
@@ -252,8 +252,9 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:fractal-trace",
- "categories", "map",
+ "name", "gegl:fractal-trace",
+ "position-dependent", "true",
+ "categories", "map",
"description", _("Transform the image with the fractals"),
NULL);
}
diff --git a/operations/common/grid.c b/operations/common/grid.c
index a8afaf6..3e05ab8 100644
--- a/operations/common/grid.c
+++ b/operations/common/grid.c
@@ -152,9 +152,11 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->prepare = prepare;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:grid",
- "categories" , "render",
- "description", _("Grid renderer"),
+ "name", "gegl:grid",
+ "position-dependent", "true",
+ "categories" , "render",
+ "description", _("Grid renderer"),
+ "position-dependent", "true",
NULL);
}
diff --git a/operations/common/lens-distortion.c b/operations/common/lens-distortion.c
index 74a11fd..bae3452 100644
--- a/operations/common/lens-distortion.c
+++ b/operations/common/lens-distortion.c
@@ -494,10 +494,11 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:lens-distortion",
- "categories", "blur",
- "description", _("Corrects barrel or pincushion lens distortion."),
+ "name", "gegl:lens-distortion",
+ "categories", "blur",
+ "position-dependent", "true",
"reference-composition", composition,
+ "description", _("Corrects barrel or pincushion lens distortion."),
NULL);
}
diff --git a/operations/common/linear-gradient.c b/operations/common/linear-gradient.c
index 4e7ef4e..f8b9203 100644
--- a/operations/common/linear-gradient.c
+++ b/operations/common/linear-gradient.c
@@ -134,8 +134,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->no_cache = TRUE;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:linear-gradient",
- "categories" , "render",
+ "name", "gegl:linear-gradient",
+ "categories", "render",
+ "position-dependent", "true",
"description" , _("Linear gradient renderer"),
NULL);
}
diff --git a/operations/common/map-absolute.c b/operations/common/map-absolute.c
index 7d4ff13..d2d0207 100644
--- a/operations/common/map-absolute.c
+++ b/operations/common/map-absolute.c
@@ -144,8 +144,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_required_for_output = get_required_for_output;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:map-absolute",
- "categories" , "transform",
+ "name" , "gegl:map-absolute",
+ "categories" , "transform",
+ "position-dependent", "true",
"description", _("sample input with an auxiliary buffer that contain absolute source coordinates"),
NULL);
}
diff --git a/operations/common/mirrors.c b/operations/common/mirrors.c
index ae78f6d..90780e2 100644
--- a/operations/common/mirrors.c
+++ b/operations/common/mirrors.c
@@ -424,10 +424,10 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_required_for_output = get_required_for_output;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:mirrors",
- "categories" , "blur",
- "description",
- _("Applies mirroring effect on the image."),
+ "name", "gegl:mirrors",
+ "position-dependent", "true",
+ "categories", "blur",
+ "description", _("Applies mirroring effect on the image."),
NULL);
}
diff --git a/operations/common/motion-blur-circular.c b/operations/common/motion-blur-circular.c
index b969429..56d4d01 100644
--- a/operations/common/motion-blur-circular.c
+++ b/operations/common/motion-blur-circular.c
@@ -292,10 +292,11 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:motion-blur-circular",
- "categories", "blur",
- "description", _("Circular motion blur"),
- NULL);
+ "name", "gegl:motion-blur-circular",
+ "categories", "blur",
+ "position-dependent", "true",
+ "description", _("Circular motion blur"),
+ NULL);
}
#endif
diff --git a/operations/common/motion-blur-zoom.c b/operations/common/motion-blur-zoom.c
index 121f862..caad0f1 100644
--- a/operations/common/motion-blur-zoom.c
+++ b/operations/common/motion-blur-zoom.c
@@ -237,10 +237,11 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:motion-blur-zoom",
- "categories", "blur",
- "description", _("Zoom motion blur"),
- NULL);
+ "name", "gegl:motion-blur-zoom",
+ "categories", "blur",
+ "position-dependent", "true",
+ "description", _("Zoom motion blur"),
+ NULL);
}
#endif
diff --git a/operations/common/noise-cell.c b/operations/common/noise-cell.c
index 8da96b5..fb9648a 100644
--- a/operations/common/noise-cell.c
+++ b/operations/common/noise-cell.c
@@ -418,8 +418,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->opencl_support = TRUE;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:cell-noise",
- "categories" , "render",
+ "name", "gegl:cell-noise",
+ "categories", "render",
+ "position-dependent", "true",
"description", _("Generates a cellular texture."),
NULL);
}
diff --git a/operations/common/noise-perlin.c b/operations/common/noise-perlin.c
index 0525e1f..6551918 100644
--- a/operations/common/noise-perlin.c
+++ b/operations/common/noise-perlin.c
@@ -110,8 +110,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_cached_region = NULL;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:perlin-noise",
- "categories" , "render",
+ "name", "gegl:perlin-noise",
+ "categories", "render",
+ "position-dependent", "true",
"description", _("Perlin noise generator"),
NULL);
diff --git a/operations/common/noise-simplex.c b/operations/common/noise-simplex.c
index 7e8fb68..3151514 100644
--- a/operations/common/noise-simplex.c
+++ b/operations/common/noise-simplex.c
@@ -320,8 +320,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->opencl_support = TRUE;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:simplex-noise",
- "categories" , "render",
+ "name", "gegl:simplex-noise",
+ "categories", "render",
+ "position-dependent", "true",
"description", _("Generates a solid noise texture."),
NULL);
}
diff --git a/operations/common/panorama-projection.c b/operations/common/panorama-projection.c
index e2c1773..6ea2d87 100644
--- a/operations/common/panorama-projection.c
+++ b/operations/common/panorama-projection.c
@@ -509,8 +509,10 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_required_for_output = get_required_for_output;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:panorama-projection",
- "categories" , "misc",
+ "name", "gegl:panorama-projection",
+ "reference-composition", composition,
+ "position-dependent", "true",
+ "categories" , "misc",
"description", _("Perform a equlinear/gnomonic or little planet/stereographic projection of a
equirectangular input image."),
NULL);
}
diff --git a/operations/common/pixelize.c b/operations/common/pixelize.c
index 25650d1..e2ba1a5 100644
--- a/operations/common/pixelize.c
+++ b/operations/common/pixelize.c
@@ -649,8 +649,9 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:pixelize",
- "categories", "blur",
+ "name", "gegl:pixelize",
+ "categories", "blur",
+ "position-dependent", "true",
"description", _("Simplify image into an array of solid-colored rectangles"),
NULL);
}
diff --git a/operations/common/plasma.c b/operations/common/plasma.c
index 43b2ce8..fe80713 100644
--- a/operations/common/plasma.c
+++ b/operations/common/plasma.c
@@ -416,8 +416,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_cached_region = get_cached_region;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:plasma",
- "categories" , "render",
+ "name", "gegl:plasma",
+ "categories", "render",
+ "position-dependent", "true",
"description", _("Creates an image filled with a plasma effect."),
NULL);
}
diff --git a/operations/common/polar-coordinates.c b/operations/common/polar-coordinates.c
index 263dbca..1d292a4 100644
--- a/operations/common/polar-coordinates.c
+++ b/operations/common/polar-coordinates.c
@@ -416,8 +416,9 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:polar-coordinates",
- "categories", "enhance",
+ "name", "gegl:polar-coordinates",
+ "categories", "enhance",
+ "position-dependent", "true",
"description", _("Convert image to or from polar coordinates"),
NULL);
}
diff --git a/operations/common/rectangle.c b/operations/common/rectangle.c
index 419bb7e..723ae1d 100644
--- a/operations/common/rectangle.c
+++ b/operations/common/rectangle.c
@@ -84,8 +84,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->attach = attach;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:rectangle",
- "categories" , "input",
+ "name", "gegl:rectangle",
+ "categories", "input",
+ "position-dependent", "true",
"description",
_("A rectangular source of a fixed size with a solid color"),
NULL);
diff --git a/operations/common/ripple.c b/operations/common/ripple.c
index 7ac42de..6ca1709 100644
--- a/operations/common/ripple.c
+++ b/operations/common/ripple.c
@@ -165,8 +165,9 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:ripple",
- "categories", "distort",
+ "name", "gegl:ripple",
+ "categories", "distort",
+ "position-dependent", "true",
"description", _("Displace pixels in a ripple pattern"),
NULL);
}
diff --git a/operations/common/texturize-canvas.c b/operations/common/texturize-canvas.c
index b0d7395..3093b84 100644
--- a/operations/common/texturize-canvas.c
+++ b/operations/common/texturize-canvas.c
@@ -4371,9 +4371,10 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->opencl_support = TRUE;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:texturize-canvas",
- "categories" , "artistic",
- "license" , "GPL3+",
+ "name", "gegl:texturize-canvas",
+ "categories", "artistic",
+ "license", "GPL3+",
+ "position-dependent", "true",
"description",_("Textures the image as if it were an artist's canvas."),
NULL);
}
diff --git a/operations/common/tile-glass.c b/operations/common/tile-glass.c
index a053ef9..7386b1e 100644
--- a/operations/common/tile-glass.c
+++ b/operations/common/tile-glass.c
@@ -229,9 +229,10 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "categories", "artistic",
- "license", "GPL3+",
- "name", "gegl:tile-glass",
+ "categories", "artistic",
+ "license", "GPL3+",
+ "name", "gegl:tile-glass",
+ "position-dependent", "true",
"description", _("Simulate distortion caused by rectangular glass tiles"),
NULL);
}
diff --git a/operations/common/tile-seamless.c b/operations/common/tile-seamless.c
index 1b1f821..a077df1 100644
--- a/operations/common/tile-seamless.c
+++ b/operations/common/tile-seamless.c
@@ -160,8 +160,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_cached_region = get_cached_region;
gegl_operation_class_set_keys (operation_class,
- "name" , "gegl:tile-seamless",
- "categories" , "misc",
+ "name" , "gegl:tile-seamless",
+ "categories" , "misc",
+ "position-dependent", "true",
"description", _("Make the input buffer seamlessly tileable."
" The algorithm is not content-aware,"
" so the result may need post-processing."),
diff --git a/operations/common/tile.c b/operations/common/tile.c
index 1368e1d..ad3fcff 100644
--- a/operations/common/tile.c
+++ b/operations/common/tile.c
@@ -129,11 +129,12 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_invalidated_by_change = get_invalidated_by_change;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:tile",
- "categories", "misc",
- "description",
- _("Infinitely repeats the input image."),
- "reference-composition", composition,
- NULL);
+ "name", "gegl:tile",
+ "categories", "misc",
+ "position-dependent", "true",
+ "reference-composition", composition,
+ "description",
+ _("Infinitely repeats the input image."),
+ NULL);
}
#endif
diff --git a/operations/common/vignette.c b/operations/common/vignette.c
index 100d5e0..36a961e 100644
--- a/operations/common/vignette.c
+++ b/operations/common/vignette.c
@@ -376,8 +376,9 @@ gegl_op_class_init (GeglOpClass *klass)
point_filter_class->cl_process = cl_process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:vignette",
- "categories", "render",
+ "name", "gegl:vignette",
+ "position-dependent", "true",
+ "categories", "render",
"description", _("Applies a vignette to an image. Simulates the luminance "
"fall off at the edge of exposed film, and some other "
"fuzzier border effects that can naturally occur with "
diff --git a/operations/common/warp.c b/operations/common/warp.c
index b2c1a85..c01c861 100644
--- a/operations/common/warp.c
+++ b/operations/common/warp.c
@@ -406,8 +406,9 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:warp",
- "categories", "transform",
+ "name", "gegl:warp",
+ "categories", "transform",
+ "position-dependent", "true",
"description", _("Compute a relative displacement mapping from a stroke"),
NULL);
}
diff --git a/operations/common/waves.c b/operations/common/waves.c
index 6ad71b7..b441390 100644
--- a/operations/common/waves.c
+++ b/operations/common/waves.c
@@ -175,8 +175,9 @@ gegl_op_class_init (GeglOpClass *klass)
filter_class->process = process;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:waves",
- "categories", "distort",
+ "name", "gegl:waves",
+ "categories", "distort",
+ "position-dependent", "true",
"description", _("Distort the image with waves"),
NULL);
}
diff --git a/operations/common/whirl-pinch.c b/operations/common/whirl-pinch.c
index 3eea887..09f2934 100644
--- a/operations/common/whirl-pinch.c
+++ b/operations/common/whirl-pinch.c
@@ -268,8 +268,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_required_for_output = get_required_for_output;
gegl_operation_class_set_keys (operation_class,
- "name", "gegl:whirl-pinch",
- "categories", "distort",
+ "name", "gegl:whirl-pinch",
+ "categories", "distort",
+ "position-dependent", "true",
"description", _("Distort an image by whirling and pinching"),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]