webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Typedefs | Functions
opus.h File Reference

Opus reference implementation API. More...

#include "opus_types.h"
#include "opus_defines.h"

Go to the source code of this file.

Typedefs

typedef struct OpusEncoder OpusEncoder
 
typedef struct OpusDecoder OpusDecoder
 
typedef struct OpusRepacketizer OpusRepacketizer
 

Functions

OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_encoder_get_size (int channels)
 
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusEncoderopus_encoder_create (opus_int32 Fs, int channels, int application, int *error)
 
OPUS_EXPORT int opus_encoder_init (OpusEncoder *st, opus_int32 Fs, int channels, int application) 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_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4)
 
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 void opus_encoder_destroy (OpusEncoder *st)
 
OPUS_EXPORT int opus_encoder_ctl (OpusEncoder *st, int request,...) OPUS_ARG_NONNULL(1)
 
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decoder_get_size (int channels)
 
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusDecoderopus_decoder_create (opus_int32 Fs, int channels, int *error)
 
OPUS_EXPORT int opus_decoder_init (OpusDecoder *st, opus_int32 Fs, int channels) OPUS_ARG_NONNULL(1)
 
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_ARG_NONNULL(1) OPUS_ARG_NONNULL(4)
 
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 int opus_decoder_ctl (OpusDecoder *st, int request,...) OPUS_ARG_NONNULL(1)
 
OPUS_EXPORT void opus_decoder_destroy (OpusDecoder *st)
 
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_packet_get_bandwidth (const unsigned char *data) OPUS_ARG_NONNULL(1)
 
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 int opus_packet_get_nb_channels (const unsigned char *data) OPUS_ARG_NONNULL(1)
 
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 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_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_pcm_soft_clip (float *pcm, int frame_size, int channels, float *softclip_mem)
 
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_repacketizer_get_size (void)
 
OPUS_EXPORT OpusRepacketizeropus_repacketizer_init (OpusRepacketizer *rp) OPUS_ARG_NONNULL(1)
 
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusRepacketizeropus_repacketizer_create (void)
 
OPUS_EXPORT void opus_repacketizer_destroy (OpusRepacketizer *rp)
 
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 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 OPUS_WARN_UNUSED_RESULT int opus_repacketizer_get_nb_frames (OpusRepacketizer *rp) 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_EXPORT int opus_packet_pad (unsigned char *data, opus_int32 len, opus_int32 new_len)
 
OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_packet_unpad (unsigned char *data, opus_int32 len)
 
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 opus_int32 opus_multistream_packet_unpad (unsigned char *data, opus_int32 len, int nb_streams)
 

Detailed Description

Opus reference implementation API.