Commit 61f38ff7 authored by Michael Muré's avatar Michael Muré

update workshop against constify of babl_format

parent 0629555e
......@@ -344,7 +344,7 @@ process (GeglOperation *operation,
const GeglRectangle *result)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
Babl *format = babl_format ("RGBA float");
const Babl *format = babl_format ("RGBA float");
gfloat *src_buf;
gint x;
......
......@@ -129,7 +129,7 @@ process (GeglOperation *operation,
const GeglRectangle *result)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
Babl *format = babl_format ("RGBA float");
const Babl *format = babl_format ("RGBA float");
gfloat *src_buf, color[4];
gint x;
......
......@@ -444,7 +444,7 @@ process (GeglOperation *operation,
GeglOperationAreaFilter *op_area = GEGL_OPERATION_AREA_FILTER (operation);
GeglRectangle boundary = get_effective_area (operation);
GeglRectangle extended;
Babl *format = babl_format ("RGBA float");
const Babl *format = babl_format ("RGBA float");
GRand *gr = g_rand_new_with_seed (o->seed);
gfloat color[4];
......
......@@ -218,7 +218,7 @@ process (GeglOperation *operation,
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglOperationAreaFilter *op_area = GEGL_OPERATION_AREA_FILTER (operation);
Babl *format = babl_format ("RGBA float");
const Babl *format = babl_format ("RGBA float");
GeglRectangle rect;
GeglRectangle boundary = get_effective_area (operation);
gint x, y;
......
......@@ -114,7 +114,7 @@ fractaltrace (GeglBuffer *input,
gint y,
FractalType fractal_type,
BackgroundType background_type,
Babl *format)
const Babl *format)
{
GeglMatrix2 scale; /* a matrix indicating scaling factors around the
current center pixel.
......@@ -238,7 +238,7 @@ process (GeglOperation *operation,
{
GeglChantO *o;
GeglRectangle boundary;
Babl *format;
const Babl *format;
FractalType fractal_type;
BackgroundType background_type;
gfloat *dst_buf;
......
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
*
* This file is an image processing operation for GEGL
*
......@@ -41,7 +41,7 @@
static void prepare (GeglOperation *self)
{
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (self, "input", format);
gegl_operation_set_format (self, "aux", format);
......
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
*
* This file is an image processing operation for GEGL
*
......@@ -41,7 +41,7 @@
static void prepare (GeglOperation *self)
{
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (self, "input", format);
gegl_operation_set_format (self, "aux", format);
......
......@@ -79,7 +79,7 @@ a.each do
static void prepare (GeglOperation *self)
{
Babl *format = babl_format (\"RaGaBaA float\");
const Babl *format = babl_format (\"RaGaBaA float\");
gegl_operation_set_format (self, \"input\", format);
gegl_operation_set_format (self, \"aux\", format);
......
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
*
* This file is an image processing operation for GEGL
*
......@@ -41,7 +41,7 @@
static void prepare (GeglOperation *self)
{
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (self, "input", format);
gegl_operation_set_format (self, "aux", format);
......
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
*
* This file is an image processing operation for GEGL
*
......@@ -41,7 +41,7 @@
static void prepare (GeglOperation *self)
{
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (self, "input", format);
gegl_operation_set_format (self, "aux", format);
......
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
*
* This file is an image processing operation for GEGL
*
......@@ -41,7 +41,7 @@
static void prepare (GeglOperation *self)
{
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (self, "input", format);
gegl_operation_set_format (self, "aux", format);
......
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
/* !!!! AUTOGENERATED FILE generated by blend.rb !!!!!
*
* This file is an image processing operation for GEGL
*
......@@ -41,7 +41,7 @@
static void prepare (GeglOperation *self)
{
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
gegl_operation_set_format (self, "input", format);
gegl_operation_set_format (self, "aux", format);
......
......@@ -70,7 +70,7 @@ apply_spread (gint x_amount,
gint y_amount,
gint img_width,
gint img_height,
Babl *format,
const Babl *format,
GeglBuffer *src,
GeglBuffer *dst,
const GeglRectangle *roi)
......@@ -137,7 +137,7 @@ process (GeglOperation *operation,
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglRectangle boundary = gegl_operation_get_bounding_box (operation);
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
apply_spread ((o->x_amount + 1) / 2,
(o->y_amount + 1) / 2,
......
......@@ -303,7 +303,7 @@ process (GeglOperation *operation,
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglRectangle boundary = get_effective_area (operation);
Babl *format = babl_format ("RGBA float");
const Babl *format = babl_format ("RGBA float");
gint x,y;
gfloat *src_buf, *dst_buf;
......
......@@ -93,7 +93,7 @@ process (GeglOperation *operation,
const GeglRectangle *result)
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
Babl *format = babl_format ("RGBA float");
const Babl *format = babl_format ("RGBA float");
gfloat *src_buf;
gint x;
......
......@@ -76,7 +76,7 @@ prepare (GeglOperation *operation)
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
WarpPrivate *priv;
Babl *format = babl_format_n (babl_type ("float"), 2);
const Babl *format = babl_format_n (babl_type ("float"), 2);
gegl_operation_set_format (operation, "input", format);
gegl_operation_set_format (operation, "output", format);
......@@ -188,7 +188,7 @@ stamp (GeglChantO *o,
{
WarpPrivate *priv = (WarpPrivate*) o->chant_data;
GeglBufferIterator *it;
Babl *format;
const Babl *format;
gdouble influence;
gdouble x_mean = 0.0;
gdouble y_mean = 0.0;
......
......@@ -120,7 +120,7 @@ calc_undistorted_coords (gdouble wx, gdouble wy,
static void
apply_whirl_pinch (gdouble whirl, gdouble pinch, gdouble radius,
gdouble cen_x, gdouble cen_y,
Babl *format,
const Babl *format,
GeglBuffer *src,
GeglRectangle *in_boundary,
GeglBuffer *dst,
......@@ -219,19 +219,19 @@ process (GeglOperation *operation,
{
GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglRectangle boundary = gegl_operation_get_bounding_box (operation);
Babl *format = babl_format ("RaGaBaA float");
const Babl *format = babl_format ("RaGaBaA float");
apply_whirl_pinch (o->whirl,
o->pinch,
o->radius,
boundary.width / 2.0,
boundary.height / 2.0,
format,
input,
&boundary,
output,
&boundary,
result);
o->pinch,
o->radius,
boundary.width / 2.0,
boundary.height / 2.0,
format,
input,
&boundary,
output,
&boundary,
result);
return TRUE;
}
......
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