diff options
author | Thomas White <taw@physics.org> | 2020-08-01 15:13:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-01 15:19:26 +0200 |
commit | 189da15810deabd739d7c11c6e95fea55739fe60 (patch) | |
tree | e86e43fcbbf8278b792a74daf684cde3bd6e2bbf /src/renderer.h |
Initial import from archive
Diffstat (limited to 'src/renderer.h')
-rw-r--r-- | src/renderer.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/renderer.h b/src/renderer.h new file mode 100644 index 0000000..770a893 --- /dev/null +++ b/src/renderer.h @@ -0,0 +1,31 @@ +/* + * renderer.c + * + * Render Fourier Transform output array into display array + * + * (c) 2006-2007 Thomas White <taw27@cam.ac.uk> + * + * synth2D - Two-Dimensional Crystallographic Fourier Synthesis + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#ifndef RENDERER_H +#define RENDERER_H + +typedef struct { + double *re; + double *im; +} ComplexArray; + +extern double renderer_width(int width, int height, double gamma, int nx, int ny); +extern double renderer_height(int width, int height, double gamma, int nx, int ny); +extern ComplexArray renderer_draw(fftw_complex *out, int width, int height, double gamma, int nx, int ny); +extern double renderer_map_x(double x, double y, int width, int height, double gamma, int nx, int ny); +extern double renderer_map_y(double x, double y, int width, int height, double gamma, int nx, int ny); + +#endif /* RENDERER_H */ + |