| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.xiph.speex.Ltporg.xiph.speex.Ltp3Tappublic class Ltp3Tapextends LtpField Summary | |
private float[][] | |
private float[] | |
private int | |
private int[] | |
private int | |
Constructor Summary | |
| |
Method Summary | |
private float |
|
int | |
int | |
Methods inherited from class org.xiph.speex.Ltp | |
inner_prod, open_loop_nbest_pitch, quant, unquant | |
private float[][] e
private float[] gain
private int gain_bits
private int[] gain_cdbk
private int pitch_bits
public Ltp3Tap(int[] gain_cdbk,
int gain_bits,
int pitch_bits)Constructor
- Parameters:
gain_cdbk-gain_bits-pitch_bits-
private float pitch_gain_search_3tap(float[] target,
float[] ak,
float[] awk1,
float[] awk2,
float[] exc,
int es,
int pitch,
int p,
int nsf,
Bits bits,
float[] exc2,
int e2s,
float[] r,
int[] cdbk_index)Finds the best quantized 3-tap pitch predictor by analysis by synthesis.
- Parameters:
target- Target vectorak- LPCs for this subframeawk1- Weighted LPCs #1 for this subframeawk2- Weighted LPCs #2 for this subframeexc- Excitationes-pitch- Pitch valuep- Number of LPC coeffsnsf- Number of samples in subframebits-exc2-e2s-r-cdbk_index-
- Returns:
- the best quantized 3-tap pitch predictor by analysis by synthesis.
public final int quant(float[] target,
float[] sw,
int sws,
float[] ak,
float[] awk1,
float[] awk2,
float[] exc,
int es,
int start,
int end,
float pitch_coef,
int p,
int nsf,
Bits bits,
float[] exc2,
int e2s,
float[] r,
int complexity)Long Term Prediction Quantification (3Tap).
- Returns:
- pitch
public final int unquant(float[] exc,
int es,
int start,
float pitch_coef,
int nsf,
float[] gain_val,
Bits bits,
int count_lost,
int subframe_offset,
float last_pitch_gain)Long Term Prediction Unquantification (3Tap).
- Parameters:
exc- - Excitationes- - Excitation offsetstart- - Smallest pitch value allowedpitch_coef- - Voicing (pitch) coefficientnsf- - Number of samples in subframegain_val-bits- - Speex bits buffer.count_lost-subframe_offset-last_pitch_gain-
- Returns:
- pitch