summaryrefslogtreecommitdiffstats
path: root/gfx/qcms/qcmsint.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /gfx/qcms/qcmsint.h
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/qcms/qcmsint.h')
-rw-r--r--gfx/qcms/qcmsint.h120
1 files changed, 120 insertions, 0 deletions
diff --git a/gfx/qcms/qcmsint.h b/gfx/qcms/qcmsint.h
new file mode 100644
index 0000000000..b08fc9490b
--- /dev/null
+++ b/gfx/qcms/qcmsint.h
@@ -0,0 +1,120 @@
+/* vim: set ts=8 sw=8 noexpandtab: */
+#ifndef QCMS_INT_H
+#define QCMS_INT_H
+
+#include "qcms.h"
+#include "qcmstypes.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef _MSC_VER
+#define ALIGN __declspec(align(16))
+#else
+#define ALIGN __attribute__(( aligned (16) ))
+#endif
+
+struct _qcms_transform;
+
+typedef void (*transform_fn_t)(const struct _qcms_transform *transform, const unsigned char *src, unsigned char *dest, size_t length);
+
+
+void qcms_transform_data_rgb_out_lut(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgba_out_lut(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_bgra_out_lut(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+
+void qcms_transform_data_rgb_out_lut_precache(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgba_out_lut_precache(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_bgra_out_lut_precache(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+
+void qcms_transform_data_rgb_out_lut_avx(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgba_out_lut_avx(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_bgra_out_lut_avx(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgb_out_lut_sse2(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgba_out_lut_sse2(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_bgra_out_lut_sse2(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgb_out_lut_sse1(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgba_out_lut_sse1(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_bgra_out_lut_sse1(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+
+void qcms_transform_data_rgb_out_lut_altivec(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgba_out_lut_altivec(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_bgra_out_lut_altivec(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+
+void qcms_transform_data_rgb_out_lut_neon(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_rgba_out_lut_neon(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+void qcms_transform_data_bgra_out_lut_neon(const qcms_transform *transform,
+ const unsigned char *src,
+ unsigned char *dest,
+ size_t length);
+
+extern bool qcms_supports_iccv4;
+extern bool qcms_supports_neon;
+extern bool qcms_supports_avx;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif