app: remove add_alpha_region() and its helper functions

This commit is contained in:
Michael Natterer 2012-04-01 20:21:41 +02:00
parent 0c8cf5ef73
commit 1b9d6d931d
3 changed files with 0 additions and 56 deletions

View File

@ -189,29 +189,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,

View File

@ -1714,31 +1714,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,

View File

@ -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,