babl r353 - in trunk: . extensions
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: babl r353 - in trunk: . extensions
- Date: Thu, 6 Nov 2008 20:19:21 +0000 (UTC)
Author: ok
Date: Thu Nov 6 20:19:20 2008
New Revision: 353
URL: http://svn.gnome.org/viewvc/babl?rev=353&view=rev
Log:
* extensions/gegl-fixups.c: (conv_rgbAF_rgbaF),
(conv_rgbAF_lrgba8): make all components 0.0 when alpha < 0.00001.
Modified:
trunk/ChangeLog
trunk/extensions/gegl-fixups.c
Modified: trunk/extensions/gegl-fixups.c
==============================================================================
--- trunk/extensions/gegl-fixups.c (original)
+++ trunk/extensions/gegl-fixups.c Thu Nov 6 20:19:20 2008
@@ -475,6 +475,8 @@
{
float alpha = src[3];
float recip = 1.0/alpha;
+ if (alpha < 0.00001)
+ recip = 0.0;
dst[0] = src[0] * recip;
dst[1] = src[1] * recip;
dst[2] = src[2] * recip;
@@ -499,6 +501,8 @@
{
float alpha = src[3];
float recip = (1.0/alpha)*255.0;
+ if (alpha < 0.00001)
+ recip = 0.0;
dst[0] = (src[0] * recip);
dst[1] = (src[1] * recip);
dst[2] = (src[2] * recip);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]