From 4d2d896e28446928d820bf1353abcf40e3f66ed8 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 1 Mar 2015 13:02:50 +0100 Subject: Switch to OpenMP Replaces quality (target density) parameter with time limit. In preparation for rendering resumption. --- rect.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'rect.h') 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 -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); -- cgit v1.2.3