blob: 5b3dd62fbaacb9e58a33c7f48bf14f6a17eb5e25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include <stdbool.h>
#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 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,
void * const out, const unsigned int bytes_per_channel);
|