summaryrefslogtreecommitdiff
path: root/modules/g7221/g7221.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/g7221/g7221.h')
-rw-r--r--modules/g7221/g7221.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/g7221/g7221.h b/modules/g7221/g7221.h
new file mode 100644
index 0000000..635fc01
--- /dev/null
+++ b/modules/g7221/g7221.h
@@ -0,0 +1,29 @@
+/**
+ * @file g7221.h Private G.722.1 Interface
+ *
+ * Copyright (C) 2010 Creytiv.com
+ */
+
+struct g7221_aucodec {
+ struct aucodec ac;
+ uint32_t bitrate;
+};
+
+/* Encode */
+int g7221_encode_update(struct auenc_state **aesp, const struct aucodec *ac,
+ struct auenc_param *prm, const char *fmtp);
+int g7221_encode(struct auenc_state *aes, uint8_t *buf, size_t *len,
+ const int16_t *sampv, size_t sampc);
+
+
+/* Decode */
+int g7221_decode_update(struct audec_state **adsp, const struct aucodec *ac,
+ const char *fmtp);
+int g7221_decode(struct audec_state *ads, int16_t *sampv, size_t *sampc,
+ const uint8_t *buf, size_t len);
+
+
+/* SDP */
+int g7221_fmtp_enc(struct mbuf *mb, const struct sdp_format *fmt,
+ bool offer, void *arg);
+bool g7221_fmtp_cmp(const char *lfmtp, const char *rfmtp, void *arg);