summaryrefslogtreecommitdiff
path: root/modules/opus/opus.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/opus/opus.h')
-rw-r--r--modules/opus/opus.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/opus/opus.h b/modules/opus/opus.h
new file mode 100644
index 0000000..2bed161
--- /dev/null
+++ b/modules/opus/opus.h
@@ -0,0 +1,34 @@
+/**
+ * @file opus.h Private Opus Interface
+ *
+ * Copyright (C) 2010 Creytiv.com
+ */
+
+
+struct opus_param {
+ opus_int32 srate;
+ opus_int32 bitrate;
+ opus_int32 stereo;
+ opus_int32 cbr;
+ opus_int32 inband_fec;
+ opus_int32 dtx;
+};
+
+
+/* Encode */
+int opus_encode_update(struct auenc_state **aesp, const struct aucodec *ac,
+ struct auenc_param *prm, const char *fmtp);
+int opus_encode_frm(struct auenc_state *aes, uint8_t *buf, size_t *len,
+ const int16_t *sampv, size_t sampc);
+
+
+/* Decode */
+int opus_decode_update(struct audec_state **adsp, const struct aucodec *ac,
+ const char *fmtp);
+int opus_decode_frm(struct audec_state *ads, int16_t *sampv, size_t *sampc,
+ const uint8_t *buf, size_t len);
+int opus_decode_pkloss(struct audec_state *st, int16_t *sampv, size_t *sampc);
+
+
+/* SDP */
+void opus_decode_fmtp(struct opus_param *prm, const char *fmtp);