aboutsummaryrefslogtreecommitdiff
path: root/sort.h
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-07-16 21:49:05 +0200
committerJulian T <julian@jtle.dk>2020-07-16 21:49:05 +0200
commit3a4b55c20ac040ace53aba5f2715b9c080bea17f (patch)
tree9acbfd74f93fc011329a40dd0a4dc5213fadec3e /sort.h
Initial working pixelsorter
Diffstat (limited to 'sort.h')
-rw-r--r--sort.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sort.h b/sort.h
new file mode 100644
index 0000000..651406d
--- /dev/null
+++ b/sort.h
@@ -0,0 +1,13 @@
+#ifndef SORT_H
+#define SORT_H
+
+#include <FreeImage.h>
+
+typedef struct {
+ uint8_t color[3];
+ uint16_t val;
+} pixelm;
+
+void quicksort(pixelm *arr, unsigned lo, unsigned hi);
+
+#endif