d2/align: Migrate code (indicated as broken by GCC) to Libale.
[Ale.git] / d3 / cpf.cc
blob59d437ad3fbcac3028d1eb3c72e16a37ce547fba
1 // Copyright 2005 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * d3/cpf.cc: Control point file handler static variables.
25 #include "cpf.h"
27 FILE *cpf::load_f = NULL;
28 FILE *cpf::save_f = NULL;
29 int cpf::load_version = -1;
31 const char *cpf::load_n = NULL;
32 const char *cpf::save_n = NULL;
33 int cpf::save_version = 0;
35 struct cpf::control_point *cpf::cp_array = NULL;
36 unsigned int cpf::cp_array_max = 0;
37 unsigned int cpf::cp_index = 0;
39 ale_pos cpf::cpp_lower = 0.125;
40 ale_pos cpf::cpp_upper = 32;
41 ale_pos cpf::va_upper = 32;
43 ale_pos cpf::stereo_threshold = 4;
45 unsigned int cpf::systems_solved = 0;
47 int cpf::total_error_mean = 1;