Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.xiph.speex.NbCodec
Field Summary | |
static int[] |
|
static int |
|
static int |
|
static float |
|
protected float[] |
|
protected float[] |
|
protected float[] |
|
protected int |
|
protected int | |
protected float[] | |
protected int |
|
static float[] | |
static float[] | |
protected Filters | |
protected int |
|
protected int |
|
protected float[] |
|
protected int |
|
protected float |
|
protected float |
|
protected float[] |
|
protected float[] |
|
protected float[] |
|
protected float |
|
protected float[] |
|
protected int |
|
protected float |
|
protected Lsp | |
protected int |
|
protected float[] |
|
protected int |
|
protected int |
|
protected float[] |
|
protected float[] |
|
protected float |
|
protected float |
|
protected float[] |
|
protected int |
|
protected int |
|
protected SubMode[] | |
protected float | |
protected float | |
protected float | |
protected int | |
protected int |
|
Fields inherited from interface org.xiph.speex.Codebook | |
NB_CDBK_SIZE , NB_CDBK_SIZE_HIGH1 , NB_CDBK_SIZE_HIGH2 , NB_CDBK_SIZE_LOW1 , NB_CDBK_SIZE_LOW2 , cdbk_nb , cdbk_nb_high1 , cdbk_nb_high2 , cdbk_nb_low1 , cdbk_nb_low2 , exc_10_16_table , exc_10_32_table , exc_20_32_table , exc_5_256_table , exc_5_64_table , exc_8_128_table , gain_cdbk_lbr , gain_cdbk_nb , h0 , h1 , hexc_10_32_table , hexc_table , high_lsp_cdbk , high_lsp_cdbk2 |
Constructor Summary | |
|
Method Summary | |
private static SubMode[] |
|
boolean |
|
float[] |
|
int |
|
float[] |
|
float[] |
|
protected void |
|
void |
|
public static final int[] NB_FRAME_SIZE
The Narrowband Frame Size gives the size in bits of a Narrowband frame for a given narrowband submode.
public static final int NB_SUBMODES
The Narrowband Submodes gives the number of submodes possible for the Narrowband codec.
- Field Value:
- 16
public static final int NB_SUBMODE_BITS
The Narrowband Submodes Bits gives the number bits used to encode the Narrowband Submode
- Field Value:
- 4
public static final float VERY_SMALL
Very small initial value for some of the buffers.
- Field Value:
- 0.0f
protected float[] awk1
Gain of LPC filter at theta=pi (fe/2)
protected float[] awk2
Gain of LPC filter at theta=pi (fe/2)
protected float[] awk3
Gain of LPC filter at theta=pi (fe/2)
protected int bufSize
LPC order
protected int dtx_enabled
protected float[] excBuf
protected int excIdx
Excitation buffer
public static final float[] exc_gain_quant_scal1
public static final float[] exc_gain_quant_scal3
protected int first
Activated sub-mode
protected int frameSize
Is this the first frame?
protected float[] frmBuf
1-element memory for pre-emphasis
protected int frmIdx
Input buffer (original signal)
protected float gamma1
Maximum pitch value allowed
protected float gamma2
Perceptual filter: A(z/gamma1)
protected float[] innov
Start of excitation frame
protected float[] interp_qlpc
Interpolated quantized LSPs
protected float[] interp_qlsp
Quantized LSPs for previous frame
protected float lag_factor
Perceptual filter: A(z/gamma2)
protected float[] lpc
Innovation for the frame
protected int lpcSize
Analysis (LPC) window length
protected float lpc_floor
Lag windowing Gaussian width
protected int max_pitch
Minimum pitch value allowed
protected float[] mem_sp
Interpolated quantized LPCs
protected int min_pitch
Buffer size
protected int nbSubframes
Size of sub-frames
protected float[] old_qlsp
Quantized LSPs for current frame
protected float[] pi_gain
Filter memory for synthesis signal
protected float pre_mem
Pre-emphasis: P(z) = 1 - a*z^-1
protected float preemph
Noise floor multiplier for A[0] in LPC analysis
protected float[] qlsp
LPCs for current frame
protected int subframeSize
Size of frames
protected int submodeID
Sub-mode data
protected float voc_m1
protected float voc_m2
protected float voc_mean
protected int voc_offset
protected int windowSize
Number of sub-frames
public boolean getDtx()
Returns whether or not we are using Discontinuous Transmission encoding.
- Returns:
- whether or not we are using Discontinuous Transmission encoding.
public float[] getExc()
Returns the excitation array.
- Returns:
- the excitation array.
public int getFrameSize()
Returns the size of a frame (ex: 160 samples for a narrowband frame, 320 for wideband and 640 for ultra-wideband).
- Returns:
- the size of a frame (number of audio samples in a frame).
public float[] getInnov()
Returns the innovation array.
- Returns:
- the innovation array.
public float[] getPiGain()
Returns the Pitch Gain array.
- Returns:
- the Pitch Gain array.
protected void init(int frameSize, int subframeSize, int lpcSize, int bufSize)
Initialisation.
- Parameters:
frameSize
-subframeSize
-lpcSize
-bufSize
-
public void nbinit()
Narrowband initialisation.