mightymandel v16

GPU-based Mandelbrot set explorer

image.h
Go to the documentation of this file.
1 // mightymandel -- GPU-based Mandelbrot Set explorer
2 // Copyright (C) 2012,2013,2014,2015 Claude Heiland-Allen
3 // License GPL3+ http://www.gnu.org/licenses/gpl.html
4 
5 #ifndef IMAGE_H
6 #define IMAGE_H 1
7 
13 #include "logging.h"
14 
18 struct pixel {
19  float e;
20  float n;
21  int i;
22  int j;
23 };
24 
25 int cmp_pixel(const void *a, const void *b);
26 float *image_get_glitched(int width, int height);
27 float *image_get_iterations(int width, int height);
28 unsigned char *image_erode(const unsigned char *data, int width, int height);
29 struct pixel *image_find_peak_glitches(const float *glitched, const float *iterations, int width, int height, int *count);
30 
31 enum result_t image_result(int width, int height, double *iterations, double *exterior, double *interior, double *glitch);
32 
33 #endif