Commit fdaed5ae authored by Jon Nordby's avatar Jon Nordby

operations/workshop: Include source code as metadata

sed -i -e 's/^.*\"\(.*\.c\)\".*$/#define GEGL_OP_C_SOURCE \1/' operations/workshop/*.c
sed -i -e 's/^.*\"\(.*\.c\)\".*$/#define GEGL_OP_C_SOURCE \1/' operations/workshop/external/*.c
parent 5079168e
......@@ -29,7 +29,7 @@ property_double (radius, _("Radius"), 4.0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "box-max.c"
#define GEGL_OP_C_SOURCE box-max.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -29,7 +29,7 @@ property_double (radius, _("Radius"), 4.0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "box-min.c"
#define GEGL_OP_C_SOURCE box-min.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -37,7 +37,7 @@ property_double (percentile, _("Percentile"), 50.0)
#define MAX_SAMPLES 20000 /* adapted to max level of radius */
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "box-percentile.c"
#define GEGL_OP_C_SOURCE box-percentile.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -28,7 +28,7 @@ property_pointer (buffer, _("Cache buffer"),
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "buffer-cache.c"
#define GEGL_OP_C_SOURCE buffer-cache.c
#include "gegl-op.h"
......
......@@ -61,7 +61,7 @@ property_double (amount, _("amount"), 1.0)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "color-warp.c"
#define GEGL_OP_C_SOURCE color-warp.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -30,7 +30,7 @@ property_int (pattern, _("Bayer pattern"), 0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "demosaic-bimedian.c"
#define GEGL_OP_C_SOURCE demosaic-bimedian.c
#include "gegl-op.h"
......
......@@ -29,7 +29,7 @@ property_int (pattern, _("Bayer pattern"), 0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "demosaic-simple.c"
#define GEGL_OP_C_SOURCE demosaic-simple.c
#include "gegl-op.h"
......
......@@ -35,7 +35,7 @@ property_double (percentile, _("Percentile"), 50.0)
#define MAX_SAMPLES 20000 /* adapted to max level of radius */
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "disc-percentile.c"
#define GEGL_OP_C_SOURCE disc-percentile.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -31,7 +31,7 @@ property_enum (sampler_type, _("Sampler"), GeglSamplerType, gegl_sampler_type,
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "ditto.c"
#define GEGL_OP_C_SOURCE ditto.c
#include "gegl-op.h"
#include <stdio.h>
......
......@@ -39,7 +39,7 @@ property_double (fps, _("Frames/second"), 25)
#else
#define GEGL_OP_SINK
#define GEGL_OP_C_FILE "ff-save.c"
#define GEGL_OP_C_SOURCE ff-save.c
#include "gegl-op.h"
......
......@@ -52,7 +52,7 @@ property_double (user_value, _("User value"), 1.0)
#else
#define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "gluas.c"
#define GEGL_OP_C_SOURCE gluas.c
#include "gegl-op.h"
#include <lua.h>
......
......@@ -94,7 +94,7 @@ property_double (alpha_d, _("Model alpha d"), 1.0)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "lens-correct.c"
#define GEGL_OP_C_SOURCE lens-correct.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -52,7 +52,7 @@ property_double (max, _("Max"), 8.0)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "line-profile.c"
#define GEGL_OP_C_SOURCE line-profile.c
#include "gegl-op.h"
#include <cairo.h>
......
......@@ -35,7 +35,7 @@ property_int (fps, _("FPS"), 0)
#else
#define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "v4l2.c"
#define GEGL_OP_C_SOURCE v4l2.c
#include "gegl-op.h"
......
......@@ -62,7 +62,7 @@ property_boolean (clip_extent, _("Clip to the input extent"), TRUE)
#else
#define GEGL_OP_META
#define GEGL_OP_C_FILE "gaussian-blur-iir.c"
#define GEGL_OP_C_SOURCE gaussian-blur-iir.c
#include "gegl-op.h"
......
......@@ -66,7 +66,7 @@ property_boolean (clip_extent, _("Clip to the input extent"), TRUE)
#else
#define GEGL_OP_FILTER
#define GEGL_OP_C_FILE "gblur-1d.c"
#define GEGL_OP_C_SOURCE gblur-1d.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -37,7 +37,7 @@ property_boolean(srgb, _("sRGB"), FALSE)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "gradient-map.c"
#define GEGL_OP_C_SOURCE gradient-map.c
#include "gegl-op.h"
......
......@@ -27,7 +27,7 @@
#else
#define GEGL_OP_COMPOSER
#define GEGL_OP_C_FILE "hstack.c"
#define GEGL_OP_C_SOURCE hstack.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -66,7 +66,7 @@ property_int (debug_width, _("Debug width"), 0)
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "ink-simulator.c"
#define GEGL_OP_C_SOURCE ink-simulator.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -29,7 +29,7 @@ property_double (radius, _("Radius"), 10.0)
#else
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "kuwahara.c"
#define GEGL_OP_C_SOURCE kuwahara.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -35,7 +35,7 @@ property_int (maxiter, _("Iterations"), 128)
#else
#define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "mandelbrot.c"
#define GEGL_OP_C_SOURCE mandelbrot.c
#include "gegl-op.h"
......
......@@ -28,7 +28,7 @@ property_string (path, _("File"), "/tmp/test.raw")
#else
#define GEGL_OP_SOURCE
#define GEGL_OP_C_FILE "rawbayer-load.c"
#define GEGL_OP_C_SOURCE rawbayer-load.c
#include "gegl-op.h"
#include <unistd.h>
......
......@@ -41,7 +41,7 @@ property_double (percentile, _("Percentile"), 50.0)
#define MAX_SAMPLES 20000 /* adapted to percentile level of radius */
#define GEGL_OP_AREA_FILTER
#define GEGL_OP_C_FILE "snn-percentile.c"
#define GEGL_OP_C_SOURCE snn-percentile.c
#include "gegl-op.h"
#include <math.h>
......
......@@ -23,7 +23,7 @@
#else
#define GEGL_OP_POINT_FILTER
#define GEGL_OP_C_FILE "unpremul.c"
#define GEGL_OP_C_SOURCE unpremul.c
#define GEGLV4
#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