aboutsummaryrefslogtreecommitdiff
path: root/Src/nsutil/alpha.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/nsutil/alpha.h')
-rw-r--r--Src/nsutil/alpha.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Src/nsutil/alpha.h b/Src/nsutil/alpha.h
new file mode 100644
index 00000000..e971e262
--- /dev/null
+++ b/Src/nsutil/alpha.h
@@ -0,0 +1,20 @@
+#pragma once
+#include <bfc/platform/types.h>
+#include <bfc/platform/export.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef NSUTIL_EXPORTS
+#define NSUTIL_EXPORT __declspec(dllexport)
+#else
+#define NSUTIL_EXPORT __declspec(dllimport)
+#endif
+
+NSUTIL_EXPORT int nsutil_alpha_Premultiply_RGB32(void *image, size_t image_stride, int width, int height);
+NSUTIL_EXPORT int nsutil_alpha_PremultiplyValue_RGB8(void *image, size_t image_stride, int width, int height, uint8_t alpha);
+
+#ifdef __cplusplus
+}
+#endif \ No newline at end of file