return;
}
+ babl_mutex_lock (babl_reference_mutex);
if (babl->fish.source->format.type[0] == type_float &&
BABL(babl->fish.source)->format.components ==
BABL(babl->fish.source)->format.model->components && 0)
n);
}
}
+ babl_mutex_unlock (babl_reference_mutex);
if (((babl->fish.source)->format.space !=
((babl->fish.destination)->format.space)))
#if BABL_DEBUG_MEM
BablMutex *babl_debug_mutex;
#endif
+BablMutex *babl_reference_mutex;
void
babl_internal_init (void)
babl_set_malloc (malloc);
babl_set_free (free);
babl_format_mutex = babl_mutex_new ();
+ babl_reference_mutex = babl_mutex_new ();
#if BABL_DEBUG_MEM
babl_debug_mutex = babl_mutex_new ();
#endif
babl_internal_destroy (void)
{
babl_mutex_destroy (babl_format_mutex);
+ babl_mutex_destroy (babl_reference_mutex);
#if BABL_DEBUG_MEM
babl_mutex_destroy (babl_debug_mutex);
#endif
extern int babl_hmpf_on_name_lookups;
extern int babl_in_fish_path;
extern BablMutex *babl_format_mutex;
+extern BablMutex *babl_reference_mutex;
#define BABL_DEBUG_MEM 0
#if BABL_DEBUG_MEM
static char *utf8_bar[]={" ","1","2","3","4","5","6","7","8"};
*/
-#define NUM_TEST_PIXELS (1024*16)
+#define NUM_TEST_PIXELS (1024*1024)
static float test_pixels_float[NUM_TEST_PIXELS*4];
static char test_pixels_in[NUM_TEST_PIXELS * 6 * 8];
static char test_pixels_out[NUM_TEST_PIXELS * 6 * 8];