Commit a88a0680 authored by Øyvind Kolås's avatar Øyvind Kolås

namespaced the chanting by performing a recursive %s/CHANT_/GEGL_CHANT_/g %s/chant_/gegl_chant_/g

parent a1f8e76c
2006-09-02 Øyvind Kolås <pippin@gimp.org>
Namespaced the chanting by performing a recursive
%s/CHANT_/GEGL_CHANT_/g %s/chant_/gegl_chant_/g
* gegl/gegl-chant.h:
* operations/blur/box-blur.c: (evaluate), (calc_have_rect),
(calc_need_rect):
* operations/blur/gaussian-blur.c: (evaluate), (calc_have_rect),
(calc_need_rect):
* operations/color/brightness-contrast.c: (evaluate):
* operations/color/invert.c:
* operations/color/stretch-contrast.c:
* operations/color/threshold.c: (evaluate):
* operations/core/clone.c:
* operations/core/crop.c: (evaluate):
* operations/core/nop.c:
* operations/core/shift.c:
* operations/display/display.c: (evaluate):
* operations/file-io/jpg-load.c: (evaluate), (calc_have_rect):
* operations/file-io/load.c: (prepare), (associate):
* operations/file-io/magick-load.c: (evaluate), (calc_have_rect),
(dispose):
* operations/file-io/png-load.c: (evaluate), (calc_have_rect):
* operations/file-io/png-save.c: (evaluate):
* operations/file-io/raw-load.c: (evaluate), (calc_have_rect),
(dispose):
* operations/generated/math.rb:
* operations/generated/porter-duff.rb:
* operations/generated/svg-blend.rb:
* operations/meta/dropshadow.c: (prepare), (associate):
* operations/meta/layer.c: (prepare), (associate):
* operations/meta/unsharp-mask.c: (associate), (prepare):
* operations/render/blank.c:
* operations/render/checkerboard.c: (evaluate):
* operations/render/noise.c: (evaluate):
* operations/render/text.c: (evaluate), (calc_have_rect),
(dispose):
* operations/transform/chant.h:
* operations/transform/rotate.c:
* operations/transform/scale.c:
* operations/transform/shear.c:
* operations/transform/translate.c:
* operations/transparency/opacity.c: (evaluate):
2006-09-02 Øyvind Kolås <pippin@gimp.org> 2006-09-02 Øyvind Kolås <pippin@gimp.org>
* gegl/gegl-extension-handler.c: (gegl_extension_handler_register): * gegl/gegl-extension-handler.c: (gegl_extension_handler_register):
......
This diff is collapsed.
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_double (radius, 0.0, 200.0, 4.0, "radius of square pixel region, (width and height will be radius*2+1.") gegl_chant_double (radius, 0.0, 200.0, 4.0, "radius of square pixel region, (width and height will be radius*2+1.")
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME box_blur #define GEGL_CHANT_NAME box_blur
#define CHANT_DESCRIPTION "Performs an averaging of a square box of pixels." #define GEGL_CHANT_DESCRIPTION "Performs an averaging of a square box of pixels."
#define CHANT_SELF "box-blur.c" #define GEGL_CHANT_SELF "box-blur.c"
#define CHANT_CATEGORIES "blur" #define GEGL_CHANT_CATEGORIES "blur"
#define CHANT_CLASS_CONSTRUCT #define GEGL_CHANT_CLASS_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
static void static void
...@@ -53,7 +53,7 @@ evaluate (GeglOperation *operation, ...@@ -53,7 +53,7 @@ evaluate (GeglOperation *operation,
ChantInstance *self; ChantInstance *self;
filter = GEGL_OPERATION_FILTER (operation); filter = GEGL_OPERATION_FILTER (operation);
self = CHANT_INSTANCE (operation); self = GEGL_CHANT_INSTANCE (operation);
GeglBuffer *input = filter->input; GeglBuffer *input = filter->input;
GeglBuffer *output; GeglBuffer *output;
...@@ -225,7 +225,7 @@ static gboolean ...@@ -225,7 +225,7 @@ static gboolean
calc_have_rect (GeglOperation *operation) calc_have_rect (GeglOperation *operation)
{ {
GeglRect *in_rect = gegl_operation_get_have_rect (operation, "input"); GeglRect *in_rect = gegl_operation_get_have_rect (operation, "input");
ChantInstance *blur = CHANT_INSTANCE (operation); ChantInstance *blur = GEGL_CHANT_INSTANCE (operation);
gint radius = ceil(blur->radius); gint radius = ceil(blur->radius);
if (!in_rect) if (!in_rect)
return FALSE; return FALSE;
...@@ -240,7 +240,7 @@ calc_have_rect (GeglOperation *operation) ...@@ -240,7 +240,7 @@ calc_have_rect (GeglOperation *operation)
static gboolean static gboolean
calc_need_rect (GeglOperation *self) calc_need_rect (GeglOperation *self)
{ {
ChantInstance *blur = CHANT_INSTANCE (self); ChantInstance *blur = GEGL_CHANT_INSTANCE (self);
GeglRect *need = gegl_operation_need_rect (self); GeglRect *need = gegl_operation_need_rect (self);
gint radius = ceil(blur->radius); gint radius = ceil(blur->radius);
......
...@@ -20,19 +20,19 @@ ...@@ -20,19 +20,19 @@
* in "Signal Processing 44 (1995) 139 - 151" * in "Signal Processing 44 (1995) 139 - 151"
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_double (radius_x, -0.91675, 500.0, 4.0, "blur radius in horizontal direction.") gegl_chant_double (radius_x, -0.91675, 500.0, 4.0, "blur radius in horizontal direction.")
chant_double (radius_y, -0.91675, 500.0, 4.0, "blur radius in vertical direction.") gegl_chant_double (radius_y, -0.91675, 500.0, 4.0, "blur radius in vertical direction.")
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME gaussian_blur #define GEGL_CHANT_NAME gaussian_blur
#define CHANT_DESCRIPTION "Performs an averaging of neighbouring pixels with the normal distribution as weighting." #define GEGL_CHANT_DESCRIPTION "Performs an averaging of neighbouring pixels with the normal distribution as weighting."
#define CHANT_SELF "gaussian-blur.c" #define GEGL_CHANT_SELF "gaussian-blur.c"
#define CHANT_CATEGORIES "blur" #define GEGL_CHANT_CATEGORIES "blur"
#define CHANT_CLASS_CONSTRUCT #define GEGL_CHANT_CLASS_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
#include <math.h> #include <math.h>
...@@ -68,7 +68,7 @@ evaluate (GeglOperation *operation, ...@@ -68,7 +68,7 @@ evaluate (GeglOperation *operation,
ChantInstance *self; ChantInstance *self;
filter = GEGL_OPERATION_FILTER (operation); filter = GEGL_OPERATION_FILTER (operation);
self = CHANT_INSTANCE (operation); self = GEGL_CHANT_INSTANCE (operation);
GeglBuffer *input = filter->input; GeglBuffer *input = filter->input;
GeglBuffer *output; GeglBuffer *output;
...@@ -289,7 +289,7 @@ static gboolean ...@@ -289,7 +289,7 @@ static gboolean
calc_have_rect (GeglOperation *operation) calc_have_rect (GeglOperation *operation)
{ {
GeglRect *in_rect = gegl_operation_get_have_rect (operation, "input"); GeglRect *in_rect = gegl_operation_get_have_rect (operation, "input");
ChantInstance* self = CHANT_INSTANCE(operation); ChantInstance* self = GEGL_CHANT_INSTANCE(operation);
gint radius_x = ceil(self->radius_x+0.5); gint radius_x = ceil(self->radius_x+0.5);
gint radius_y = ceil(self->radius_y+0.5); gint radius_y = ceil(self->radius_y+0.5);
if(!in_rect) if(!in_rect)
...@@ -306,7 +306,7 @@ static gboolean ...@@ -306,7 +306,7 @@ static gboolean
calc_need_rect (GeglOperation *self) calc_need_rect (GeglOperation *self)
{ {
GeglRect *need = gegl_operation_need_rect (self); GeglRect *need = gegl_operation_need_rect (self);
ChantInstance *blur = CHANT_INSTANCE(self); ChantInstance *blur = GEGL_CHANT_INSTANCE(self);
gint radius_x = ceil(blur->radius_x+0.5); gint radius_x = ceil(blur->radius_x+0.5);
gint radius_y = ceil(blur->radius_y+0.5); gint radius_y = ceil(blur->radius_y+0.5);
......
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_double (contrast, -100.0, 100.0, 1.0, "Range scale factor") gegl_chant_double (contrast, -100.0, 100.0, 1.0, "Range scale factor")
chant_double (brightness, -10.0, 10.0, 0.0, "Amount to increase brightness") gegl_chant_double (brightness, -10.0, 10.0, 0.0, "Amount to increase brightness")
#else #else
#define CHANT_POINT_FILTER #define GEGL_CHANT_POINT_FILTER
#define CHANT_NAME brightness_contrast #define GEGL_CHANT_NAME brightness_contrast
#define CHANT_DESCRIPTION "Changes the light level and contrast." #define GEGL_CHANT_DESCRIPTION "Changes the light level and contrast."
#define CHANT_SELF "brightness-contrast.c" #define GEGL_CHANT_SELF "brightness-contrast.c"
#define CHANT_CATEGORIES "color" #define GEGL_CHANT_CATEGORIES "color"
#include "gegl-chant.h" #include "gegl-chant.h"
static gboolean static gboolean
...@@ -37,7 +37,7 @@ evaluate (GeglOperation *op, ...@@ -37,7 +37,7 @@ evaluate (GeglOperation *op,
void *out_buf, void *out_buf,
glong n_pixels) glong n_pixels)
{ {
ChantInstance *self = CHANT_INSTANCE (op); ChantInstance *self = GEGL_CHANT_INSTANCE (op);
gint o; gint o;
gfloat *p = in_buf; /* it is inplace anyways, and out_but==in_buf) */ gfloat *p = in_buf; /* it is inplace anyways, and out_but==in_buf) */
......
...@@ -17,16 +17,16 @@ ...@@ -17,16 +17,16 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
/* no properties */ /* no properties */
#else #else
#define CHANT_POINT_FILTER #define GEGL_CHANT_POINT_FILTER
#define CHANT_NAME invert #define GEGL_CHANT_NAME invert
#define CHANT_DESCRIPTION "inverts the components (except alpha, one by one)" #define GEGL_CHANT_DESCRIPTION "inverts the components (except alpha, one by one)"
#define CHANT_SELF "invert.c" #define GEGL_CHANT_SELF "invert.c"
#define CHANT_CATEGORIES "color" #define GEGL_CHANT_CATEGORIES "color"
#define CHANT_CONSTRUCT #define GEGL_CHANT_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
static void init (ChantInstance *self) static void init (ChantInstance *self)
......
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME stretch_contrast #define GEGL_CHANT_NAME stretch_contrast
#define CHANT_DESCRIPTION "Scales the components of the buffer to be in the 0.0-1.0 range" #define GEGL_CHANT_DESCRIPTION "Scales the components of the buffer to be in the 0.0-1.0 range"
#define CHANT_SELF "stretch-contrast.c" #define GEGL_CHANT_SELF "stretch-contrast.c"
#define CHANT_CLASS_CONSTRUCT /*< we need to modify the standard class init #define GEGL_CHANT_CLASS_CONSTRUCT /*< we need to modify the standard class init
of the super class */ of the super class */
#define CHANT_CATEGORIES "color" #define GEGL_CHANT_CATEGORIES "color"
#include "gegl-chant.h" #include "gegl-chant.h"
static gboolean static gboolean
...@@ -170,7 +170,7 @@ calc_need_rect (GeglOperation *self) ...@@ -170,7 +170,7 @@ calc_need_rect (GeglOperation *self)
} }
/* This is called at the end of the gobject class_init function, the /* This is called at the end of the gobject class_init function, the
* CHANT_CLASS_CONSTRUCT was needed to make this happen * GEGL_CHANT_CLASS_CONSTRUCT was needed to make this happen
* *
* Here we override the standard passthrough options for the rect * Here we override the standard passthrough options for the rect
* computations. * computations.
......
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_double (value, -100.0, 100.0, 0.5, "global threshold level (used when there is no aux input") gegl_chant_double (value, -100.0, 100.0, 0.5, "global threshold level (used when there is no aux input")
#else #else
#define CHANT_POINT_COMPOSER #define GEGL_CHANT_POINT_COMPOSER
#define CHANT_NAME threshold #define GEGL_CHANT_NAME threshold
#define CHANT_DESCRIPTION "thresholds the image to white/black based on either the global value set in the value property, or per pixel from the aux input" #define GEGL_CHANT_DESCRIPTION "thresholds the image to white/black based on either the global value set in the value property, or per pixel from the aux input"
#define CHANT_SELF "threshold.c" #define GEGL_CHANT_SELF "threshold.c"
#define CHANT_CATEGORIES "color" #define GEGL_CHANT_CATEGORIES "color"
#define CHANT_CONSTRUCT #define GEGL_CHANT_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
static void init (ChantInstance *self) static void init (ChantInstance *self)
...@@ -52,7 +52,7 @@ evaluate (GeglOperation *op, ...@@ -52,7 +52,7 @@ evaluate (GeglOperation *op,
if (aux == NULL) if (aux == NULL)
{ {
gfloat value = CHANT_INSTANCE (op)->value; gfloat value = GEGL_CHANT_INSTANCE (op)->value;
for (i=0; i<n_pixels; i++) for (i=0; i<n_pixels; i++)
{ {
out[0] = in[0]>=value?1.0:0.0; out[0] = in[0]>=value?1.0:0.0;
......
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_string (ref, "", "The reference ID used as input.") gegl_chant_string (ref, "", "The reference ID used as input.")
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME clone #define GEGL_CHANT_NAME clone
#define CHANT_DESCRIPTION "A routing op used by the XML data model to implement clones." #define GEGL_CHANT_DESCRIPTION "A routing op used by the XML data model to implement clones."
#define CHANT_SELF "clone.c" #define GEGL_CHANT_SELF "clone.c"
#define CHANT_CATEGORIES "misc" #define GEGL_CHANT_CATEGORIES "misc"
#include "gegl-chant.h" #include "gegl-chant.h"
......
...@@ -17,29 +17,29 @@ ...@@ -17,29 +17,29 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "left most pixel coordinate") gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "left most pixel coordinate")
chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "top pixel coordinate") gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "top pixel coordinate")
chant_double (width, -G_MAXDOUBLE, G_MAXDOUBLE, 10.0, "width in pixels") gegl_chant_double (width, -G_MAXDOUBLE, G_MAXDOUBLE, 10.0, "width in pixels")
chant_double (height, -G_MAXDOUBLE, G_MAXDOUBLE, 10.0, "height in pixels") gegl_chant_double (height, -G_MAXDOUBLE, G_MAXDOUBLE, 10.0, "height in pixels")
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME crop #define GEGL_CHANT_NAME crop
#define CHANT_SELF "crop.c" #define GEGL_CHANT_SELF "crop.c"
#define CHANT_DESCRIPTION "crops the image, can be used to rectangulary" \ #define GEGL_CHANT_DESCRIPTION "crops the image, can be used to rectangulary" \
"clip buffers, as well as specifying what " \ "clip buffers, as well as specifying what " \
"portion of a composition to render to file" "portion of a composition to render to file"
#define CHANT_CATEGORIES "geometry" #define GEGL_CHANT_CATEGORIES "geometry"
#define CHANT_CLASS_CONSTRUCT #define GEGL_CHANT_CLASS_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
#include <stdio.h> #include <stdio.h>
int chant_foo = 0; int gegl_chant_foo = 0;
/* Actual image processing code /* Actual image processing code
************************************************************************/ ************************************************************************/
...@@ -49,7 +49,7 @@ evaluate (GeglOperation *operation, ...@@ -49,7 +49,7 @@ evaluate (GeglOperation *operation,
{ {
GeglOperationFilter *filter = GEGL_OPERATION_FILTER(operation); GeglOperationFilter *filter = GEGL_OPERATION_FILTER(operation);
GeglBuffer *input = filter->input; GeglBuffer *input = filter->input;
ChantInstance *crop = CHANT_INSTANCE (operation); ChantInstance *crop = GEGL_CHANT_INSTANCE (operation);
if(strcmp("output", output_prop)) if(strcmp("output", output_prop))
return FALSE; return FALSE;
......
...@@ -17,15 +17,15 @@ ...@@ -17,15 +17,15 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME nop #define GEGL_CHANT_NAME nop
#define CHANT_DESCRIPTION "Passthrough operation" #define GEGL_CHANT_DESCRIPTION "Passthrough operation"
#define CHANT_SELF "nop.c" #define GEGL_CHANT_SELF "nop.c"
#define CHANT_CLASS_CONSTRUCT #define GEGL_CHANT_CLASS_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
static gboolean static gboolean
......
...@@ -17,25 +17,25 @@ ...@@ -17,25 +17,25 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "x coordinate of new origin") gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "x coordinate of new origin")
chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "y coordinate of new origin") gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, "y coordinate of new origin")
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME shift #define GEGL_CHANT_NAME shift
#define CHANT_DESCRIPTION "Translate the buffer, an integer amount of pixels." #define GEGL_CHANT_DESCRIPTION "Translate the buffer, an integer amount of pixels."
#define CHANT_SELF "shift.c" #define GEGL_CHANT_SELF "shift.c"
#define CHANT_CATEGORIES "geometry" #define GEGL_CHANT_CATEGORIES "geometry"
#define CHANT_CLASS_CONSTRUCT #define GEGL_CHANT_CLASS_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
#include <stdio.h> #include <stdio.h>
int chant_foo = 0; int gegl_chant_foo = 0;
/* Actual image processing code /* Actual image processing code
************************************************************************/ ************************************************************************/
......
...@@ -17,23 +17,23 @@ ...@@ -17,23 +17,23 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_string(window_title, "window_title", "Title to be given output window") gegl_chant_string(window_title, "window_title", "Title to be given output window")
chant_string(icon_title, "icon_title", "Icon to be used for output window") gegl_chant_string(icon_title, "icon_title", "Icon to be used for output window")
chant_pointer(screen, "private") gegl_chant_pointer(screen, "private")
chant_int(w, 0, 1000, 0, "private") gegl_chant_int(w, 0, 1000, 0, "private")
chant_int(h, 0, 1000, 0, "private") gegl_chant_int(h, 0, 1000, 0, "private")
chant_int(width, 0, 1000, 0, "private") gegl_chant_int(width, 0, 1000, 0, "private")
chant_int(height, 0, 1000, 0, "private") gegl_chant_int(height, 0, 1000, 0, "private")
#else #else
#define CHANT_FILTER #define GEGL_CHANT_FILTER
#define CHANT_NAME display #define GEGL_CHANT_NAME display
#define CHANT_DESCRIPTION "Displays the input buffer in an SDL window (restricted to one display op/process, due to SDL implementation issues, a gtk+ based replacement would be nice." #define GEGL_CHANT_DESCRIPTION "Displays the input buffer in an SDL window (restricted to one display op/process, due to SDL implementation issues, a gtk+ based replacement would be nice."
#define CHANT_SELF "display.c" #define GEGL_CHANT_SELF "display.c"
#define CHANT_CATEGORIES "output" #define GEGL_CHANT_CATEGORIES "output"
#include "gegl-chant.h" #include "gegl-chant.h"
#include <SDL.h> #include <SDL.h>
...@@ -82,7 +82,7 @@ evaluate (GeglOperation *operation, ...@@ -82,7 +82,7 @@ evaluate (GeglOperation *operation,
const gchar *output_prop) const gchar *output_prop)
{ {
GeglOperationFilter *op_filter = GEGL_OPERATION_FILTER (operation); GeglOperationFilter *op_filter = GEGL_OPERATION_FILTER (operation);
ChantInstance *self = CHANT_INSTANCE (operation); ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
GeglBuffer *source; GeglBuffer *source;
GeglRect *need = gegl_operation_need_rect (operation); GeglRect *need = gegl_operation_need_rect (operation);
SDL_Surface **sdl_outwin = NULL; //op_sym (op, "sdl_outwin"); SDL_Surface **sdl_outwin = NULL; //op_sym (op, "sdl_outwin");
......
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_string (path, "/tmp/romedalen.jpg", "Path to jpg file on disk to load") gegl_chant_string (path, "/tmp/romedalen.jpg", "Path to jpg file on disk to load")
#else #else
#define CHANT_SOURCE #define GEGL_CHANT_SOURCE
#define CHANT_NAME jpg_load #define GEGL_CHANT_NAME jpg_load
#define CHANT_DESCRIPTION "loads a jpeg file using libjpeg" #define GEGL_CHANT_DESCRIPTION "loads a jpeg file using libjpeg"
#define CHANT_SELF "jpg-load.c" #define GEGL_CHANT_SELF "jpg-load.c"
#define CHANT_CATEGORIES "hidden" #define GEGL_CHANT_CATEGORIES "hidden"
#define CHANT_CLASS_CONSTRUCT #define GEGL_CHANT_CLASS_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
#include <stdio.h> #include <stdio.h>
#include <jpeglib.h> #include <jpeglib.h>
...@@ -49,7 +49,7 @@ evaluate (GeglOperation *operation, ...@@ -49,7 +49,7 @@ evaluate (GeglOperation *operation,
const gchar *output_prop) const gchar *output_prop)
{ {
GeglOperationSource *op_source = GEGL_OPERATION_SOURCE (operation); GeglOperationSource *op_source = GEGL_OPERATION_SOURCE (operation);
ChantInstance *self = CHANT_INSTANCE (operation); ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
gint width; gint width;
gint height; gint height;
gint result; gint result;
...@@ -104,7 +104,7 @@ evaluate (GeglOperation *operation, ...@@ -104,7 +104,7 @@ evaluate (GeglOperation *operation,
static gboolean static gboolean
calc_have_rect (GeglOperation *operation) calc_have_rect (GeglOperation *operation)
{ {
ChantInstance *self = CHANT_INSTANCE (operation); ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
gint width, height; gint width, height;
gint status; gint status;
status = query_jpg (self->path, &width, &height); status = query_jpg (self->path, &width, &height);
......
...@@ -17,17 +17,17 @@ ...@@ -17,17 +17,17 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_string(path, "/tmp/lena.png", "Path of file to load.") gegl_chant_string(path, "/tmp/lena.png", "Path of file to load.")
#else #else
#define CHANT_GRAPH #define GEGL_CHANT_GRAPH
#define CHANT_NAME load #define GEGL_CHANT_NAME load
#define CHANT_DESCRIPTION "Multipurpose file loader, that uses other native handlers, and fallback conversion using image magick's convert." #define GEGL_CHANT_DESCRIPTION "Multipurpose file loader, that uses other native handlers, and fallback conversion using image magick's convert."
#define CHANT_SELF "load.c" #define GEGL_CHANT_SELF "load.c"
#define CHANT_CLASS_CONSTRUCT #define GEGL_CHANT_CLASS_CONSTRUCT
#include "gegl-chant.h" #include "gegl-chant.h"
#include "gegl/gegl-extension-handler.h" #include "gegl/gegl-extension-handler.h"
...@@ -43,7 +43,7 @@ struct _Priv ...@@ -43,7 +43,7 @@ struct _Priv
static void static void
prepare (GeglOperation *operation) prepare (GeglOperation *operation)
{ {
ChantInstance *self = CHANT_INSTANCE (operation); ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
Priv *priv; Priv *priv;
priv = (Priv*)self->priv; priv = (Priv*)self->priv;
...@@ -77,7 +77,7 @@ prepare (GeglOperation *operation) ...@@ -77,7 +77,7 @@ prepare (GeglOperation *operation)
static void associate (GeglOperation *operation) static void associate (GeglOperation *operation)
{ {
ChantInstance *self = CHANT_INSTANCE (operation); ChantInstance *self = GEGL_CHANT_INSTANCE (operation);
Priv *priv = (Priv*)self->priv; Priv *priv = (Priv*)self->priv;
GeglGraph *graph; GeglGraph *graph;
g_assert (priv == NULL); g_assert (priv == NULL);
......
...@@ -17,19 +17,19 @@ ...@@ -17,19 +17,19 @@
* *
* Copyright 2006 Øyvind Kolås <pippin@gimp.org> * Copyright 2006 Øyvind Kolås <pippin@gimp.org>
*/ */
#ifdef CHANT_SELF #ifdef GEGL_CHANT_SELF
chant_string (path, "/tmp/gegl-logo.svg", "path to file to load") gegl_chant_string (path, "/tmp/gegl-logo.svg", "path to file to load")
chant_pointer (cached, "private") gegl_chant_pointer (cached, "private")
#else #else
#define CHANT_SOURCE #define GEGL_CHANT_SOURCE
#define CHANT_NAME magick_load #define GEGL_CHANT_NAME magick_load
#define CHANT_DESCRIPTION "Image Magick wrapper, that converts to" \ #define GEGL_CHANT_DESCRIPTION "Image Magick wrapper, that converts to" \