[gimp/goat-invasion: 388/608] app: remove gray_to_rgb_pixels()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 388/608] app: remove gray_to_rgb_pixels()
- Date: Fri, 27 Apr 2012 20:58:00 +0000 (UTC)
commit c0ac3988fe5b28b69e9a46096a5227dcd3d84dbf
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 1 20:24:26 2012 +0200
app: remove gray_to_rgb_pixels()
app/paint-funcs/paint-funcs-generic.h | 25 -------------------------
app/paint-funcs/paint-funcs.h | 5 -----
2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index b11a61f..5904b67 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -190,31 +190,6 @@ scale_pixels (const guchar *src,
}
inline void
-gray_to_rgb_pixels (const guchar *src,
- guchar *dest,
- guint length,
- guint bytes)
-{
- const gboolean has_alpha = (bytes == 2) ? TRUE : FALSE;
- const gint dest_bytes = (has_alpha) ? 4 : 3;
-
- while (length --)
- {
- guint b;
-
- for (b = 0; b < bytes; b++)
- dest[b] = src[0];
-
- if (has_alpha)
- dest[3] = src[1];
-
- src += bytes;
- dest += dest_bytes;
- }
-}
-
-
-inline void
apply_mask_to_alpha_channel (guchar *src,
const guchar *mask,
guint opacity,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 583b5e9..102a228 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 gray_to_rgb_pixels (const guchar *src,
- guchar *dest,
- guint length,
- guint bytes);
-
/* apply the mask data to the alpha channel of the pixel data */
void apply_mask_to_alpha_channel (guchar *src,
const guchar *mask,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]