Opensource Compliance Issue.
[platform/core/graphics/cairo.git] / test / pdiff / args.h
1 /*
2   Comapre Args
3   Copyright (C) 2006 Yangli Hector Yee
4
5   This program is free software; you can redistribute it and/or modify it under the terms of the
6   GNU General Public License as published by the Free Software Foundation; either version 2 of the License,
7   or (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10   without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11   See the GNU General Public License for more details.
12
13   You should have received a copy of the GNU General Public License along with this program;
14   if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
15 */
16
17 #ifndef _ARGS_H
18 #define _ARGS_H
19
20 #include "pdiff.h"
21
22 /* Args to pass into the comparison function */
23 typedef struct _args
24 {
25     cairo_surface_t     *surface_a;             /* Image A */
26     cairo_surface_t     *surface_b;             /* Image B */
27     bool                Verbose;                /* Print lots of text or not */
28     float               FieldOfView;            /* Field of view in degrees */
29     float               Gamma;                  /* The gamma to convert to linear color space */
30     float               Luminance;              /* the display's luminance */
31     unsigned int        ThresholdPixels;        /* How many pixels different to ignore */
32 } args_t;
33
34 void
35 args_init (args_t *args);
36
37 void
38 args_fini (args_t *args);
39
40 bool
41 args_parse (args_t *args, int argc, char **argv);
42
43 void
44 args_print (args_t *args);
45
46 #endif