babl r360 - in trunk: . babl
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: babl r360 - in trunk: . babl
- Date: Wed, 14 Jan 2009 19:39:57 +0000 (UTC)
Author: martinn
Date: Wed Jan 14 19:39:56 2009
New Revision: 360
URL: http://svn.gnome.org/viewvc/babl?rev=360&view=rev
Log:
* babl/babl.h (BABL_ALPHA_THRESHOLD): Instead of an arbitrary
threshold, use one hundredth of the channel intensity resolution
when using 16 bit integers i.e. 0.01 / (2^16 - 1).
Modified:
trunk/ChangeLog
trunk/babl/babl.h
Modified: trunk/babl/babl.h
==============================================================================
--- trunk/babl/babl.h (original)
+++ trunk/babl/babl.h Wed Jan 14 19:39:56 2009
@@ -46,9 +46,11 @@
#define BABL_MAGIC 0xbAb100
/* Alpha threshold used in the reference implementation for
- * un-pre-multiplication of color data.
+ * un-pre-multiplication of color data:
+ *
+ * 0.01 / (2^16 - 1)
*/
-#define BABL_ALPHA_THRESHOLD 0.0001
+#define BABL_ALPHA_THRESHOLD 0.000000152590219
enum {
BABL_INSTANCE = BABL_MAGIC,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]