public class SplitShapeSearch extends CbSearch
Modifier and Type | Field and Description |
---|---|
private float[] |
e |
private float[] |
E |
private int |
have_sign |
private int[] |
ind |
static int |
MAX_COMPLEXITY |
private int |
nb_subvect |
private int[][] |
nind |
private float[][] |
nt |
private int[][] |
oind |
private float[][] |
ot |
private float[] |
r2 |
private int |
shape_bits |
private int[] |
shape_cb |
private int |
shape_cb_size |
private int[] |
signs |
private int |
subframesize |
private int |
subvect_size |
private float[] |
t |
Constructor and Description |
---|
SplitShapeSearch(int subframesize,
int subvect_size,
int nb_subvect,
int[] shape_cb,
int shape_bits,
int have_sign)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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).
|
public static final int MAX_COMPLEXITY
private int subframesize
private int subvect_size
private int nb_subvect
private int[] shape_cb
private int shape_cb_size
private int shape_bits
private int have_sign
private int[] ind
private int[] signs
private float[] t
private float[] e
private float[] E
private float[] r2
private float[][] ot
private float[][] nt
private int[][] nind
private int[][] oind
public SplitShapeSearch(int subframesize, int subvect_size, int nb_subvect, int[] shape_cb, int shape_bits, int have_sign)
subframesize
- subvect_size
- nb_subvect
- shape_cb
- shape_bits
- have_sign
- 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)
quant
in class 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
- public final void unquant(float[] exc, int es, int nsf, Bits bits)
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.