aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-12-31 00:31:58 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2022-01-04 14:50:51 +0100
commitacce44d40fd11bf1ab843f54c71c131af1da4aa9 (patch)
tree1ecc3a932a911f1c9f68d3c7e6b97e60a1e58d48 /include
parent7abaf006ae7b8c6dc098ecda0afd7504af93b38d (diff)
amr: Introduce APIs to convert BE to IuUP/IuFP format
These APIs allow for easy re-formatting of received AMR to forward between regular RTP and IuUP. Related: OS#1937 Change-Id: Id2bd32d5f2060abe581730996dc4251381bf7d4f
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/netif/amr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/netif/amr.h b/include/osmocom/netif/amr.h
index 1a90af9..30e263c 100644
--- a/include/osmocom/netif/amr.h
+++ b/include/osmocom/netif/amr.h
@@ -115,5 +115,9 @@ bool osmo_amr_is_oa(uint8_t *payload, unsigned int payload_len);
int osmo_amr_oa_to_bwe(uint8_t *payload, unsigned int payload_len);
int osmo_amr_bwe_to_oa(uint8_t *payload, unsigned int payload_len,
unsigned int payload_maxlen);
+int osmo_amr_bwe_to_iuup(uint8_t *payload, unsigned int payload_len);
+int osmo_amr_iuup_to_bwe(uint8_t *payload, unsigned int payload_len,
+ unsigned int payload_maxlen);
+int osmo_amr_bytes_to_ft(size_t bytes);
#endif