app: remove shade_pixels(), no clue when it became unused

This commit is contained in:
Michael Natterer 2012-03-20 15:13:39 +01:00
parent 09f9a91a27
commit cbb7b71599
2 changed files with 0 additions and 35 deletions

View File

@ -185,33 +185,6 @@ blend_pixels (const guchar *src1,
} }
} }
inline void
shade_pixels (const guchar *src,
guchar *dest,
const guchar *col,
guchar blend,
guint w,
guint bytes,
gboolean has_alpha)
{
const guchar blend2 = (255 - blend);
const guint alpha = (has_alpha) ? bytes - 1 : bytes;
while (w--)
{
guint b;
for (b = 0; b < alpha; b++)
dest[b] = (src[b] * blend2 + col[b] * blend) / 255;
if (has_alpha)
dest[alpha] = src[alpha]; /* alpha channel */
src += bytes;
dest += bytes;
}
}
static inline void static inline void
replace_pixels (const guchar *src1, replace_pixels (const guchar *src1,

View File

@ -33,14 +33,6 @@ void blend_pixels (const guchar *src1,
guint w, guint w,
guint bytes); guint bytes);
void shade_pixels (const guchar *src,
guchar *dest,
const guchar *color,
guchar rblend,
guint w,
guint bytes,
gboolean has_alpha);
void swap_pixels (guchar *src, void swap_pixels (guchar *src,
guchar *dest, guchar *dest,
guint length); guint length);