aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-10-30 02:16:25 -0400
committerGregory Maxwell <greg@xiph.org>2011-10-30 02:20:41 -0400
commitc81b510239e84617a64222eb5faaf070009f3109 (patch)
treedb136cdfa353488e2197a058f9a07131e17d7b55 /include
parentb975a426a04e01b56868a10f60fbb8a9fb56141c (diff)
downloadlibopus-c81b510239e84617a64222eb5faaf070009f3109.tar.gz
Fix a number of multistream decoder bugs; add some very basic multistream decoder tests.
Diffstat (limited to 'include')
-rw-r--r--include/opus_multistream.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/opus_multistream.h b/include/opus_multistream.h
index 78c1b0ff..1fdb881c 100644
--- a/include/opus_multistream.h
+++ b/include/opus_multistream.h
@@ -89,6 +89,14 @@ OPUS_EXPORT int opus_multistream_encode_float(
int max_data_bytes /**< Allocated memory for payload; don't use for controlling bitrate */
);
+/** Gets the size of an OpusMSEncoder structure.
+ * @returns size
+ */
+OPUS_EXPORT opus_int32 opus_multistream_encoder_get_size(
+ int streams, /**< Total number of coded streams */
+ int coupled_streams /**< Number of coupled (stereo) streams */
+);
+
/** Deallocate a multstream encoder state */
OPUS_EXPORT void opus_multistream_encoder_destroy(OpusMSEncoder *st);
@@ -139,6 +147,13 @@ OPUS_EXPORT int opus_multistream_decode_float(
/**< decoded. If no such data is available the frame is decoded as if it were lost. */
);
+/** Gets the size of an OpusMSDecoder structure.
+ * @returns size
+ */
+OPUS_EXPORT opus_int32 opus_multistream_decoder_get_size(
+ int streams, /**< Total number of coded streams */
+ int coupled_streams /**< Number of coupled (stereo) streams */
+);
/** Get or set options on a multistream decoder state */
OPUS_EXPORT int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...);