Commit 918134c4 authored by Øyvind Kolås's avatar Øyvind Kolås

Removed unneeded GEGL_BUFFER cast of returned values from

gegl_operation_get_target.
* operations/color/remap.c: (process):
* operations/color/stretch-contrast.c: (process):
* operations/render/FractalExplorer.c: (process):
* operations/render/checkerboard.c: (process), (class_init):
* operations/render/color.c: (process), (class_init):
* operations/render/noise.c: (process):
* operations/render/text.c: (process):
* operations/workshop/gluas.c: (process):

svn path=/trunk/; revision=1586
parent 75915f09
2007-07-17 Øyvind Kolås <pippin@gimp.org>
Removed unneeded GEGL_BUFFER cast of returned values from
gegl_operation_get_target.
* operations/color/remap.c: (process):
* operations/color/stretch-contrast.c: (process):
* operations/render/FractalExplorer.c: (process):
* operations/render/checkerboard.c: (process), (class_init):
* operations/render/color.c: (process), (class_init):
* operations/render/noise.c: (process):
* operations/render/text.c: (process):
* operations/workshop/gluas.c: (process):
2007-07-17 Øyvind Kolås <pippin@gimp.org>
* operations/io/exr-load.cpp: Make use of gegl_operation_get_target to
......
......@@ -160,7 +160,7 @@ process (GeglOperation *operation,
gegl_buffer_get (low, result, 1.0, babl_format ("RGB float"), min);
gegl_buffer_get (high, result, 1.0, babl_format ("RGB float"), max);
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
for (i=0;i<pixels;i++)
{
......
......@@ -96,7 +96,7 @@ process (GeglOperation *operation,
buffer_get_min_max (input, &min, &max);
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
{
gint row;
guchar *buf;
......
......@@ -402,7 +402,7 @@ process (GeglOperation *operation,
make_color_map (self, colormap);
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
buf = g_new (guchar, result->width * result->height * 4);
{
......
......@@ -34,6 +34,7 @@ gegl_chant_color (color2, "white", "The other cell color (defa
#define GEGL_CHANT_SELF "checkerboard.c"
#define GEGL_CHANT_CATEGORIES "render"
#define GEGL_CHANT_CLASS_INIT
#define GEGL_CHANT_PREPARE
#include "gegl-chant.h"
......@@ -76,7 +77,7 @@ process (GeglOperation *operation,
&color2[2],
&color2[3]);
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
g_object_get (output, "px-size", &pxsize,
"pixels", &n_pixels,
......@@ -116,4 +117,10 @@ get_defined_region (GeglOperation *operation)
return result;
}
static void class_init (GeglOperationClass *klass)
{
klass->adjust_result_region = NULL;
klass->no_cache = TRUE;
}
#endif
......@@ -61,7 +61,7 @@ process (GeglOperation *operation,
&color[2],
&color[3]);
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
buf = g_malloc (result->width * result->height * 4 * sizeof (gfloat));
{
gfloat *dst=buf;
......@@ -97,6 +97,8 @@ detect (GeglOperation *operation,
static void class_init (GeglOperationClass *klass)
{
klass->detect = detect;
klass->adjust_result_region = NULL;
klass->no_cache = TRUE;
}
#endif
......@@ -54,7 +54,7 @@ process (GeglOperation *operation,
GeglRectangle *result = gegl_operation_result_rect (operation, context_id);
gfloat *buf;
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
buf = g_malloc (result->width * result->height * 4);
{
gfloat *dst=buf;
......
......@@ -160,7 +160,7 @@ process (GeglOperation *operation,
result = gegl_operation_result_rect (operation, context_id);
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
{
guchar *data = g_malloc0 (result->width * result->height * 4);
cairo_t *cr;
......
......@@ -99,7 +99,7 @@ process (GeglOperation *operation,
self = GEGL_CHANT_OPERATION (operation);
input = GEGL_BUFFER (gegl_operation_get_data (operation, context_id, "input"));
output = GEGL_BUFFER (gegl_operation_get_target (operation, context_id, "output"));
output = gegl_operation_get_target (operation, context_id, "output");
if (self->file && g_file_test (self->file, G_FILE_TEST_IS_REGULAR))
{
......
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