[babl] babl: use trcs own fun directly in early stages



commit 8283270816ebafeb52242229680a3f78ba4e7c22
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Sep 2 15:33:19 2017 +0200

    babl: use trcs own fun directly in early stages

 babl/babl-trc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-trc.c b/babl/babl-trc.c
index 81b0153..b9f1c49 100644
--- a/babl/babl-trc.c
+++ b/babl/babl-trc.c
@@ -677,7 +677,7 @@ babl_trc_new (const char *name,
     trc_db[i].inv_lut = babl_calloc (sizeof (float), n_lut);
     for (j = 0; j < n_lut; j++)
       trc_db[i].inv_lut[j] =
-        babl_trc_to_linear (BABL(&trc_db[i]), trc_db[i].lut[(int) ( j/(n_lut-1.0) * (n_lut-1))]);
+        babl_trc_lut_to_linear (BABL(&trc_db[i]), trc_db[i].lut[(int) ( j/(n_lut-1.0) * (n_lut-1))]);
   }
 
   trc_db[i].fun_to_linear_buf = _babl_trc_to_linear_buf_generic;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]