File: models.c

package info (click to toggle)
babl 0.1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,912 kB
  • sloc: ansic: 15,162; sh: 11,131; makefile: 362; ruby: 90
file content (34 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* perform a symmetricality of conversion test on a set of randomized
 * RGBA data */

#include "config.h"
#include <stdlib.h>
#include <math.h>
#include "babl-internal.h"

int OK = 1;


static int model_check (Babl *babl,
                        void *userdata)
{
  if (!babl_model_is_symmetric (babl))
    {
      babl_log ("%s is not symmetric", babl->instance.name);
      OK = 0;
    }
  return 0;
}


int main (void)
{
  babl_init ();

  babl_set_extender (babl_extension_quiet_log ());
  babl_model_class_for_each (model_check, NULL);

  babl_exit ();

  return !OK;
}