babl: expand sRGB formula trc storage with 2 more parameters
authorØyvind Kolås <pippin@gimp.org>
Fri, 7 Aug 2020 20:03:51 +0000 (22:03 +0200)
committerØyvind Kolås <pippin@gimp.org>
Fri, 7 Aug 2020 20:03:51 +0000 (22:03 +0200)
babl/babl-trc.c

index cfb31b1c3113b73e541c8fc2d93dad6659a53a7b..b1ba8a81b9a397b70b8e09039ab5e23899f33c4f 100644 (file)
@@ -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;