[babl] babl: expand sRGB formula trc storage with 2 more parameters



commit a7d1602fd503f039ffceca63e632841f2d7bc815
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Aug 7 22:03:51 2020 +0200

    babl: expand sRGB formula trc storage with 2 more parameters

 babl/babl-trc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/babl/babl-trc.c b/babl/babl-trc.c
index cfb31b1c3..b1ba8a81b 100644
--- a/babl/babl-trc.c
+++ b/babl/babl-trc.c
@@ -422,10 +422,10 @@ babl_trc_new (const char *name,
                                          POLY_GAMMA_DEGREE, POLY_GAMMA_SCALE);
       break;
     case BABL_TRC_FORMULA_SRGB:
-      trc_db[i].lut = babl_calloc (sizeof (float), 5);
+      trc_db[i].lut = babl_calloc (sizeof (float), 7);
       {
         int j;
-        for (j = 0; j < 5; j++)
+        for (j = 0; j < 7; j++)
           trc_db[i].lut[j] = lut[j];
       }
       trc_db[i].fun_to_linear = _babl_trc_formula_srgb_to_linear;


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