[gimp/goat-invasion: 375/526] app: specify a lower tolerance for babl
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 375/526] app: specify a lower tolerance for babl
- Date: Sun, 22 Apr 2012 13:30:46 +0000 (UTC)
commit 02948cfc71a32f849cbe8ab8d6cf90aab13be68d
Author: Ãyvind KolÃs <pippin gimp org>
Date: Sun Apr 1 03:09:20 2012 +0100
app: specify a lower tolerance for babl
Permitting the use of LUT based functions for gamma conversions in float32.
app/gegl/gimp-gegl.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/gegl/gimp-gegl.c b/app/gegl/gimp-gegl.c
index 65547bf..c8a7042 100644
--- a/app/gegl/gimp-gegl.c
+++ b/app/gegl/gimp-gegl.c
@@ -98,6 +98,14 @@ gimp_gegl_init (Gimp *gimp)
"cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
NULL);
+ /* turn down the precision of babl - permitting use of lookup tables for
+ * gamma conversions, this precision is anyways high enough for both 8bit
+ * and 16bit operation
+ */
+ g_object_set (gegl_config (),
+ "babl-tolerance", 0.00001,
+ NULL);
+
g_signal_connect (config, "notify::tile-cache-size",
G_CALLBACK (gimp_gegl_notify_tile_cache_size),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]