bugs: Consider distinguishing default/non-default alignments for wrapper-spec'd ...
[Ale.git] / d2.h
blob6cc44f13c20dc7fa6191df5a5a0d09f3d0b5953a
1 // Copyright 2003, 2004 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 * Top-level header file for classes treating scenes as two-dimensional data.
23 * autoconf 'config.h' should be included after this file, as we undefine
24 * various autoconf defines herein.
27 #include <stdint.h>
28 #include <assert.h>
29 // #include <math.h>
30 #include <stdlib.h>
31 #include <stdio.h>
32 #include <string.h>
33 #include <limits.h>
35 #include <vector>
36 #include <stack>
37 #include <algorithm>
39 #include <iostream>
40 #include <ostream>
41 #include <typeinfo>
43 extern "C" {
44 #include <ale.h>
47 #include "ale_math.h"
48 #include "ale_real.h"
49 #include "ale_accum.h"
50 #include "ale_pos.h"
51 #include "ui/ui.h"
54 #ifdef USE_MAGICK
55 #include <magick/api.h>
58 * ImageMagick defines these, for reasons unclear.
59 * Since they clash with autotools names, undefine
60 * them here.
63 #undef PACKAGE_TARNAME
64 #undef PACKAGE_VERSION
65 #undef PACKAGE_STRING
66 #undef PACKAGE_NAME
67 #undef PACKAGE_BUGREPORT
68 #endif
70 #ifdef USE_FFTW
71 #include <fftw3.h>
72 #endif
74 #ifdef USE_UNIX
75 #include <sys/types.h>
76 #include <unistd.h>
77 #include <sys/wait.h>
78 #endif
80 #ifndef M_PI
81 #define M_PI 3.14159265358979323846
82 #endif
84 #include "thread.h"
85 #include "rand.h"
86 #include "gpu.h"
87 #include "accel.h"
92 * All header files in the d2 namespace.
95 namespace d2 {
96 #include "d2/exclusion.h"
97 #include "d2/pixel.h"
98 #include "d2/spixel.h"
99 #include "d2/pixel_accum.h"
100 #include "d2/exposure/exposure.h"
101 #include "d2/exposure/exposure_default.h"
102 #include "d2/exposure/exposure_linear.h"
103 #include "d2/exposure/exposure_boolean.h"
104 #include "d2/align.h"
105 #include "d2/transformation.h"
106 #include "d2/image.h"
110 * XXX: The placement of this file is somewhat of a hack. What should
111 * be done about this?
113 #include "optimizations.h"
115 namespace d2 {
116 #include "d2/image_accel.h"
117 #include "d2/image_ale_real.h"
118 #include "d2/image_weighted_avg.h"
119 #include "d2/image_weighted_simple.h"
120 #include "d2/image_weighted_median.h"
121 #include "d2/image_zero.h"
122 #include "d2/image_rw.h"
123 #include "d2/point.h"
124 #include "d2/ppm.h"
125 #include "d2/render.h"
126 #include "d2/render_parse.h"
127 #include "d2/tfile.h"
128 #include "d2/filter.h"
129 #include "d2/render/combine.h"
130 // #include "d2/render/drizzle.h"
131 // #include "d2/render/usm.h"
132 #include "d2/render/ipc.h"
133 // #include "d2/render/merge.h"
134 #include "d2/render/psf/psf.h"
135 #include "d2/render/psf/psf_template.h"
136 #include "d2/render/psf/box.h"
137 #include "d2/render/psf/circle.h"
138 #include "d2/render/psf/sum.h"
139 #include "d2/render/psf/stdin.h"
140 #include "d2/render/psf/stdin_vg.h"
141 #include "d2/render/psf/convolution.h"
142 #include "d2/render/psf/scalar_mult.h"
143 #include "d2/render/psf/psf_parse.h"
144 #include "d2/render/psf/psf_calibrate.h"
145 #include "d2/vise_core.h"