aboutsummaryrefslogtreecommitdiff
path: root/src/opus_private.h
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2012-11-07 19:57:33 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2012-11-07 20:00:22 -0500
commitae0e2ca89f81e608bd4c3839bf0cb62be3549e99 (patch)
tree12c8909730bfa03856acfacc6e72acf28b2f471e /src/opus_private.h
parent8b906c102b37ce74571898c8879c01b2a9088fb3 (diff)
downloadlibopus-ae0e2ca89f81e608bd4c3839bf0cb62be3549e99.tar.gz
Splits out the Opus multi-stream encoder and decoder
Diffstat (limited to 'src/opus_private.h')
-rw-r--r--src/opus_private.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/opus_private.h b/src/opus_private.h
index e4f4c76e..1362073c 100644
--- a/src/opus_private.h
+++ b/src/opus_private.h
@@ -40,6 +40,19 @@ struct OpusRepacketizer {
int framesize;
};
+typedef struct ChannelLayout {
+ int nb_channels;
+ int nb_streams;
+ int nb_coupled_streams;
+ unsigned char mapping[256];
+} ChannelLayout;
+
+int validate_layout(const ChannelLayout *layout);
+int get_left_channel(const ChannelLayout *layout, int stream_id, int prev);
+int get_right_channel(const ChannelLayout *layout, int stream_id, int prev);
+int get_mono_channel(const ChannelLayout *layout, int stream_id, int prev);
+
+
#define MODE_SILK_ONLY 1000
#define MODE_HYBRID 1001