summaryrefslogtreecommitdiff
path: root/gsmstack/interleave.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2008-12-01 10:28:04 +0530
committerHarald Welte <laforge@gnumonks.org>2008-12-01 10:28:04 +0530
commit10f2fcca8dd1be2719bccefa16fd9dac9a76c749 (patch)
tree0b521a2ccc7d0d81a89e08b05650dec2421777d2 /gsmstack/interleave.h
parentfd405f799425b6832a0c9cc7a56b07f43288b8b1 (diff)
[gsmdecode] import {interleave,conv}.[ch] from gsm-tvoid
* change convolutional decode to cope with TCH * add tch.c file with reordering/decoding for TCH/F
Diffstat (limited to 'gsmstack/interleave.h')
-rw-r--r--gsmstack/interleave.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gsmstack/interleave.h b/gsmstack/interleave.h
new file mode 100644
index 0000000..cfd4888
--- /dev/null
+++ b/gsmstack/interleave.h
@@ -0,0 +1,19 @@
+/* This file was taken from gsm-tvoid */
+/*
+ * $Id:$
+ */
+
+#ifndef __GSMSP_INTERLEAVE_H__
+#define __GSMSP_INTERLEAVE_H__ 1
+
+typedef struct _interleave_ctx
+{
+ unsigned short *trans;
+ int trans_size;
+} INTERLEAVE_CTX;
+
+int interleave_init(INTERLEAVE_CTX *ictx, int size, int block_size);
+int interleave_deinit(INTERLEAVE_CTX *ictx);
+void interleave_decode(INTERLEAVE_CTX *ictx, unsigned char *dst, unsigned char *src);
+
+#endif
personal git repositories of Harald Welte. Your mileage may vary