33 #ifndef OPUS_MULTISTREAM_H
34 #define OPUS_MULTISTREAM_H
47 #define __opus_check_encstate_ptr(ptr) ((ptr) + ((ptr) - (OpusEncoder**)(ptr)))
48 #define __opus_check_decstate_ptr(ptr) ((ptr) + ((ptr) - (OpusDecoder**)(ptr)))
55 #define OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST 5120
56 #define OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST 5122
87 #define OPUS_MULTISTREAM_GET_ENCODER_STATE(x,y) OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST, __opus_check_int(x), __opus_check_encstate_ptr(y)
100 #define OPUS_MULTISTREAM_GET_DECODER_STATE(x,y) OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST, __opus_check_int(x), __opus_check_decstate_ptr(y)
210 OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_surround_encoder_get_size(
264 const unsigned char *mapping,
267 ) OPUS_ARG_NONNULL(5);
269 OPUS_EXPORT OPUS_WARN_UNUSED_RESULT
OpusMSEncoder *opus_multistream_surround_encoder_create(
274 int *coupled_streams,
275 unsigned char *mapping,
278 ) OPUS_ARG_NONNULL(4) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6);
334 const
unsigned char *mapping,
336 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6);
338 OPUS_EXPORT
int opus_multistream_surround_encoder_init(
344 int *coupled_streams,
345 unsigned char *mapping,
347 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6) OPUS_ARG_NONNULL(7);
381 const opus_int16 *pcm,
384 opus_int32 max_data_bytes
385 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
429 opus_int32 max_data_bytes
430 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
511 const
unsigned char *mapping,
513 ) OPUS_ARG_NONNULL(5);
555 const
unsigned char *mapping
556 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6);
589 const
unsigned char *data,
594 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
627 const
unsigned char *data,
632 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);