app: remove gray_to_rgb_pixels()

This commit is contained in:
Michael Natterer
2012-04-01 20:24:26 +02:00
parent 1b9d6d931d
commit c7fd41502a
2 changed files with 0 additions and 30 deletions

View File

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

View File

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