[gimp] plug-ins: use GimpImageType instead of GimpImageBaseType in value-propagate
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: use GimpImageType instead of GimpImageBaseType in value-propagate
- Date: Thu, 17 Mar 2011 14:58:29 +0000 (UTC)
commit e26c2777c5bad2797348dcbcb3173541cba86c43
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 17 15:57:46 2011 +0100
plug-ins: use GimpImageType instead of GimpImageBaseType in value-propagate
This has been wrong forever.
plug-ins/common/value-propagate.c | 214 ++++++++++++++++++------------------
1 files changed, 107 insertions(+), 107 deletions(-)
---
diff --git a/plug-ins/common/value-propagate.c b/plug-ins/common/value-propagate.c
index 8ac243a..6352066 100644
--- a/plug-ins/common/value-propagate.c
+++ b/plug-ins/common/value-propagate.c
@@ -85,46 +85,46 @@ static GtkWidget * gtk_table_add_toggle (GtkWidget *table,
gint *value);
static int value_difference_check (guchar *, guchar *, int);
-static void set_value (GimpImageBaseType,
+static void set_value (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void initialize_white (GimpImageBaseType,
+static void initialize_white (GimpImageType,
int, guchar *, guchar *,
void **);
-static void propagate_white (GimpImageBaseType,
+static void propagate_white (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void initialize_black (GimpImageBaseType,
+static void initialize_black (GimpImageType,
int, guchar *, guchar *,
void **);
-static void propagate_black (GimpImageBaseType,
+static void propagate_black (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void initialize_middle (GimpImageBaseType,
+static void initialize_middle (GimpImageType,
int, guchar *, guchar *,
void **);
-static void propagate_middle (GimpImageBaseType,
+static void propagate_middle (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void set_middle_to_peak (GimpImageBaseType,
+static void set_middle_to_peak (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void set_foreground_to_peak (GimpImageBaseType,
+static void set_foreground_to_peak (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void initialize_foreground (GimpImageBaseType,
+static void initialize_foreground (GimpImageType,
int, guchar *, guchar *,
void **);
-static void initialize_background (GimpImageBaseType,
+static void initialize_background (GimpImageType,
int, guchar *, guchar *,
void **);
-static void propagate_a_color (GimpImageBaseType,
+static void propagate_a_color (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void propagate_opaque (GimpImageBaseType,
+static void propagate_opaque (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
-static void propagate_transparent (GimpImageBaseType,
+static void propagate_transparent (GimpImageType,
int, guchar *, guchar *, guchar *,
void *);
@@ -176,9 +176,9 @@ typedef struct
{
gint applicable_image_type;
gchar *name;
- void (*initializer) (GimpImageBaseType, gint, guchar *, guchar *, gpointer *);
- void (*updater) (GimpImageBaseType, gint, guchar *, guchar *, guchar *, gpointer);
- void (*finalizer) (GimpImageBaseType, gint, guchar *, guchar *, guchar *, gpointer);
+ void (*initializer) (GimpImageType, gint, guchar *, guchar *, gpointer *);
+ void (*updater) (GimpImageType, gint, guchar *, guchar *, guchar *, gpointer);
+ void (*finalizer) (GimpImageType, gint, guchar *, guchar *, guchar *, gpointer);
} ModeParam;
#define num_mode 8
@@ -406,17 +406,17 @@ static void
value_propagate_body (GimpDrawable *drawable,
GimpPreview *preview)
{
- GimpImageBaseType dtype;
- ModeParam operation;
- GimpPixelRgn srcRgn, destRgn;
- guchar *here, *best, *dest;
- guchar *dest_row, *prev_row, *cur_row, *next_row;
- guchar *pr, *cr, *nr, *swap;
- gint width, height, bytes, index;
- gint begx, begy, endx, endy, x, y, dx;
- gint left_index, right_index, up_index, down_index;
- gpointer tmp;
- GimpRGB foreground;
+ GimpImageType dtype;
+ ModeParam operation;
+ GimpPixelRgn srcRgn, destRgn;
+ guchar *here, *best, *dest;
+ guchar *dest_row, *prev_row, *cur_row, *next_row;
+ guchar *pr, *cr, *nr, *swap;
+ gint width, height, bytes, index;
+ gint begx, begy, endx, endy, x, y, dx;
+ gint left_index, right_index, up_index, down_index;
+ gpointer tmp;
+ GimpRGB foreground;
/* calculate neighbors' indexes */
left_index = (vpvals.direction_mask & (1 << Left2Right)) ? -1 : 0;
@@ -564,12 +564,12 @@ prepare_row (GimpPixelRgn *pixel_rgn,
}
static void
-set_value (GimpImageBaseType dtype,
- gint bytes,
- guchar *best,
- guchar *here,
- guchar *dest,
- void *tmp)
+set_value (GimpImageType dtype,
+ gint bytes,
+ guchar *best,
+ guchar *here,
+ guchar *dest,
+ void *tmp)
{
gint value_chs = 0;
gint alpha = 0;
@@ -632,11 +632,11 @@ value_difference_check (guchar *pos1,
/* mothods for each mode */
static void
-initialize_white (GimpImageBaseType dtype,
- gint bytes,
- guchar *best,
- guchar *here,
- void **tmp)
+initialize_white (GimpImageType dtype,
+ gint bytes,
+ guchar *best,
+ guchar *here,
+ void **tmp)
{
switch (dtype)
@@ -658,12 +658,12 @@ initialize_white (GimpImageBaseType dtype,
}
static void
-propagate_white (GimpImageBaseType dtype,
- gint bytes,
- guchar *orig,
- guchar *here,
- guchar *best,
- void *tmp)
+propagate_white (GimpImageType dtype,
+ gint bytes,
+ guchar *orig,
+ guchar *here,
+ guchar *best,
+ void *tmp)
{
float v_here;
@@ -691,11 +691,11 @@ propagate_white (GimpImageBaseType dtype,
}
static void
-initialize_black (GimpImageBaseType dtype,
- gint channels,
- guchar *best,
- guchar *here,
- void **tmp)
+initialize_black (GimpImageType dtype,
+ gint channels,
+ guchar *best,
+ guchar *here,
+ void **tmp)
{
switch (dtype)
{
@@ -716,12 +716,12 @@ initialize_black (GimpImageBaseType dtype,
}
static void
-propagate_black (GimpImageBaseType image_type,
- gint channels,
- guchar *orig,
- guchar *here,
- guchar *best,
- void *tmp)
+propagate_black (GimpImageType image_type,
+ gint channels,
+ guchar *orig,
+ guchar *here,
+ guchar *best,
+ void *tmp)
{
float v_here;
@@ -760,11 +760,11 @@ typedef struct
} MiddlePacket;
static void
-initialize_middle (GimpImageBaseType image_type,
- gint channels,
- guchar *best,
- guchar *here,
- void **tmp)
+initialize_middle (GimpImageType image_type,
+ gint channels,
+ guchar *best,
+ guchar *here,
+ void **tmp)
{
int index;
MiddlePacket *data;
@@ -794,12 +794,12 @@ initialize_middle (GimpImageBaseType image_type,
}
static void
-propagate_middle (GimpImageBaseType image_type,
- gint channels,
- guchar *orig,
- guchar *here,
- guchar *best,
- void *tmp)
+propagate_middle (GimpImageType image_type,
+ gint channels,
+ guchar *orig,
+ guchar *here,
+ guchar *best,
+ void *tmp)
{
float v_here;
MiddlePacket *data;
@@ -845,12 +845,12 @@ propagate_middle (GimpImageBaseType image_type,
}
static void
-set_middle_to_peak (GimpImageBaseType image_type,
- gint channels,
- guchar *here,
- guchar *best,
- guchar *dest,
- void *tmp)
+set_middle_to_peak (GimpImageType image_type,
+ gint channels,
+ guchar *here,
+ guchar *best,
+ guchar *dest,
+ void *tmp)
{
gint value_chs = 0;
gint alpha = 0;
@@ -904,12 +904,12 @@ set_middle_to_peak (GimpImageBaseType image_type,
}
static void
-set_foreground_to_peak (GimpImageBaseType image_type,
- gint channels,
- guchar *here,
- guchar *best,
- guchar *dest,
- void *tmp)
+set_foreground_to_peak (GimpImageType image_type,
+ gint channels,
+ guchar *here,
+ guchar *best,
+ guchar *dest,
+ void *tmp)
{
gint value_chs = 0;
gint alpha = 0;
@@ -955,11 +955,11 @@ set_foreground_to_peak (GimpImageBaseType image_type,
}
static void
-initialize_foreground (GimpImageBaseType image_type,
- gint channels,
- guchar *here,
- guchar *best,
- void **tmp)
+initialize_foreground (GimpImageType image_type,
+ gint channels,
+ guchar *here,
+ guchar *best,
+ void **tmp)
{
GimpRGB foreground;
guchar *ch;
@@ -974,11 +974,11 @@ initialize_foreground (GimpImageBaseType image_type,
}
static void
-initialize_background (GimpImageBaseType image_type,
- gint channels,
- guchar *here,
- guchar *best,
- void **tmp)
+initialize_background (GimpImageType image_type,
+ gint channels,
+ guchar *here,
+ guchar *best,
+ void **tmp)
{
GimpRGB background;
guchar *ch;
@@ -993,12 +993,12 @@ initialize_background (GimpImageBaseType image_type,
}
static void
-propagate_a_color (GimpImageBaseType image_type,
- gint channels,
- guchar *orig,
- guchar *here,
- guchar *best,
- void *tmp)
+propagate_a_color (GimpImageType image_type,
+ gint channels,
+ guchar *orig,
+ guchar *here,
+ guchar *best,
+ void *tmp)
{
guchar *fg = (guchar *)tmp;
@@ -1021,12 +1021,12 @@ propagate_a_color (GimpImageBaseType image_type,
}
static void
-propagate_opaque (GimpImageBaseType image_type,
- gint channels,
- guchar *orig,
- guchar *here,
- guchar *best,
- void *tmp)
+propagate_opaque (GimpImageType image_type,
+ gint channels,
+ guchar *orig,
+ guchar *here,
+ guchar *best,
+ void *tmp)
{
switch (image_type)
{
@@ -1044,12 +1044,12 @@ propagate_opaque (GimpImageBaseType image_type,
}
static void
-propagate_transparent (GimpImageBaseType image_type,
- gint channels,
- guchar *orig,
- guchar *here,
- guchar *best,
- void *tmp)
+propagate_transparent (GimpImageType image_type,
+ gint channels,
+ guchar *orig,
+ guchar *here,
+ guchar *best,
+ void *tmp)
{
switch (image_type)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]