[babl] babl: make missing fast path message explicit
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: make missing fast path message explicit
- Date: Sun, 11 Dec 2016 21:14:06 +0000 (UTC)
commit 48680f823461e5682613913deae182ed0c9e6be7
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Dec 11 22:13:25 2016 +0100
babl: make missing fast path message explicit
Explicit, and mandatory for BABL_UNSTABLE.
babl/babl-fish-path.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index 7a71184..3762d62 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -342,10 +342,24 @@ babl_fish_path (const Babl *source,
babl_free (babl);
babl_mutex_unlock (babl_format_mutex);
+#ifndef BABL_UNSTABLE
if (debug_conversions)
- fprintf (stderr, "babl: no fast path for \"%s\" to \"%s\"\n",
+#endif
+ {
+ static int warnings = 0;
+ if (warnings++ == 0)
+ fprintf (stderr,
+"Missing fast-path babl conversion detected, Implementing missing babl fast paths\n"
+"accelerates GEGL, GIMP and other software using babl, warnings are printed on\n"
+"first occurance of formats used where a conversion has to be synthesized\n"
+"programmatically by babl based on format description\n"
+"\n");
+
+ fprintf (stderr, "*WARNING*: missing babl fast path(s) between formats \"%s\" and \"%s\"\n",
babl_get_name (source),
babl_get_name (destination));
+
+ }
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]