The code marking LUTs as available for fishes is now protected behind an
environment variable BABL_LUT if it is set, the LUT code is re-enabled.
#define MIN(a, b) (((a) > (b)) ? (b) : (a))
#endif
+static int enable_lut = 0;
+
typedef struct GcContext {
long time;
} GcContext;
else
debug_conversions = 0;
+ env = getenv ("BABL_LUT");
+ if (env && env[0] != '\0')
+ enable_lut = 1;
+ else
+ enable_lut = 0;
+
return error;
}
babl_log ("-eeek{%i}\n", babl_dest->instance.class_type - BABL_MAGIC);
}
+ if (enable_lut)
{
int source_bpp = babl->fish_path.source_bpp;
int dest_bpp = babl->fish_path.dest_bpp;
babl_type_db ();
babl_trc_class_init ();
babl_space_class_init ();
+ _babl_legal_error ();
babl_component_db ();
babl_model_db ();
babl_format_db ();