forked from skeeto/mandel-simd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmandel.h
More file actions
40 lines (33 loc) · 698 Bytes
/
mandel.h
File metadata and controls
40 lines (33 loc) · 698 Bytes
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
34
35
36
37
38
39
40
#pragma once
#include <stddef.h>
#include <stdbool.h>
#include "color.h"
typedef struct fpair {
float x, y;
} fpair;
typedef enum ColorMode
{
GREYSCALE = 1, ITERATION_COUNT = 2, HISTOGRAM = 3, DEM = 4
} ColorMode;
typedef struct Size_tFloatPair{
size_t k;
float mu;
} escapedatum;
size_t* histogram;
//escapedatum **escapedata;
size_t** escapedata;
typedef struct spec {
/* Image Specification */
size_t width;
size_t height;
int max_color_value;
/* Fractal Specification */
fpair xlim;
fpair ylim;
bool is_point_width;
size_t iterations;
float bailout_sq;
ColorMode mode;
Scaling_Mode index_mode;
} spec;
void convert_point_width_spec_to_range(spec* s);