summaryrefslogtreecommitdiff
path: root/rect.h
diff options
context:
space:
mode:
Diffstat (limited to 'rect.h')
-rw-r--r--rect.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/rect.h b/rect.h
index 3def002..39c76cb 100644
--- a/rect.h
+++ b/rect.h
@@ -1,6 +1,18 @@
#pragma once
#include <stdbool.h>
-int render_parallel (flam3_frame *spec, void *out, stat_struct *stats);
+#include "vector.h"
+typedef struct {
+ /* bucket width/height */
+ uint2 dim;
+ double4 *data;
+ unsigned long int badvals, samples;
+} bucket;
+
+void bucket_init (bucket * const b, const uint2 dim);
+bool render_bucket (flam3_genome * const genome, bucket * const bucket,
+ const double timelimit);
+void render_image (const flam3_genome * const genome, const bucket * const b,
+ void * const out, const unsigned int bytes_per_channel);