[gegl] workshop: add GEGL_OP_NAME



commit c49bdca669c899cec6faee080c39c0f5d3f8d63a
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Sep 20 22:21:41 2016 +0200

    workshop: add GEGL_OP_NAME

 operations/workshop/color-warp.c              |    1 +
 operations/workshop/component-extract.c       |    1 +
 operations/workshop/demosaic-bimedian.c       |    1 +
 operations/workshop/demosaic-simple.c         |    1 +
 operations/workshop/ditto.c                   |    1 +
 operations/workshop/external/gluas.c          |    1 +
 operations/workshop/external/lens-correct.c   |    1 +
 operations/workshop/external/line-profile.c   |    1 +
 operations/workshop/external/v4l2.c           |    1 +
 operations/workshop/generated/average.c       |    1 +
 operations/workshop/generated/blend-reflect.c |    1 +
 operations/workshop/generated/blend.rb        |   13 +++++++------
 operations/workshop/generated/negation.c      |    1 +
 operations/workshop/generated/soft-burn.c     |    1 +
 operations/workshop/generated/soft-dodge.c    |    1 +
 operations/workshop/generated/subtractive.c   |    1 +
 operations/workshop/gradient-map.c            |    1 +
 operations/workshop/hstack.c                  |    1 +
 operations/workshop/ink-simulator.c           |    1 +
 operations/workshop/kuwahara.c                |    1 +
 operations/workshop/mandelbrot.c              |    1 +
 operations/workshop/median-blur.c             |    1 +
 operations/workshop/rawbayer-load.c           |    1 +
 operations/workshop/rgb-clip.c                |    1 +
 operations/workshop/unpremul.c                |    1 +
 operations/workshop/vhsfix.c                  |    1 +
 26 files changed, 32 insertions(+), 6 deletions(-)
---
diff --git a/operations/workshop/color-warp.c b/operations/workshop/color-warp.c
index 6c07949..5be1de5 100644
--- a/operations/workshop/color-warp.c
+++ b/operations/workshop/color-warp.c
@@ -61,6 +61,7 @@ property_double (amount, _("amount"), 1.0)
 #else
 
 #define GEGL_OP_POINT_FILTER
+#define GEGL_OP_NAME color_warp
 #define GEGL_OP_C_SOURCE color-warp.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/component-extract.c b/operations/workshop/component-extract.c
index 6de8c6f..adcef7a 100644
--- a/operations/workshop/component-extract.c
+++ b/operations/workshop/component-extract.c
@@ -57,6 +57,7 @@ property_boolean (linear, _("Linear output"), FALSE)
 #else
 
 #define GEGL_OP_POINT_FILTER
+#define GEGL_OP_NAME component_extract
 #define GEGL_OP_C_SOURCE  component-extract.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/demosaic-bimedian.c b/operations/workshop/demosaic-bimedian.c
index 6decc24..62fa3c3 100644
--- a/operations/workshop/demosaic-bimedian.c
+++ b/operations/workshop/demosaic-bimedian.c
@@ -30,6 +30,7 @@ property_int (pattern, _("Bayer pattern"), 0)
 #else
 
 #define GEGL_OP_AREA_FILTER
+#define GEGL_OP_NAME demosaic_bimedian
 #define GEGL_OP_C_SOURCE demosaic-bimedian.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/demosaic-simple.c b/operations/workshop/demosaic-simple.c
index d223a49..721903c 100644
--- a/operations/workshop/demosaic-simple.c
+++ b/operations/workshop/demosaic-simple.c
@@ -29,6 +29,7 @@ property_int (pattern, _("Bayer pattern"), 0)
 #else
 
 #define GEGL_OP_AREA_FILTER
+#define GEGL_OP_NAME demosaic_simple
 #define GEGL_OP_C_SOURCE demosaic-simple.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/ditto.c b/operations/workshop/ditto.c
index 72a23cb..a0fd1cb 100644
--- a/operations/workshop/ditto.c
+++ b/operations/workshop/ditto.c
@@ -31,6 +31,7 @@ property_enum (sampler_type, _("Sampler"), GeglSamplerType, gegl_sampler_type,
 #else
 
 #define GEGL_OP_AREA_FILTER
+#define GEGL_OP_NAME ditto
 #define GEGL_OP_C_SOURCE ditto.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/external/gluas.c b/operations/workshop/external/gluas.c
index de842b9..982b7c8 100644
--- a/operations/workshop/external/gluas.c
+++ b/operations/workshop/external/gluas.c
@@ -44,6 +44,7 @@ property_double (user_value, _("User value"), 1.0)
 #else
 
 #define GEGL_OP_COMPOSER
+#define GEGL_OP_NAME     gluas
 #define GEGL_OP_C_SOURCE gluas.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/external/lens-correct.c b/operations/workshop/external/lens-correct.c
index 41054de..ac8070a 100644
--- a/operations/workshop/external/lens-correct.c
+++ b/operations/workshop/external/lens-correct.c
@@ -94,6 +94,7 @@ property_double (alpha_d, _("Model alpha d"), 1.0)
 #else
 
 #define GEGL_OP_FILTER
+#define GEGL_OP_NAME     lens_correct
 #define GEGL_OP_C_SOURCE lens-correct.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/external/line-profile.c b/operations/workshop/external/line-profile.c
index 3bb39fc..0e4b7e6 100644
--- a/operations/workshop/external/line-profile.c
+++ b/operations/workshop/external/line-profile.c
@@ -52,6 +52,7 @@ property_double (max, _("Max"), 8.0)
 #else
 
 #define GEGL_OP_FILTER
+#define GEGL_OP_NAME     line_profile
 #define GEGL_OP_C_SOURCE line-profile.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/external/v4l2.c b/operations/workshop/external/v4l2.c
index d1874cb..3fcf1e9 100644
--- a/operations/workshop/external/v4l2.c
+++ b/operations/workshop/external/v4l2.c
@@ -35,6 +35,7 @@ property_int  (fps, _("FPS"),  0)
 #else
 
 #define GEGL_OP_SOURCE
+#define GEGL_OP_NAME     v4l2
 #define GEGL_OP_C_SOURCE v4l2.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/generated/average.c b/operations/workshop/generated/average.c
index 0fe7fc0..fc800b6 100644
--- a/operations/workshop/generated/average.c
+++ b/operations/workshop/generated/average.c
@@ -34,6 +34,7 @@
 #else
 
 #define GEGL_OP_POINT_COMPOSER
+#define GEGL_OP_NAME  average
 #define GEGL_OP_C_FILE          "average.c"
 
 #include "gegl-op.h"
diff --git a/operations/workshop/generated/blend-reflect.c b/operations/workshop/generated/blend-reflect.c
index 2680d33..ef8d535 100644
--- a/operations/workshop/generated/blend-reflect.c
+++ b/operations/workshop/generated/blend-reflect.c
@@ -34,6 +34,7 @@
 #else
 
 #define GEGL_OP_POINT_COMPOSER
+#define GEGL_OP_NAME  blend_reflect
 #define GEGL_OP_C_FILE          "blend-reflect.c"
 
 #include "gegl-op.h"
diff --git a/operations/workshop/generated/blend.rb b/operations/workshop/generated/blend.rb
index c417cc8..1348d02 100755
--- a/operations/workshop/generated/blend.rb
+++ b/operations/workshop/generated/blend.rb
@@ -27,22 +27,22 @@ copyright = '
  */'
 
 a = [
-      ['average',       '(cA + aB)/2'],
+      ['average',       '(cA + aB)/2', 'average'],
       #['screen',        '1.0 - ((1.0-cA) * (1.0-cB))'],
       #['darken',        'cA < cB ? cA : cB'],
       #['lighten',       'cA > cB ? cA : cB'],
       #['difference',    'fabs(cA-cB)'],
-      ['negation',      '1.0 - fabs(1.0-cA-cB)'],
+      ['negation',      '1.0 - fabs(1.0-cA-cB)', 'negation'],
       #['exclusion',     'cA + cB - 2*cA*cB'],
       #['overlay',       'cA<0.5?2*(cA*cB):1.0-2*(1.0-cA)*(1.0-cB)'],
       #['hard-light',    'cB<0.5?2*(cA*cB):1.0-2*(1.0-cA)*(1.0-cB)'],
       #['soft-light',    '2*cA*cB+cA*cA-2*cA*cA*cB'],
       #['color_dodge',   'cA / (1.0 - cB)'],
-      ['soft-dodge',    '(cA+cB<1.0)?0.5*cA / (1.0 - cB):1.0-0.5*(1.0 - cB)/cA'],
+      ['soft-dodge',    '(cA+cB<1.0)?0.5*cA / (1.0 - cB):1.0-0.5*(1.0 - cB)/cA', 'soft_dodge'],
       #['color_burn',    'cB<=0.0?0.0:1.0-(1.0-cA)/cB'],
-      ['soft-burn',     '(cA+cB<1.0)?0.5*cB / (1.0 - cA):1.0-0.5*(1.0 - cA) / cB'],
-      ['blend-reflect', 'cB>=1.0?1.0:cA*cA / (1.0-cB)'],
-      ['subtractive',   'cA+cB-1.0']
+      ['soft-burn',     '(cA+cB<1.0)?0.5*cB / (1.0 - cA):1.0-0.5*(1.0 - cA) / cB', 'soft_burn'],
+      ['blend-reflect', 'cB>=1.0?1.0:cA*cA / (1.0-cB)', 'blend_reflect'],
+      ['subtractive',   'cA+cB-1.0', 'subtractive']
     ]
 
 a.each do
@@ -72,6 +72,7 @@ a.each do
 #else
 
 #define GEGL_OP_POINT_COMPOSER
+#define GEGL_OP_NAME  #{item[2]}
 #define GEGL_OP_C_FILE          \"#{filename}\"
 
 #include \"gegl-op.h\"
diff --git a/operations/workshop/generated/negation.c b/operations/workshop/generated/negation.c
index bdb7f45..fcf245d 100644
--- a/operations/workshop/generated/negation.c
+++ b/operations/workshop/generated/negation.c
@@ -34,6 +34,7 @@
 #else
 
 #define GEGL_OP_POINT_COMPOSER
+#define GEGL_OP_NAME  negation
 #define GEGL_OP_C_FILE          "negation.c"
 
 #include "gegl-op.h"
diff --git a/operations/workshop/generated/soft-burn.c b/operations/workshop/generated/soft-burn.c
index 077484b..4a7b122 100644
--- a/operations/workshop/generated/soft-burn.c
+++ b/operations/workshop/generated/soft-burn.c
@@ -34,6 +34,7 @@
 #else
 
 #define GEGL_OP_POINT_COMPOSER
+#define GEGL_OP_NAME  soft_burn
 #define GEGL_OP_C_FILE          "soft-burn.c"
 
 #include "gegl-op.h"
diff --git a/operations/workshop/generated/soft-dodge.c b/operations/workshop/generated/soft-dodge.c
index 9bdbc03..e5ccfc9 100644
--- a/operations/workshop/generated/soft-dodge.c
+++ b/operations/workshop/generated/soft-dodge.c
@@ -34,6 +34,7 @@
 #else
 
 #define GEGL_OP_POINT_COMPOSER
+#define GEGL_OP_NAME  soft_dodge
 #define GEGL_OP_C_FILE          "soft-dodge.c"
 
 #include "gegl-op.h"
diff --git a/operations/workshop/generated/subtractive.c b/operations/workshop/generated/subtractive.c
index e051a6c..eace570 100644
--- a/operations/workshop/generated/subtractive.c
+++ b/operations/workshop/generated/subtractive.c
@@ -34,6 +34,7 @@
 #else
 
 #define GEGL_OP_POINT_COMPOSER
+#define GEGL_OP_NAME  subtractive
 #define GEGL_OP_C_FILE          "subtractive.c"
 
 #include "gegl-op.h"
diff --git a/operations/workshop/gradient-map.c b/operations/workshop/gradient-map.c
index cf5415c..6a27c41 100644
--- a/operations/workshop/gradient-map.c
+++ b/operations/workshop/gradient-map.c
@@ -37,6 +37,7 @@ property_boolean(srgb, _("sRGB"), FALSE)
 #else
 
 #define GEGL_OP_POINT_FILTER
+#define GEGL_OP_NAME gradient_map
 #define GEGL_OP_C_SOURCE gradient-map.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/hstack.c b/operations/workshop/hstack.c
index 55b077b..5b0c91a 100644
--- a/operations/workshop/hstack.c
+++ b/operations/workshop/hstack.c
@@ -27,6 +27,7 @@
 #else
 
 #define GEGL_OP_COMPOSER
+#define GEGL_OP_NAME hstack
 #define GEGL_OP_C_SOURCE hstack.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/ink-simulator.c b/operations/workshop/ink-simulator.c
index 8d560b7..a7e515b 100644
--- a/operations/workshop/ink-simulator.c
+++ b/operations/workshop/ink-simulator.c
@@ -67,6 +67,7 @@ property_int (debug_width, _("Debug width"), 0)
 #else
 
 #define GEGL_OP_POINT_FILTER
+#define GEGL_OP_NAME ink_simulator
 #define GEGL_OP_C_SOURCE ink-simulator.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/kuwahara.c b/operations/workshop/kuwahara.c
index 0cf88ec..25321c2 100644
--- a/operations/workshop/kuwahara.c
+++ b/operations/workshop/kuwahara.c
@@ -29,6 +29,7 @@ property_double (radius, _("Radius"), 10.0)
 #else
 
 #define GEGL_OP_AREA_FILTER
+#define GEGL_OP_NAME kuwahara
 #define GEGL_OP_C_SOURCE kuwahara.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/mandelbrot.c b/operations/workshop/mandelbrot.c
index 78fc3d3..ef606bf 100644
--- a/operations/workshop/mandelbrot.c
+++ b/operations/workshop/mandelbrot.c
@@ -35,6 +35,7 @@ property_int (maxiter, _("Iterations"), 128)
 #else
 
 #define GEGL_OP_SOURCE
+#define GEGL_OP_NAME mandelbrot
 #define GEGL_OP_C_SOURCE mandelbrot.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/median-blur.c b/operations/workshop/median-blur.c
index 8459d79..12592bb 100644
--- a/operations/workshop/median-blur.c
+++ b/operations/workshop/median-blur.c
@@ -30,6 +30,7 @@ property_int  (radius, _("Radius"), 3)
 #else
 
 #define GEGL_OP_AREA_FILTER
+#define GEGL_OP_NAME         median_blur
 #define GEGL_OP_C_SOURCE     median-blur.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/rawbayer-load.c b/operations/workshop/rawbayer-load.c
index 9014df1..075e717 100644
--- a/operations/workshop/rawbayer-load.c
+++ b/operations/workshop/rawbayer-load.c
@@ -28,6 +28,7 @@ property_string (path, _("File"), "/tmp/test.raw")
 #else
 
 #define GEGL_OP_SOURCE
+#define GEGL_OP_NAME     rawbayer_load
 #define GEGL_OP_C_SOURCE rawbayer-load.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/rgb-clip.c b/operations/workshop/rgb-clip.c
index 418c09c..65af346 100644
--- a/operations/workshop/rgb-clip.c
+++ b/operations/workshop/rgb-clip.c
@@ -41,6 +41,7 @@ property_double (high_limit, _("High limit"), 1.0)
 #else
 
 #define GEGL_OP_POINT_FILTER
+#define GEGL_OP_NAME     rgb_clip
 #define GEGL_OP_C_SOURCE rgb-clip.c
 
 #include "gegl-op.h"
diff --git a/operations/workshop/unpremul.c b/operations/workshop/unpremul.c
index 3a9e950..a242b9a 100644
--- a/operations/workshop/unpremul.c
+++ b/operations/workshop/unpremul.c
@@ -25,6 +25,7 @@
 #else
 
 #define GEGL_OP_POINT_FILTER
+#define GEGL_OP_NAME     unpremul
 #define GEGL_OP_C_SOURCE unpremul.c
 #define GEGLV4
 
diff --git a/operations/workshop/vhsfix.c b/operations/workshop/vhsfix.c
index 8e274d8..ca8ae10 100644
--- a/operations/workshop/vhsfix.c
+++ b/operations/workshop/vhsfix.c
@@ -29,6 +29,7 @@ property_double (dampness, _("Dampness"), 0.95)
 
 #define GEGL_OP_FILTER
 #define GEGL_OP_NO_SOURCE
+#define GEGL_OP_NAME     vhsfix
 #define GEGL_OP_C_SOURCE vhsfix.c
 
 #include "gegl-op.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]