Package org.xiph.speex
Class SplitShapeSearch
- java.lang.Object
-
- org.xiph.speex.CbSearch
-
- org.xiph.speex.SplitShapeSearch
-
public class SplitShapeSearch extends CbSearch
Split shape codebook search- 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 float[]eprivate float[]Eprivate inthave_signprivate int[]indstatic intMAX_COMPLEXITYprivate intnb_subvectprivate int[][]nindprivate float[][]ntprivate int[][]oindprivate float[][]otprivate float[]r2private intshape_bitsprivate int[]shape_cbprivate intshape_cb_sizeprivate int[]signsprivate intsubframesizeprivate intsubvect_sizeprivate float[]t
-
Constructor Summary
Constructors Constructor Description SplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidquant(float[] target, float[] ak, float[] awk1, float[] awk2, int p, int nsf, float[] exc, int es, float[] r, Bits bits, int complexity)Codebook Search Quantification (Split Shape).voidunquant(float[] exc, int es, int nsf, Bits bits)Codebook Search Unquantification (Split Shape).
-
-
-
Field Detail
-
MAX_COMPLEXITY
public static final int MAX_COMPLEXITY
- See Also:
- Constant Field Values
-
subframesize
private int subframesize
-
subvect_size
private int subvect_size
-
nb_subvect
private int nb_subvect
-
shape_cb
private int[] shape_cb
-
shape_cb_size
private int shape_cb_size
-
shape_bits
private int shape_bits
-
have_sign
private int have_sign
-
ind
private int[] ind
-
signs
private int[] signs
-
t
private float[] t
-
e
private float[] e
-
E
private float[] E
-
r2
private float[] r2
-
ot
private float[][] ot
-
nt
private float[][] nt
-
nind
private int[][] nind
-
oind
private int[][] oind
-
-
Method Detail
-
quant
public final void quant(float[] target, float[] ak, float[] awk1, float[] awk2, int p, int nsf, float[] exc, int es, float[] r, Bits bits, int complexity)Codebook Search Quantification (Split Shape).- Specified by:
quantin classCbSearch- Parameters:
target- target vectorak- LPCs for this subframeawk1- Weighted LPCs for this subframeawk2- Weighted LPCs for this subframep- number of LPC coeffsnsf- number of samples in subframeexc- excitation array.es- position in excitation array.r-bits- Speex bits buffer.complexity-
-
unquant
public final void unquant(float[] exc, int es, int nsf, Bits bits)Codebook Search Unquantification (Split Shape).
-
-