From 1a4ea5b4364b756276da5d378d81e3b15a1d5f84 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Fri, 8 Oct 2010 15:09:16 +0200 Subject: codec: Add bit ordering tables from specs for HR,FR,EFR & AMR Signed-off-by: Sylvain Munaut --- include/osmocom/codec/codec.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/osmocom/codec/codec.h (limited to 'include/osmocom') diff --git a/include/osmocom/codec/codec.h b/include/osmocom/codec/codec.h new file mode 100644 index 00000000..82013e55 --- /dev/null +++ b/include/osmocom/codec/codec.h @@ -0,0 +1,19 @@ +#ifndef _OSMOCOM_CODEC_H +#define _OSMOCOM_CODEC_H + +#include + +extern uint16_t gsm610_bitorder[]; /* FR */ +extern uint16_t gsm620_bitorder[]; /* HR */ +extern uint16_t gsm660_bitorder[]; /* EFR */ + +extern uint16_t gsm690_12_2_bitorder[]; /* AMR 12.2 kbits */ +extern uint16_t gsm690_10_2_bitorder[]; /* AMR 10.2 kbits */ +extern uint16_t gsm690_7_95_bitorder[]; /* AMR 7.95 kbits */ +extern uint16_t gsm690_7_4_bitorder[]; /* AMR 7.4 kbits */ +extern uint16_t gsm690_6_7_bitorder[]; /* AMR 6.7 kbits */ +extern uint16_t gsm690_5_9_bitorder[]; /* AMR 5.9 kbits */ +extern uint16_t gsm690_5_15_bitorder[]; /* AMR 5.15 kbits */ +extern uint16_t gsm690_4_75_bitorder[]; /* AMR 4.75 kbits */ + +#endif /* _OSMOCOM_CODEC_H */ -- cgit v1.2.3