summaryrefslogtreecommitdiff
path: root/thirdparty/etcpak/Dither.hpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-13 01:09:38 +0200
committerGitHub <noreply@github.com>2021-04-13 01:09:38 +0200
commit8793a464d312c5a48490fbec03c26f2835318063 (patch)
tree8be39ad26992b0bc10ee69fef5f0c5cadb6a0760 /thirdparty/etcpak/Dither.hpp
parent075f358fcddbb3df8417ef85baabdf3684a4efd2 (diff)
parentd840165a324b5c218ca3a4882f030986855c8383 (diff)
Merge pull request #47370 from fire/etcpak
Add thirdparty library etcpak for faster imports.
Diffstat (limited to 'thirdparty/etcpak/Dither.hpp')
-rw-r--r--thirdparty/etcpak/Dither.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/thirdparty/etcpak/Dither.hpp b/thirdparty/etcpak/Dither.hpp
new file mode 100644
index 0000000000..e43ce5676d
--- /dev/null
+++ b/thirdparty/etcpak/Dither.hpp
@@ -0,0 +1,21 @@
+#ifndef __DITHER_HPP__
+#define __DITHER_HPP__
+
+#include <stddef.h>
+#include <stdint.h>
+
+#ifdef __AVX2__
+# ifdef _MSC_VER
+# include <intrin.h>
+# else
+# include <x86intrin.h>
+# endif
+#endif
+
+void Dither( uint8_t* data );
+
+#ifdef __AVX2__
+void DitherAvx2( uint8_t* data, __m128i px0, __m128i px1, __m128i px2, __m128i px3 );
+#endif
+
+#endif