summaryrefslogtreecommitdiff
path: root/rect.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-03-07 11:21:07 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commit78dc71bda71fc8eb7accfcf68d010a0fea1a7921 (patch)
tree3ddfe39c70b975920470d9842db0d9a621c4709b /rect.h
parent4c21b2ea8d42a92e2f1cbfd93346ff77041ea44d (diff)
downloadpucket-78dc71bda71fc8eb7accfcf68d010a0fea1a7921.tar.gz
pucket-78dc71bda71fc8eb7accfcf68d010a0fea1a7921.tar.bz2
pucket-78dc71bda71fc8eb7accfcf68d010a0fea1a7921.zip
Add bucket cache
Stores accumulation buckets. Use case: Run n seconds, check image noise levels, run again (with cache and thus previous results), check image agin, …
Diffstat (limited to 'rect.h')
-rw-r--r--rect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rect.h b/rect.h
index 39c76cb..5b3dd62 100644
--- a/rect.h
+++ b/rect.h
@@ -11,6 +11,9 @@ typedef struct {
} bucket;
void bucket_init (bucket * const b, const uint2 dim);
+bool bucket_deserialize (bucket * const b, const char *file);
+void bucket_serialize (bucket * const b, const char *file);
+
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,