Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / chirptest / chirpgraph.h
blob14ecbf190e4a4df3e2ccc87340ee474ed1e13af2
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggGhost SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE OggGhost SOURCE CODE IS (C) COPYRIGHT 2007-2011 *
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
10 * *
11 ********************************************************************
13 function: research-grade chirp extraction code
14 last mod: $Id$
16 ********************************************************************/
18 #include <cairo/cairo.h>
19 #define DT_iterations 0
20 #define DT_abserror 1
21 #define DT_percent 2
22 extern int toppad;
23 extern int leftpad;
25 extern void set_error_color(cairo_t *c, float err,float a);
26 extern void set_iter_color(cairo_t *cC, int ret, float a);
27 extern void to_png(cairo_t *c,char *base, char *name);
28 extern void destroy_page(cairo_t *c);
29 extern cairo_t *draw_page(char *title,
30 char *subtitle1,
31 char *subtitle2,
32 char *subtitle3,
33 char *xaxis_label,
34 char *yaxis_label,
35 char *legend_label,
36 int datatype,
37 int xdcp);
38 extern void setup_graphs(int start_x_step,
39 int end_x_step, /* inclusive; not one past */
40 int x_major_d,
41 float x_major_f,
43 int start_y_step,
44 int end_y_step, /* inclusive; not one past */
45 int y_major_d,
46 float y_major_f,
48 int subtitles,
49 float fs);