aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/render.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-02-26 14:20:04 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:24 +0200
commitcb47e755858296d59f4ceb373bcd20b045004f56 (patch)
tree5526da31f373c3e1323dbae80f12caa13b9e38e8 /libcrystfel/src/render.h
parentca3b3162f037506ae224e0f8bb7c6f669a43d1b1 (diff)
Move colour scale and pixbuf rendering to libcrystfel
Also, split into two files (colscale and render), and remove TIFF stuff.
Diffstat (limited to 'libcrystfel/src/render.h')
-rw-r--r--libcrystfel/src/render.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/libcrystfel/src/render.h b/libcrystfel/src/render.h
index a3292515..411c50ce 100644
--- a/libcrystfel/src/render.h
+++ b/libcrystfel/src/render.h
@@ -1,7 +1,7 @@
/*
* render.h
*
- * Render a high dynamic range buffer in some sensible way
+ * Render image data to GdkPixbufs
*
* Copyright © 2012-2020 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
@@ -33,27 +33,26 @@
#ifndef RENDER_H
#define RENDER_H
+#include "image.h"
+
/**
* \file render.h
- * Colour scale for rendering
+ * Render image data to GdkPixbufs
*/
-enum {
- SCALE_COLOUR,
- SCALE_MONO,
- SCALE_INVMONO,
- SCALE_RATIO,
- SCALE_GEOPTIMISER
-};
-
#ifdef __cplusplus
extern "C" {
#endif
-/* Colour scale lookup */
-extern void render_scale(double val, double max, int scale,
- double *rp, double *gp, double *bp);
+#ifdef HAVE_GDKPIXBUF
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+extern GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int scale);
+extern GdkPixbuf **render_panels(struct image *image,
+ int binning, int scale, double boost,
+ int *n_pixbufs);
+#endif /* HAVE_GDKPIXBUF */
#ifdef __cplusplus
}