webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
resampler.c File Reference
#include "resampler_private.h"

Macros

#define rateID(R)   ( ( ( ((R)>>12) - ((R)>16000) ) >> ((R)>24000) ) - 1 )
 
#define USE_silk_resampler_copy   (0)
 
#define USE_silk_resampler_private_up2_HQ_wrapper   (1)
 
#define USE_silk_resampler_private_IIR_FIR   (2)
 
#define USE_silk_resampler_private_down_FIR   (3)
 

Functions

opus_int silk_resampler_init (silk_resampler_state_struct *S, opus_int32 Fs_Hz_in, opus_int32 Fs_Hz_out, opus_int forEnc)
 
opus_int silk_resampler (silk_resampler_state_struct *S, opus_int16 out[], const opus_int16 in[], opus_int32 inLen)
 

Macro Definition Documentation

◆ rateID

#define rateID (   R)    ( ( ( ((R)>>12) - ((R)>16000) ) >> ((R)>24000) ) - 1 )

◆ USE_silk_resampler_copy

#define USE_silk_resampler_copy   (0)

◆ USE_silk_resampler_private_down_FIR

#define USE_silk_resampler_private_down_FIR   (3)

◆ USE_silk_resampler_private_IIR_FIR

#define USE_silk_resampler_private_IIR_FIR   (2)

◆ USE_silk_resampler_private_up2_HQ_wrapper

#define USE_silk_resampler_private_up2_HQ_wrapper   (1)

Function Documentation

◆ silk_resampler()

opus_int silk_resampler ( silk_resampler_state_struct S,
opus_int16  out[],
const opus_int16  in[],
opus_int32  inLen 
)

Resampler: convert from one sampling rate to another

◆ silk_resampler_init()

opus_int silk_resampler_init ( silk_resampler_state_struct S,
opus_int32  Fs_Hz_in,
opus_int32  Fs_Hz_out,
opus_int  forEnc 
)

Initialize/reset the resampler state for a given pair of input/output sampling rates