Package org.xiph.speex
Class Filters
- java.lang.Object
-
- org.xiph.speex.Filters
-
public class Filters extends java.lang.ObjectFilters- Version:
- $Revision: 1.2 $
- Author:
- Jim Lawrence, helloNetwork.com, Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
-
-
Field Summary
Fields Modifier and Type Field Description private intlast_pitchprivate float[]last_pitch_gainprivate floatsmooth_gainprivate float[]xx
-
Constructor Summary
Constructors Constructor Description Filters()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidbw_lpc(float gamma, float[] lpc_in, float[] lpc_out, int order)bw_lpcvoidcomb_filter(float[] exc, int esi, float[] new_exc, int nsi, int nsf, int pitch, float[] pitch_gain, float comb_gain)Comb Filterstatic voidfilter_mem2(float[] x, int xs, float[] num, float[] den, float[] y, int ys, int N, int ord, float[] mem, int ms)filter_mem2static voidfilter_mem2(float[] x, int xs, float[] num, float[] den, int N, int ord, float[] mem, int ms)filter_mem2voidfir_mem_up(float[] x, float[] a, float[] y, int N, int M, float[] mem)fir_mem_upstatic voidfir_mem2(float[] x, int xs, float[] num, float[] y, int ys, int N, int ord, float[] mem)fir_mem2static voidiir_mem2(float[] x, int xs, float[] den, float[] y, int ys, int N, int ord, float[] mem)iir_mem2voidinit()Initialisationstatic voidqmf_decomp(float[] xx, float[] aa, float[] y1, float[] y2, int N, int M, float[] mem)Quadrature Mirror Filter to Split the band in two.static voidresidue_percep_zero(float[] xx, int xxs, float[] ak, float[] awk1, float[] awk2, float[] y, int N, int ord)residue_percep_zerostatic voidsyn_percep_zero(float[] xx, int xxs, float[] ak, float[] awk1, float[] awk2, float[] y, int N, int ord)syn_percep_zero
-
-
-
Method Detail
-
init
public void init()
Initialisation
-
bw_lpc
public static final void bw_lpc(float gamma, float[] lpc_in, float[] lpc_out, int order)bw_lpc- Parameters:
gamma-lpc_in-lpc_out-order-
-
filter_mem2
public static final void filter_mem2(float[] x, int xs, float[] num, float[] den, int N, int ord, float[] mem, int ms)filter_mem2- Parameters:
x-xs-num-den-N-ord-mem-ms-
-
filter_mem2
public static final void filter_mem2(float[] x, int xs, float[] num, float[] den, float[] y, int ys, int N, int ord, float[] mem, int ms)filter_mem2- Parameters:
x-xs-num-den-y-ys-N-ord-mem-ms-
-
iir_mem2
public static final void iir_mem2(float[] x, int xs, float[] den, float[] y, int ys, int N, int ord, float[] mem)iir_mem2- Parameters:
x-xs-den-y-ys-N-ord-mem-
-
fir_mem2
public static final void fir_mem2(float[] x, int xs, float[] num, float[] y, int ys, int N, int ord, float[] mem)fir_mem2- Parameters:
x-xs-num-y-ys-N-ord-mem-
-
syn_percep_zero
public static final void syn_percep_zero(float[] xx, int xxs, float[] ak, float[] awk1, float[] awk2, float[] y, int N, int ord)syn_percep_zero- Parameters:
xx-xxs-ak-awk1-awk2-y-N-ord-
-
residue_percep_zero
public static final void residue_percep_zero(float[] xx, int xxs, float[] ak, float[] awk1, float[] awk2, float[] y, int N, int ord)residue_percep_zero- Parameters:
xx-xxs-ak-awk1-awk2-y-N-ord-
-
fir_mem_up
public void fir_mem_up(float[] x, float[] a, float[] y, int N, int M, float[] mem)fir_mem_up- Parameters:
x-a-y-N-M-mem-
-
comb_filter
public void comb_filter(float[] exc, int esi, float[] new_exc, int nsi, int nsf, int pitch, float[] pitch_gain, float comb_gain)Comb Filter- Parameters:
exc- - decoded excitationesi-new_exc- - enhanced excitationnsi-nsf- - sub-frame sizepitch- - pitch periodpitch_gain- - pitch gain (3-tap)comb_gain- - gain of comb filter
-
qmf_decomp
public static final void qmf_decomp(float[] xx, float[] aa, float[] y1, float[] y2, int N, int M, float[] mem)Quadrature Mirror Filter to Split the band in two. A 16kHz signal is thus divided into two 8kHz signals representing the low and high bands. (used by wideband encoder)- Parameters:
xx-aa-y1-y2-N-M-mem-
-
-