1 /* perform a symmetricality of conversion test on a set of randomized 2 * RGBA data */ 3 4 #include "config.h" 5 #include <stdlib.h> 6 #include <math.h> 7 #include "babl-internal.h" 8 9 int OK = 1; 10 11 model_check(Babl * babl,void * userdata)12static int model_check (Babl *babl, 13 void *userdata) 14 { 15 if (!babl_model_is_symmetric (babl)) 16 { 17 babl_log ("%s is not symmetric", babl->instance.name); 18 OK = 0; 19 } 20 return 0; 21 } 22 23 main(void)24int main (void) 25 { 26 babl_init (); 27 28 babl_set_extender (babl_extension_quiet_log ()); 29 babl_model_class_for_each (model_check, NULL); 30 31 babl_exit (); 32 33 return !OK; 34 } 35