[gimp/goat-invasion: 387/526] app: remove add_alpha_region() and its helper functions
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 387/526] app: remove add_alpha_region() and its helper functions
- Date: Sun, 22 Apr 2012 13:31:47 +0000 (UTC)
commit a147715f68d4f94d914c7d068d5be290b0fedad4
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 1 20:21:41 2012 +0200
app: remove add_alpha_region() and its helper functions
app/paint-funcs/paint-funcs-generic.h | 23 -----------------------
app/paint-funcs/paint-funcs.c | 25 -------------------------
app/paint-funcs/paint-funcs.h | 8 --------
3 files changed, 0 insertions(+), 56 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index 7a56e8f..b11a61f 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -190,29 +190,6 @@ scale_pixels (const guchar *src,
}
inline void
-add_alpha_pixels (const guchar *src,
- guchar *dest,
- guint length,
- guint bytes)
-{
- const guint alpha = bytes + 1;
-
- while (length --)
- {
- guint b;
-
- for (b = 0; b < bytes; b++)
- dest[b] = src[b];
-
- dest[b] = OPAQUE_OPACITY;
-
- src += bytes;
- dest += alpha;
- }
-}
-
-
-inline void
gray_to_rgb_pixels (const guchar *src,
guchar *dest,
guint length,
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index 3887c79..041ce1f 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -1715,31 +1715,6 @@ copy_region (PixelRegion *src,
void
-add_alpha_region (PixelRegion *src,
- PixelRegion *dest)
-{
- gpointer pr;
-
- for (pr = pixel_regions_register (2, src, dest);
- pr != NULL;
- pr = pixel_regions_process (pr))
- {
- const guchar *s = src->data;
- guchar *d = dest->data;
- gint h = src->h;
-
- while (h --)
- {
- add_alpha_pixels (s, d, src->w, src->bytes);
-
- s += src->rowstride;
- d += dest->rowstride;
- }
- }
-}
-
-
-void
convolve_region (PixelRegion *srcR,
PixelRegion *destR,
const gfloat *matrix,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 717e2b8..583b5e9 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -33,11 +33,6 @@ void scale_pixels (const guchar *src,
guint length,
gint scale);
-void add_alpha_pixels (const guchar *src,
- guchar *dest,
- guint length,
- guint bytes);
-
void gray_to_rgb_pixels (const guchar *src,
guchar *dest,
guint length,
@@ -266,9 +261,6 @@ void blend_region (PixelRegion *src1,
void copy_region (PixelRegion *src,
PixelRegion *dest);
-void add_alpha_region (PixelRegion *src,
- PixelRegion *dest);
-
void convolve_region (PixelRegion *srcR,
PixelRegion *destR,
const gfloat *matrix,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]