40 #ifdef ALLOW_FULL_COMPLEXITY 44 #define ENC_DYN_ALLOC_SIZE (2160 + 3332 + 1984 + 2) 47 #define ENC_DYN_ALLOC_SIZE (1080 + 3332 + 2) 52 #define ENC_DYN_ALLOC_SIZE (1080+(2*21)+960+1216+2) 55 #define DEC_DYN_ALLOC_SIZE (168+960+1216+2) 349 ) OPUS_ARG_NONNULL(1);
388 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
429 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
567 ) OPUS_ARG_NONNULL(1);
586 OPUS_EXPORT OPUS_WARN_UNUSED_RESULT
int opus_decode(
588 const
unsigned char *data,
594 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
614 const
unsigned char *data,
619 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
635 OPUS_EXPORT
int opus_decoder_ctl(OpusDecoder *st,
int request, ...) OPUS_ARG_NONNULL(1);
656 const
unsigned char *data,
658 unsigned char *out_toc,
659 const
unsigned char *frames[48],
662 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
734 OPUS_EXPORT
void opus_pcm_soft_clip(
float *pcm,
int frame_size,
int channels,
float *softclip_mem);
OPUS_EXPORT int opus_encoder_ctl(OpusEncoder *st, int request,...) OPUS_ARG_NONNULL(1)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_encode(OpusEncoder *st, const opus_int16 *pcm, int frame_size, unsigned char *data, opus_int32 max_data_bytes, opus_int32 *Scratch_Buffer) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_bandwidth(const unsigned char *data) OPUS_ARG_NONNULL(1)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusEncoder * opus_encoder_create(opus_int32 Fs, int channels, int application, int complexity, int *error)
Opus reference implementation types.
struct OpusRepacketizer OpusRepacketizer
Definition: opus.h:887
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_nb_frames(const unsigned char packet[], opus_int32 len) OPUS_ARG_NONNULL(1)
OPUS_EXPORT void opus_repacketizer_destroy(OpusRepacketizer *rp)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_repacketizer_get_nb_frames(OpusRepacketizer *rp) OPUS_ARG_NONNULL(1)
short opus_int16
Definition: opus_types.h:144
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_packet_unpad(unsigned char *data, opus_int32 len)
OPUS_EXPORT int opus_decoder_ctl(OpusDecoder *st, int request,...) OPUS_ARG_NONNULL(1)
OPUS_EXPORT int opus_packet_parse(const unsigned char *data, opus_int32 len, unsigned char *out_toc, const unsigned char *frames[48], opus_int16 size[48], int *payload_offset) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decode(OpusDecoder *st, const unsigned char *data, opus_int32 len, opus_int16 *pcm, int frame_size, int decode_fec, opus_int32 *Scratch_Buffer) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4)
OPUS_EXPORT int opus_multistream_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len, int nb_streams)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_samples_per_frame(const unsigned char *data, opus_int32 Fs) OPUS_ARG_NONNULL(1)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_repacketizer_out(OpusRepacketizer *rp, unsigned char *data, opus_int32 maxlen) OPUS_ARG_NONNULL(1)
Opus reference implementation constants.
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_packet_unpad(unsigned char *data, opus_int32 len, int nb_streams)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusDecoder * opus_decoder_create(opus_int32 Fs, int channels, int *error)
OPUS_EXPORT int opus_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_repacketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsigned char *data, opus_int32 maxlen) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4)
OPUS_EXPORT int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2)
OPUS_EXPORT int opus_encoder_init(OpusEncoder *st, opus_int32 Fs, int channels, int application, int complexity) OPUS_ARG_NONNULL(1)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_encoder_get_size(int channels, int complexity)
OPUS_EXPORT int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels) OPUS_ARG_NONNULL(1)
int opus_int32
Definition: opus_types.h:146
struct OpusEncoder OpusEncoder
Definition: opus.h:282
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decoder_get_size(int channels)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusRepacketizer * opus_repacketizer_create(void)
OPUS_EXPORT void opus_pcm_soft_clip(float *pcm, int frame_size, int channels, float *softclip_mem)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_encode_float(OpusEncoder *st, const float *pcm, int frame_size, unsigned char *data, opus_int32 max_data_bytes) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_nb_channels(const unsigned char *data) OPUS_ARG_NONNULL(1)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decoder_get_nb_samples(const OpusDecoder *dec, const unsigned char packet[], opus_int32 len) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2)
OPUS_EXPORT void opus_encoder_destroy(OpusEncoder *st)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_nb_samples(const unsigned char packet[], opus_int32 len, opus_int32 Fs) OPUS_ARG_NONNULL(1)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decode_float(OpusDecoder *st, const unsigned char *data, opus_int32 len, float *pcm, int frame_size, int decode_fec) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4)
OPUS_EXPORT void opus_decoder_destroy(OpusDecoder *st)
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_repacketizer_get_size(void)
struct OpusDecoder OpusDecoder
Definition: opus.h:520
OPUS_EXPORT OpusRepacketizer * opus_repacketizer_init(OpusRepacketizer *rp) OPUS_ARG_NONNULL(1)