diff options
author | Erik Reckase <e.reckase@gmail.com> | 2010-04-24 03:41:22 +0000 |
---|---|---|
committer | Scott Draves <spot@draves.org> | 2015-02-15 12:20:12 -0500 |
commit | be7f6fd741737db47eaee10aa4064104e20e4ec5 (patch) | |
tree | 685f4367a6aacd6dc95fc3dc827f4395701ead80 /src/flam3.h | |
parent | 9e40cff938a30a62dd386d5df977ad32d19d96f2 (diff) | |
download | pucket-be7f6fd741737db47eaee10aa4064104e20e4ec5.tar.gz pucket-be7f6fd741737db47eaee10aa4064104e20e4ec5.tar.bz2 pucket-be7f6fd741737db47eaee10aa4064104e20e4ec5.zip |
changed flam3_colorhist to take a random context as an argument rather than creating a new one each time. Also optimized the loop to only generate the precalc flags once and create the xform distrib array once.
git-svn-id: https://flam3.googlecode.com/svn/trunk@6 77852712-ef1d-11de-8684-7d64432d61a3
Diffstat (limited to 'src/flam3.h')
-rw-r--r-- | src/flam3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flam3.h b/src/flam3.h index 7ccb135..8d75e39 100644 --- a/src/flam3.h +++ b/src/flam3.h @@ -570,7 +570,7 @@ flam3_genome *flam3_parse_from_file(FILE *f, char *fn, int default_flag, int *nc void flam3_add_symmetry(flam3_genome *g, int sym); void flam3_improve_colors(flam3_genome *g, int ntries, int change_palette, int color_resolution); -EXPORT int flam3_colorhist(flam3_genome *cp, int num_batches, double *hist); +EXPORT int flam3_colorhist(flam3_genome *cp, int num_batches, randctx *rc, double *hist); EXPORT int flam3_estimate_bounding_box(flam3_genome *g, double eps, int nsamples, double *bmin, double *bmax, randctx *rc); void flam3_rotate(flam3_genome *g, double angle, int interp_type); /* angle in degrees */ |