static int debug_conversions = 0;
int _babl_instrument = 0;
-double
+double
_babl_legal_error (void)
{
static double error = 0.0;
return error;
}
-static int
+static int
max_path_length (void)
{
static int max_length = 0;
if (env)
max_length = atoi (env);
else
- max_length = 4; /* reducing this number makes finding short fishes much
+ max_length = 3; /* reducing this number makes finding short fishes much
faster - even if we lose out on some of the fast
- bigger fish
+ bigger fish, the fishes we can get with a max_length of 3
+ is actually 5, since we deepen the search twice if no
+ sufficient results are found.
*/
if (max_length > BABL_HARD_MAX_PATH_LENGTH)
max_length = BABL_HARD_MAX_PATH_LENGTH;
return max_length;
}
-int
+int
_babl_max_path_len (void)
{
return max_path_length ();
if (strcmp (color_space.str, "RGB ")
-#if 0 /* XXX: commented out, as gimp-2.99 doesn't like loading grayscale jpegs with grayscale icc profiles when it is enabled */
&& strcmp (color_space.str, "GRAY")
-#endif
)
{
*error = "not defining RGB, CMYK or GRAY space..";