Package javaforce.codec.speex
Class Ltp3Tap
java.lang.Object
javaforce.codec.speex.Ltp
javaforce.codec.speex.Ltp3Tap
Long Term Prediction Quantisation and Unquantisation (3Tap)
- Version:
- $Revision$
- Author:
- Jim Lawrence, helloNetwork.com, Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intquant(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).final intunquant(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).Methods inherited from class javaforce.codec.speex.Ltp
inner_prod, open_loop_nbest_pitch
-
Constructor Details
-
Ltp3Tap
public Ltp3Tap(int[] gain_cdbk, int gain_bits, int pitch_bits) Constructor- Parameters:
gain_cdbk-gain_bits-pitch_bits-
-
-
Method Details
-
quant
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). -
unquant
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).- Specified by:
unquantin classLtp- 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
-