webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Enumerations | Functions
opus_interface.c File Reference
#include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h"
#include "webrtc/base/checks.h"
#include "webrtc/modules/audio_coding/codecs/opus/opus_inst.h"
#include <stdlib.h>
#include <string.h>

Enumerations

enum  { kWebRtcOpusMaxEncodeFrameSizeMs = 60, kWebRtcOpusMaxDecodeFrameSizeMs = 120, kWebRtcOpusMaxFrameSizePerChannel = 48 * kWebRtcOpusMaxDecodeFrameSizeMs, kWebRtcOpusDefaultFrameSize = 960 }
 

Functions

int16_t WebRtcOpus_EncoderCreate (OpusEncInst **inst, size_t channels, int32_t application)
 
int16_t WebRtcOpus_EncoderFree (OpusEncInst *inst)
 
int WebRtcOpus_Encode (OpusEncInst *inst, const int16_t *audio_in, size_t samples, size_t length_encoded_buffer, uint8_t *encoded)
 
int16_t WebRtcOpus_SetBitRate (OpusEncInst *inst, int32_t rate)
 
int16_t WebRtcOpus_SetPacketLossRate (OpusEncInst *inst, int32_t loss_rate)
 
int16_t WebRtcOpus_SetMaxPlaybackRate (OpusEncInst *inst, int32_t frequency_hz)
 
int16_t WebRtcOpus_EnableFec (OpusEncInst *inst)
 
int16_t WebRtcOpus_DisableFec (OpusEncInst *inst)
 
int16_t WebRtcOpus_EnableDtx (OpusEncInst *inst)
 
int16_t WebRtcOpus_DisableDtx (OpusEncInst *inst)
 
int16_t WebRtcOpus_SetComplexity (OpusEncInst *inst, int32_t complexity)
 
int16_t WebRtcOpus_SetForceChannels (OpusEncInst *inst, size_t num_channels)
 
int16_t WebRtcOpus_DecoderCreate (OpusDecInst **inst, size_t channels)
 
int16_t WebRtcOpus_DecoderFree (OpusDecInst *inst)
 
size_t WebRtcOpus_DecoderChannels (OpusDecInst *inst)
 
void WebRtcOpus_DecoderInit (OpusDecInst *inst)
 
int WebRtcOpus_Decode (OpusDecInst *inst, const uint8_t *encoded, size_t encoded_bytes, int16_t *decoded, int16_t *audio_type)
 
int WebRtcOpus_DecodePlc (OpusDecInst *inst, int16_t *decoded, int number_of_lost_frames)
 
int WebRtcOpus_DecodeFec (OpusDecInst *inst, const uint8_t *encoded, size_t encoded_bytes, int16_t *decoded, int16_t *audio_type)
 
int WebRtcOpus_DurationEst (OpusDecInst *inst, const uint8_t *payload, size_t payload_length_bytes)
 
int WebRtcOpus_PlcDuration (OpusDecInst *inst)
 
int WebRtcOpus_FecDurationEst (const uint8_t *payload, size_t payload_length_bytes)
 
int WebRtcOpus_PacketHasFec (const uint8_t *payload, size_t payload_length_bytes)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kWebRtcOpusMaxEncodeFrameSizeMs 
kWebRtcOpusMaxDecodeFrameSizeMs 
kWebRtcOpusMaxFrameSizePerChannel 
kWebRtcOpusDefaultFrameSize 

Function Documentation

◆ WebRtcOpus_Decode()

int WebRtcOpus_Decode ( OpusDecInst inst,
const uint8_t encoded,
size_t  encoded_bytes,
int16_t decoded,
int16_t audio_type 
)

◆ WebRtcOpus_DecodeFec()

int WebRtcOpus_DecodeFec ( OpusDecInst inst,
const uint8_t encoded,
size_t  encoded_bytes,
int16_t decoded,
int16_t audio_type 
)

◆ WebRtcOpus_DecodePlc()

int WebRtcOpus_DecodePlc ( OpusDecInst inst,
int16_t decoded,
int  number_of_lost_frames 
)

◆ WebRtcOpus_DecoderChannels()

size_t WebRtcOpus_DecoderChannels ( OpusDecInst inst)

◆ WebRtcOpus_DecoderCreate()

int16_t WebRtcOpus_DecoderCreate ( OpusDecInst **  inst,
size_t  channels 
)

◆ WebRtcOpus_DecoderFree()

int16_t WebRtcOpus_DecoderFree ( OpusDecInst inst)

◆ WebRtcOpus_DecoderInit()

void WebRtcOpus_DecoderInit ( OpusDecInst inst)

◆ WebRtcOpus_DisableDtx()

int16_t WebRtcOpus_DisableDtx ( OpusEncInst inst)

◆ WebRtcOpus_DisableFec()

int16_t WebRtcOpus_DisableFec ( OpusEncInst inst)

◆ WebRtcOpus_DurationEst()

int WebRtcOpus_DurationEst ( OpusDecInst inst,
const uint8_t payload,
size_t  payload_length_bytes 
)

◆ WebRtcOpus_EnableDtx()

int16_t WebRtcOpus_EnableDtx ( OpusEncInst inst)

◆ WebRtcOpus_EnableFec()

int16_t WebRtcOpus_EnableFec ( OpusEncInst inst)

◆ WebRtcOpus_Encode()

int WebRtcOpus_Encode ( OpusEncInst inst,
const int16_t audio_in,
size_t  samples,
size_t  length_encoded_buffer,
uint8_t encoded 
)

◆ WebRtcOpus_EncoderCreate()

int16_t WebRtcOpus_EncoderCreate ( OpusEncInst **  inst,
size_t  channels,
int32_t  application 
)

◆ WebRtcOpus_EncoderFree()

int16_t WebRtcOpus_EncoderFree ( OpusEncInst inst)

◆ WebRtcOpus_FecDurationEst()

int WebRtcOpus_FecDurationEst ( const uint8_t payload,
size_t  payload_length_bytes 
)

◆ WebRtcOpus_PacketHasFec()

int WebRtcOpus_PacketHasFec ( const uint8_t payload,
size_t  payload_length_bytes 
)

◆ WebRtcOpus_PlcDuration()

int WebRtcOpus_PlcDuration ( OpusDecInst inst)

◆ WebRtcOpus_SetBitRate()

int16_t WebRtcOpus_SetBitRate ( OpusEncInst inst,
int32_t  rate 
)

◆ WebRtcOpus_SetComplexity()

int16_t WebRtcOpus_SetComplexity ( OpusEncInst inst,
int32_t  complexity 
)

◆ WebRtcOpus_SetForceChannels()

int16_t WebRtcOpus_SetForceChannels ( OpusEncInst inst,
size_t  num_channels 
)

◆ WebRtcOpus_SetMaxPlaybackRate()

int16_t WebRtcOpus_SetMaxPlaybackRate ( OpusEncInst inst,
int32_t  frequency_hz 
)

◆ WebRtcOpus_SetPacketLossRate()

int16_t WebRtcOpus_SetPacketLossRate ( OpusEncInst inst,
int32_t  loss_rate 
)