[babl] Remove gggl rgbA <-> rgba
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] Remove gggl rgbA <-> rgba
- Date: Sat, 6 Apr 2013 03:58:32 +0000 (UTC)
commit 8e7c487043ddee4ffd7d1cf28db985903dd7df45
Author: Daniel Sabo <DanielSabo gmail com>
Date: Fri Mar 29 20:14:40 2013 -0700
Remove gggl rgbA <-> rgba
extensions/gggl.c | 93 -----------------------------------------------------
1 files changed, 0 insertions(+), 93 deletions(-)
---
diff --git a/extensions/gggl.c b/extensions/gggl.c
index ca455b3..0513802 100644
--- a/extensions/gggl.c
+++ b/extensions/gggl.c
@@ -609,95 +609,6 @@ conv_gAF_gaF (unsigned char *src, unsigned char *dst, long samples)
return samples;
}
-static INLINE long
-conv_rgbAF_rgbaF (unsigned char *src, unsigned char *dst, long samples)
-{
- long n = samples;
-
- while (n--)
- {
- float alpha = (((float *) src)[3]);
- int c;
- if (alpha >= 1.0)
- {
- for (c = 0; c < 3; c++)
- {
- *(float *) dst = *(float *) src;
- dst += 4;
- src += 4;
- }
- }
- else if (alpha <= 0.0)
- {
- for (c = 0; c < 3; c++)
- {
- *(float *) dst = 0;
- dst += 4;
- src += 4;
- }
- }
- else
- {
- float alpha_recip = 1.0 / alpha;
- for (c = 0; c < 3; c++)
- {
- *(float *) dst = ((*(float *) src) * alpha_recip);
- dst += 4;
- src += 4;
- }
- }
- *(float *) dst = alpha;
- dst += 4;
- src += 4;
- }
- return samples;
-}
-
-
-static INLINE long
-conv_rgbaF_rgbAF (unsigned char *src, unsigned char *dst, long samples)
-{
- long n = samples;
-
- while (n--)
- {
- float alpha = (((float *) src)[3]);
- int c;
-
- if (alpha >= 1.0)
- {
- for (c = 0; c < 3; c++)
- {
- *(float *) dst = *(float *) src;
- dst += 4;
- src += 4;
- }
- }
- else if (alpha <= 0.0)
- {
- for (c = 0; c < 3; c++)
- {
- *(float *) dst = 0;
- dst += 4;
- src += 4;
- }
- }
- else
- {
- for (c = 0; c < 3; c++)
- {
- *(float *) dst = ((*(float *) src) * alpha);
- dst += 4;
- src += 4;
- }
- }
- *(float *) dst = alpha;
- dst += 4;
- src += 4;
- }
- return samples;
-}
-
/* alpha stripping and adding */
static INLINE long
@@ -1814,8 +1725,6 @@ init (void)
o (g16, gF);
o (ga16, ga8);
o (g16, g8);
- o (rgbaF, rgbAF);
- o (rgbAF, rgbaF);
o (yuvF, rgbF);
o (yuvaF, rgbaF);
o (rgbA8, rgbA16);
@@ -1835,8 +1744,6 @@ init (void)
o (ga16, gaF);
o (gA16, gAF);
o (g16, gF);
- o (rgbaF, rgbAF);
- o (rgbAF, rgbaF);
o (gaF, gAF);
o (gAF, gaF);
o (rgbaF, rgbF);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]