aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/render.h
blob: f456616fa802ad93976369bda182ab10939fc124 (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
32
33
/*
 * render.h
 *
 * Render a high dynamic range buffer in some sensible way
 *
 * (c) 2006-2011 Thomas White <taw@physics.org>
 *
 * Part of CrystFEL - crystallography with a FEL
 *
 */


#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef RENDER_H
#define RENDER_H


enum {
	SCALE_COLOUR,
	SCALE_MONO,
	SCALE_INVMONO,
	SCALE_RATIO
};

/* Colour scale lookup */
extern void render_scale(double val, double max, int scale,
                         double *rp, double *gp, double *bp);


#endif	/* RENDER_H */