mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
app: specify a lower tolerance for babl
Permitting the use of LUT based functions for gamma conversions in float32.
This commit is contained in:
parent
609e2d8cda
commit
1b64710e66
|
@ -98,6 +98,14 @@ gimp_gegl_init (Gimp *gimp)
|
||||||
"cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
|
"cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
|
||||||
NULL);
|
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_signal_connect (config, "notify::tile-cache-size",
|
||||||
G_CALLBACK (gimp_gegl_notify_tile_cache_size),
|
G_CALLBACK (gimp_gegl_notify_tile_cache_size),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
Loading…
Reference in a new issue