Package javaforce.codec.speex
Class SplitShapeSearch
java.lang.Object
javaforce.codec.speex.CbSearch
javaforce.codec.speex.SplitShapeSearch
Split shape codebook search
- Version:
- $Revision$
- Author:
- Jim Lawrence, helloNetwork.com, Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign) Constructor -
Method Summary
-
Field Details
-
MAX_COMPLEXITY
public static final int MAX_COMPLEXITY- See Also:
-
-
Constructor Details
-
SplitShapeSearch
public SplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign) Constructor- Parameters:
subframesize-subvect_size-nb_subvect-shape_cb-shape_bits-have_sign-
-
-
Method Details
-
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
Codebook Search Unquantification (Split Shape).
-