[gegl/soc-2012-ops] photocopy: cleaning before merge
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-ops] photocopy: cleaning before merge
- Date: Tue, 28 Aug 2012 08:42:25 +0000 (UTC)
commit 284f04316628e791d137ff1e32874ae30e76c7f2
Author: Michael Murà <batolettre gmail com>
Date: Tue Aug 28 17:17:19 2012 +0900
photocopy: cleaning before merge
operations/common/photocopy.c | 35 +++++++++++++++++------------------
1 files changed, 17 insertions(+), 18 deletions(-)
---
diff --git a/operations/common/photocopy.c b/operations/common/photocopy.c
index fbb28c1..6c9ede9 100644
--- a/operations/common/photocopy.c
+++ b/operations/common/photocopy.c
@@ -54,9 +54,9 @@ typedef struct {
} Ramps;
static void
-grey_blur_buffer (GeglBuffer *input,
- gdouble sharpness,
- gdouble mask_radius,
+grey_blur_buffer (GeglBuffer *input,
+ gdouble sharpness,
+ gdouble mask_radius,
GeglBuffer **dest1,
GeglBuffer **dest2)
{
@@ -105,10 +105,10 @@ grey_blur_buffer (GeglBuffer *input,
}
static gdouble
-calculate_threshold (gint *hist,
- gdouble pct,
- gint count,
- gint under_threshold)
+calculate_threshold (gint *hist,
+ gdouble pct,
+ gint count,
+ gint under_threshold)
{
gint sum;
gint i;
@@ -133,15 +133,15 @@ calculate_threshold (gint *hist,
}
static void
-compute_ramp (GeglBuffer *input,
+compute_ramp (GeglBuffer *input,
GeglOperation *operation,
- gdouble pct_black,
- gdouble pct_white,
- gint under_threshold,
- gdouble *threshold_black,
- gdouble *threshold_white)
+ gdouble pct_black,
+ gdouble pct_white,
+ gint under_threshold,
+ gdouble *threshold_black,
+ gdouble *threshold_white)
{
- GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
+ GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
GeglRectangle *whole_region;
gint n_pixels;
@@ -215,11 +215,10 @@ compute_ramp (GeglBuffer *input,
*threshold_white = calculate_threshold (hist2, pct_white, count, 1);
}
-static void prepare (GeglOperation *operation)
+static void
+prepare (GeglOperation *operation)
{
- GeglChantO *o;
-
- o = GEGL_CHANT_PROPERTIES (operation);
+ GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
gegl_operation_set_format (operation, "input",
babl_format ("Y float"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]