summaryrefslogtreecommitdiff
path: root/palettes.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-02-14 14:46:44 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commitf92a757aae2bd379a60b8b17c7fec673a917701a (patch)
treef94cc2867f4a686daee370b8acaf08b96bb10da5 /palettes.h
parent6a7d86ec73c5212c52d76d9ddcb2023fc535b814 (diff)
downloadpucket-f92a757aae2bd379a60b8b17c7fec673a917701a.tar.gz
pucket-f92a757aae2bd379a60b8b17c7fec673a917701a.tar.bz2
pucket-f92a757aae2bd379a60b8b17c7fec673a917701a.zip
Vectorize accumulation
Also vectorizes some color functions and switches to double accumulation buffer. Does not seem to be slower.
Diffstat (limited to 'palettes.h')
-rw-r--r--palettes.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/palettes.h b/palettes.h
index 5d7b617..97b9e94 100644
--- a/palettes.h
+++ b/palettes.h
@@ -26,12 +26,13 @@ typedef struct {
unsigned char colors[256][3];
} lib_palette;
+#include "vector.h"
-void rgb2hsv(double *rgb, double *hsv);
-void hsv2rgb(double *hsv, double *rgb);
+double4 rgb2hsv(double4);
+double4 hsv2rgb(double4);
double flam3_calc_alpha(double density, double gamma, double linrange);
-void flam3_calc_newrgb(double *cbuf, double ls, double highpow, double *newrgb);
+double4 flam3_calc_newrgb(double4 cbuf, double ls, double highpow);
#endif