aboutsummaryrefslogtreecommitdiff
path: root/src/renderer.h
blob: 770a893809e1e025fd33d5215205a51dc3cae457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 */