summaryrefslogtreecommitdiff
path: root/scriptc
diff options
context:
space:
mode:
authorMatthieu Delahaye <matthieu@multicorewareinc.com>2014-01-28 16:06:57 -0600
committerMatthieu Delahaye <matthieu@multicorewareinc.com>2014-02-11 10:19:42 -0600
commit197fc09254eace8d2625c23c192487e376b39d35 (patch)
tree9db7e65314c1e1ff9459dad8eff0f435fd832098 /scriptc
parent4cc3c4d3f4b6625cccbc83b4bd014f8129b103a4 (diff)
downloadrs-197fc09254eace8d2625c23c192487e376b39d35.tar.gz
Add image computing oriented builtin functions
The new built-in functions covers inverse DCT, ADST and walsh transforms. Change-Id: Ie7044da4a5becf2cc80d066a258211721a5939d4
Diffstat (limited to 'scriptc')
-rw-r--r--scriptc/rs_core.rsh5
-rw-r--r--scriptc/rs_dct.rsh14
-rw-r--r--scriptc/rs_fadst.rsh14
-rw-r--r--scriptc/rs_iadst.rsh14
-rw-r--r--scriptc/rs_idct.rsh13
-rw-r--r--scriptc/rs_walsh.rsh11
6 files changed, 71 insertions, 0 deletions
diff --git a/scriptc/rs_core.rsh b/scriptc/rs_core.rsh
index 9caf3551..6b38df4f 100644
--- a/scriptc/rs_core.rsh
+++ b/scriptc/rs_core.rsh
@@ -60,6 +60,11 @@
#include "rs_quaternion.rsh"
#include "rs_sampler.rsh"
#include "rs_time.rsh"
+#include "rs_idct.rsh"
+#include "rs_dct.rsh"
+#include "rs_iadst.rsh"
+#include "rs_fadst.rsh"
+#include "rs_walsh.rsh"
/**
* Send a message back to the client. Will not block and returns true
diff --git a/scriptc/rs_dct.rsh b/scriptc/rs_dct.rsh
new file mode 100644
index 00000000..51e789db
--- /dev/null
+++ b/scriptc/rs_dct.rsh
@@ -0,0 +1,14 @@
+#ifndef __RS_DCT_RSH__
+#define __RS_DCT_RSH__
+
+#if RS_VERSION > 19
+
+extern void dct4x4(rs_allocation input, rs_allocation output, int xoff, int yoff);
+extern void dct8x8(rs_allocation input, rs_allocation output, int xoff, int yoff);
+extern void dct16x16(rs_allocation input, rs_allocation output, int xoff, int yoff);
+extern void dct32x32(rs_allocation input, rs_allocation out, int xoff, int yoff);
+extern void dct32x32_rd(rs_allocation input, rs_allocation out, int xoff, int yoff);
+
+#endif
+
+#endif
diff --git a/scriptc/rs_fadst.rsh b/scriptc/rs_fadst.rsh
new file mode 100644
index 00000000..6dc0170f
--- /dev/null
+++ b/scriptc/rs_fadst.rsh
@@ -0,0 +1,14 @@
+#ifndef __RS_FADST_RSH__
+#define __RS_FADST_RSH__
+
+#if RS_VERSION > 19
+
+extern void fadst4(const rs_allocation input, rs_allocation output, int32_t xoff);
+
+extern void fadst8(const rs_allocation input, rs_allocation output, int32_t xoff);
+
+extern void fadst16(const rs_allocation input, rs_allocation output, int32_t xoff);
+
+#endif
+
+#endif \ No newline at end of file
diff --git a/scriptc/rs_iadst.rsh b/scriptc/rs_iadst.rsh
new file mode 100644
index 00000000..dad396c8
--- /dev/null
+++ b/scriptc/rs_iadst.rsh
@@ -0,0 +1,14 @@
+#ifndef __RS_IADST_RSH__
+#define __RS_IADST_RSH__
+
+#if RS_VERSION > 19
+
+extern void iadst4(const rs_allocation input, rs_allocation output, int32_t xoff);
+
+extern void iadst8(const rs_allocation input, rs_allocation output, int32_t xoff);
+
+extern void iadst16(const rs_allocation input, rs_allocation output, int32_t xoff);
+
+#endif
+
+#endif \ No newline at end of file
diff --git a/scriptc/rs_idct.rsh b/scriptc/rs_idct.rsh
new file mode 100644
index 00000000..e3797367
--- /dev/null
+++ b/scriptc/rs_idct.rsh
@@ -0,0 +1,13 @@
+#ifndef __RS_IDCT_RSH__
+#define __RS_IDCT_RSH__
+
+#if RS_VERSION > 19
+
+extern void idct4x4(const rs_allocation input, rs_allocation dest, int eob, int xoff, int yoff);
+extern void idct8x8(const rs_allocation input, rs_allocation dest, int eob, int xoff, int yoff);
+extern void idct16x16(const rs_allocation input, rs_allocation dest, int eob, int xoff, int yoff);
+extern void idct32x32(const rs_allocation input, rs_allocation dest, int eob, int xoff, int yoff);
+
+#endif
+
+#endif
diff --git a/scriptc/rs_walsh.rsh b/scriptc/rs_walsh.rsh
new file mode 100644
index 00000000..de058cec
--- /dev/null
+++ b/scriptc/rs_walsh.rsh
@@ -0,0 +1,11 @@
+#ifndef __RS_WALSH_RSH__
+#define __RS_WALSH_RSH__
+
+#if RS_VERSION > 19
+
+extern void walsh4x4(rs_allocation input, rs_allocation dest, int xoff, int yoff);
+extern void walsh4x4_1(rs_allocation input, rs_allocation dest, int xoff, int yoff);
+
+#endif
+
+#endif