workshop: add GEGL_OP_NAME

parent 12c58f4e
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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\"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -25,6 +25,7 @@
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_NAME unpremul
#define GEGL_OP_C_SOURCE unpremul.c
#define GEGLV4
......
......@@ -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"
......
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