From 6123a81aecc4e3cd6c47c908fb7e9010d3d64798 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 16 Feb 2015 17:35:10 +0100 Subject: Vectorize color clipping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces redundant code with one function. Oddly this fixes rendering with earlyclip – not sure why. Drop transparency and channel settings (always transparent, always four channels). --- flam3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'flam3.h') diff --git a/flam3.h b/flam3.h index 5fe28f9..2434a78 100644 --- a/flam3.h +++ b/flam3.h @@ -601,9 +601,9 @@ typedef struct { #define flam3_field_even 1 #define flam3_field_odd 2 -/* out is pixel array. - pixels are rgb or rgba if nchan is 3 or 4. */ -int flam3_render(flam3_frame *f, void *out, int field, int nchan, int transp, stat_struct *stats); +/* out is pixel array. pixels are rgba */ +int flam3_render(flam3_frame *spec, void *out, + int field, stat_struct *stats); void rotate_by(double *p, double *center, double by); -- cgit v1.2.3