[gimp/goat-invasion: 389/412] app: remove scale_pixels()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 389/412] app: remove scale_pixels()
- Date: Tue, 3 Apr 2012 10:05:49 +0000 (UTC)
commit 4fd96b5567b884ab4c8cc99be279b72f4e29bc3d
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 1 20:25:35 2012 +0200
app: remove scale_pixels()
app/paint-funcs/paint-funcs-generic.h | 14 --------------
app/paint-funcs/paint-funcs.h | 5 -----
2 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h
index 5904b67..a355247 100644
--- a/app/paint-funcs/paint-funcs-generic.h
+++ b/app/paint-funcs/paint-funcs-generic.h
@@ -174,20 +174,6 @@ replace_pixels (const guchar *src1,
}
}
-inline void
-scale_pixels (const guchar *src,
- guchar *dest,
- guint length,
- gint scale)
-{
- gint tmp;
-
- while (length --)
- {
- *dest++ = (guchar) INT_MULT (*src, scale, tmp);
- src++;
- }
-}
inline void
apply_mask_to_alpha_channel (guchar *src,
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index 102a228..0539043 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -28,11 +28,6 @@ void blend_pixels (const guchar *src1,
guint w,
guint bytes);
-void scale_pixels (const guchar *src,
- guchar *dest,
- guint length,
- gint scale);
-
/* 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]