aboutsummaryrefslogtreecommitdiff
path: root/sort.h
diff options
context:
space:
mode:
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