mirror of https://github.com/GNOME/gimp.git
app: remove add_alpha_region() and its helper functions
This commit is contained in:
parent
0c8cf5ef73
commit
1b9d6d931d
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue