|
Opus audio codec (RFC 6716): API and operations manual
|
1.3.1
|
|
Go to the documentation of this file.
45 # define OPUS_CUSTOM_EXPORT OPUS_EXPORT
46 # define OPUS_CUSTOM_EXPORT_STATIC OPUS_EXPORT
48 # define OPUS_CUSTOM_EXPORT
50 # define OPUS_CUSTOM_EXPORT_STATIC static OPUS_INLINE
52 # define OPUS_CUSTOM_EXPORT_STATIC
130 #if !defined(OPUS_BUILD) || defined(CELT_ENCODER_C)
141 ) OPUS_ARG_NONNULL(1);
160 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2);
178 ) OPUS_ARG_NONNULL(1);
207 unsigned char *compressed,
208 int maxCompressedBytes
209 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
228 unsigned char *compressed,
229 int maxCompressedBytes
230 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4);
241 #if !defined(OPUS_BUILD) || defined(CELT_DECODER_C)
252 ) OPUS_ARG_NONNULL(1);
270 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2);
287 ) OPUS_ARG_NONNULL(1);
305 const unsigned char *data,
309 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
322 const
unsigned char *data,
326 ) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4);
int opus_custom_decoder_get_size(const OpusCustomMode *mode, int channels)
Gets the size of an OpusCustomDecoder structure.
OpusCustomEncoder * opus_custom_encoder_create(const OpusCustomMode *mode, int channels, int *error)
Creates a new encoder state.
int opus_custom_encode(OpusCustomEncoder *st, const opus_int16 *pcm, int frame_size, unsigned char *compressed, int maxCompressedBytes)
Encodes a frame of audio.
int opus_custom_decode_float(OpusCustomDecoder *st, const unsigned char *data, int len, float *pcm, int frame_size)
Decode an opus custom frame with floating point output.
int opus_custom_encode_float(OpusCustomEncoder *st, const float *pcm, int frame_size, unsigned char *compressed, int maxCompressedBytes)
Encodes a frame of audio.
int opus_custom_encoder_get_size(const OpusCustomMode *mode, int channels)
Gets the size of an OpusCustomEncoder structure.
int opus_custom_decoder_ctl(OpusCustomDecoder *OPUS_RESTRICT st, int request,...)
Perform a CTL function on an Opus custom decoder.
int opus_custom_decode(OpusCustomDecoder *st, const unsigned char *data, int len, opus_int16 *pcm, int frame_size)
Decode an opus custom frame.
Opus reference implementation constants.
int opus_custom_decoder_init(OpusCustomDecoder *st, const OpusCustomMode *mode, int channels)
Initializes a previously allocated decoder state The memory pointed to by st must be the size returne...
void opus_custom_decoder_destroy(OpusCustomDecoder *st)
Destroys a an decoder state.
int opus_int32
Definition: opus_types.h:161
void opus_custom_encoder_destroy(OpusCustomEncoder *st)
Destroys a an encoder state.
OpusCustomMode * opus_custom_mode_create(opus_int32 Fs, int frame_size, int *error)
Creates a new mode struct.
int opus_custom_encoder_ctl(OpusCustomEncoder *OPUS_RESTRICT st, int request,...)
Perform a CTL function on an Opus custom encoder.
struct OpusCustomDecoder OpusCustomDecoder
State of the decoder.
Definition: opus_custom.h:102
void opus_custom_mode_destroy(OpusCustomMode *mode)
Destroys a mode struct.
#define OPUS_CUSTOM_EXPORT
Definition: opus_custom.h:48
#define OPUS_CUSTOM_EXPORT_STATIC
Definition: opus_custom.h:52
OpusCustomDecoder * opus_custom_decoder_create(const OpusCustomMode *mode, int channels, int *error)
Creates a new decoder state.
struct OpusCustomEncoder OpusCustomEncoder
Contains the state of an encoder.
Definition: opus_custom.h:95
short opus_int16
Definition: opus_types.h:159
struct OpusCustomMode OpusCustomMode
The mode contains all the information necessary to create an encoder.
Definition: opus_custom.h:110