org.xiph.speex
Class SplitShapeSearch
public class SplitShapeSearch
Split shape codebook search
- Jim Lawrence, helloNetwork.com
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
SplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign) - Constructor
|
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).
|
void | unquant(float[] exc, int es, int nsf, Bits bits) - Codebook Search Unquantification (Split Shape).
|
MAX_COMPLEXITY
public static final int MAX_COMPLEXITY
have_sign
private int have_sign
nb_subvect
private int nb_subvect
shape_bits
private int shape_bits
shape_cb
private int[] shape_cb
shape_cb_size
private int shape_cb_size
subframesize
private int subframesize
subvect_size
private int subvect_size
SplitShapeSearch
public SplitShapeSearch(int subframesize,
int subvect_size,
int nb_subvect,
int[] shape_cb,
int shape_bits,
int have_sign)
Constructor
subframesize
- subvect_size
- nb_subvect
- shape_cb
- shape_bits
- have_sign
-
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).
- quant in interface CbSearch
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).
- unquant in interface CbSearch
exc
- - excitation array.es
- - position in excitation array.nsf
- - number of samples in subframe.bits
- - Speex bits buffer.
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.