Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.g729
Class Ld8k

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.g729.Ld8k
Direct Known Subclasses:
Coder, CodLd8k, DecLd8k, Decoder, Postfil

 class Ld8k
extends Object

Author:
Lubomir Marinov (translation of ITU-T C source code to Java)

Field Summary
(package private) static float AGC_FAC
          gain adjustment factor
(package private) static float AGC_FAC1
          gain adjustment factor
(package private) static float ALPHA
           
(package private) static float BETA
           
(package private) static short BIT_0
          Definition of zero-bit in bit-stream.
(package private) static short BIT_1
          Definition of one-bit in bit-stream.
(package private) static float CONST12
           
(package private) static int DIM_RR
          Size of correlation matrix
(package private) static int F_UP_PST
          resolution for fractionnal delay
(package private) static int FIR_SIZE_ANA
           
(package private) static int FIR_SIZE_SYN
           
(package private) static float FLT_MAX_G729
          Largest floating point number
(package private) static float FLT_MIN_G729
          Largest floating point number
(package private) static float GAIN_PIT_MAX
          maximum adaptive codebook gain
(package private) static float GAMMA_G
          LT weighting factor
(package private) static float GAMMA1_0
           
(package private) static float GAMMA1_1
           
(package private) static float GAMMA1_PST
          denominator weighting factor
(package private) static float GAMMA2_0_H
           
(package private) static float GAMMA2_0_L
           
(package private) static float GAMMA2_1
           
(package private) static float GAMMA2_PST
          numerator weighting factor
(package private) static float GAMMA3_MINUS
          tilt weighting factor when k1<0
(package private) static float GAMMA3_PLUS
          tilt weighting factor when k1>0
(package private) static float GAP1
           
(package private) static float GAP2
           
(package private) static float GAP3
           
(package private) static float GP0999
          Maximum pitch gain if taming is needed
(package private) static float GPCLIP
          Maximum pitch gain if taming is needed
(package private) static float GPCLIP2
          Maximum pitch gain if taming is needed
(package private) static int GRID_POINTS
          Resolution of lsp search.
(package private) static float INV_COEF
           
(package private) static float INV_L_SUBFR
           
(package private) static int L_FRAME
          LPC update frame size
(package private) static int L_INTER10
          Length for pitch interpolation
(package private) static int L_INTER4
          upsampling ration for pitch search
(package private) static int L_INTERPOL
          Length of filter for interpolation.
(package private) static float L_LIMIT
           
(package private) static int L_NEXT
          Samples of next frame needed for LPC ana.
(package private) static int L_SUBFR
          Sub-frame size
(package private) static int L_SUBFRP1
          Sub-frame size + 1
(package private) static int L_TOTAL
          Total size of speech buffer
(package private) static int L_WINDOW
          LPC analysis window size.
(package private) static int LH_UP_L
           
(package private) static int LH_UP_S
           
(package private) static int LH2_L
          length of long interp.
(package private) static int LH2_L_P1
           
(package private) static int LH2_S
          length of short interp.
(package private) static int LONG_H_ST
          impulse response length
(package private) static int M
          LPC order.
(package private) static float M_LIMIT
           
(package private) static int MA_NP
          MA prediction order for LSP.
(package private) static int MAX_TIME
           
(package private) static float MEAN_ENER
          Average innovation energy
(package private) static int MEM_RES2
           
(package private) static float MIN_GPLT
          LT gain minimum
(package private) static int MODE
          Number of modes for MA prediction.
(package private) static int MP1
          LPC order+1.
(package private) static int MSIZE
          Size of vectors for cross-correlation between 2 pulses
(package private) static int NB_POS
          Number of positions for each pulse
(package private) static int NC
          LPC order / 2.
(package private) static int NC0
          Number of entries in first stage.
(package private) static int NC0_B
          Number of bits in first stage.
(package private) static int NC1
          Number of entries in second stage.
(package private) static int NC1_B
          Number of bits in second stage.
(package private) static int NCAN1
          Pre-selecting order for #1
(package private) static int NCAN2
          Pre-selecting order for #2
(package private) static int NCODE1
          Codebook 1 size
(package private) static int NCODE1_B
          Number of Codebook-bit
(package private) static int NCODE2
          Codebook 2 size
(package private) static int NCODE2_B
          Number of Codebook-bit
(package private) static float PI
           
(package private) static float PI04
          pi*0.04
(package private) static float PI92
          pi*0.92
(package private) static int PIT_MAX
          Maximum pitch lag in samples
(package private) static int PIT_MIN
          Minimum pitch lag in samples
(package private) static int PRM_SIZE
          Number of parameters per 10 ms frame.
(package private) static int SERIAL_SIZE
          Bits per frame.
(package private) static float SHARPMAX
          Maximum value of pitch sharpening
(package private) static float SHARPMIN
          minimum value of pitch sharpening
(package private) static int SIZ_RES2
           
(package private) static int SIZ_TAB_HUP_L
           
(package private) static int SIZ_TAB_HUP_S
           
(package private) static int SIZ_Y_UP
           
(package private) static short SIZE_WORD
          Size of bitstream frame.
(package private) static int STEP
          Step betweem position of the same pulse.
(package private) static short SYNC_WORD
          Definition of frame erasure flag.
(package private) static float THRESCRIT
          threshold LT pst switch off
(package private) static float THRESH_ERR
          Error threshold taming
(package private) static float THRESH_H1
           
(package private) static float THRESH_H2
           
(package private) static float THRESH_L1
           
(package private) static float THRESH_L2
           
(package private) static float THRESHFCB
           
(package private) static float THRESHPIT
          Threshold to favor smaller pitch lags
(package private) static int UP_SAMP
          resolution of fractional delays
 
Constructor Summary
Ld8k()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI

static final float PI
See Also:
Constant Field Values

FLT_MAX_G729

static final float FLT_MAX_G729
Largest floating point number

See Also:
Constant Field Values

FLT_MIN_G729

static final float FLT_MIN_G729
Largest floating point number

See Also:
Constant Field Values

L_TOTAL

static final int L_TOTAL
Total size of speech buffer

See Also:
Constant Field Values

L_FRAME

static final int L_FRAME
LPC update frame size

See Also:
Constant Field Values

L_SUBFR

static final int L_SUBFR
Sub-frame size

See Also:
Constant Field Values

BIT_1

static final short BIT_1
Definition of one-bit in bit-stream.

See Also:
Constant Field Values

BIT_0

static final short BIT_0
Definition of zero-bit in bit-stream.

See Also:
Constant Field Values

SYNC_WORD

static final short SYNC_WORD
Definition of frame erasure flag.

See Also:
Constant Field Values

SIZE_WORD

static final short SIZE_WORD
Size of bitstream frame.

See Also:
Constant Field Values

PRM_SIZE

static final int PRM_SIZE
Number of parameters per 10 ms frame.

See Also:
Constant Field Values

SERIAL_SIZE

static final int SERIAL_SIZE
Bits per frame.

See Also:
Constant Field Values

L_WINDOW

static final int L_WINDOW
LPC analysis window size.

See Also:
Constant Field Values

L_NEXT

static final int L_NEXT
Samples of next frame needed for LPC ana.

See Also:
Constant Field Values

M

static final int M
LPC order.

See Also:
Constant Field Values

MP1

static final int MP1
LPC order+1.

See Also:
Constant Field Values

GRID_POINTS

static final int GRID_POINTS
Resolution of lsp search.

See Also:
Constant Field Values

MA_NP

static final int MA_NP
MA prediction order for LSP.

See Also:
Constant Field Values

MODE

static final int MODE
Number of modes for MA prediction.

See Also:
Constant Field Values

NC0_B

static final int NC0_B
Number of bits in first stage.

See Also:
Constant Field Values

NC0

static final int NC0
Number of entries in first stage.

See Also:
Constant Field Values

NC1_B

static final int NC1_B
Number of bits in second stage.

See Also:
Constant Field Values

NC1

static final int NC1
Number of entries in second stage.

See Also:
Constant Field Values

NC

static final int NC
LPC order / 2.

See Also:
Constant Field Values

L_LIMIT

static final float L_LIMIT
See Also:
Constant Field Values

M_LIMIT

static final float M_LIMIT
See Also:
Constant Field Values

GAP1

static final float GAP1
See Also:
Constant Field Values

GAP2

static final float GAP2
See Also:
Constant Field Values

GAP3

static final float GAP3
See Also:
Constant Field Values

PI04

static final float PI04
pi*0.04

See Also:
Constant Field Values

PI92

static final float PI92
pi*0.92

See Also:
Constant Field Values

CONST12

static final float CONST12
See Also:
Constant Field Values

THRESH_L1

static final float THRESH_L1
See Also:
Constant Field Values

THRESH_L2

static final float THRESH_L2
See Also:
Constant Field Values

THRESH_H1

static final float THRESH_H1
See Also:
Constant Field Values

THRESH_H2

static final float THRESH_H2
See Also:
Constant Field Values

GAMMA1_0

static final float GAMMA1_0
See Also:
Constant Field Values

GAMMA2_0_H

static final float GAMMA2_0_H
See Also:
Constant Field Values

GAMMA2_0_L

static final float GAMMA2_0_L
See Also:
Constant Field Values

GAMMA1_1

static final float GAMMA1_1
See Also:
Constant Field Values

GAMMA2_1

static final float GAMMA2_1
See Also:
Constant Field Values

ALPHA

static final float ALPHA
See Also:
Constant Field Values

BETA

static final float BETA
See Also:
Constant Field Values

PIT_MIN

static final int PIT_MIN
Minimum pitch lag in samples

See Also:
Constant Field Values

PIT_MAX

static final int PIT_MAX
Maximum pitch lag in samples

See Also:
Constant Field Values

L_INTERPOL

static final int L_INTERPOL
Length of filter for interpolation.

See Also:
Constant Field Values

L_INTER10

static final int L_INTER10
Length for pitch interpolation

See Also:
Constant Field Values

L_INTER4

static final int L_INTER4
upsampling ration for pitch search

See Also:
Constant Field Values

UP_SAMP

static final int UP_SAMP
resolution of fractional delays

See Also:
Constant Field Values

THRESHPIT

static final float THRESHPIT
Threshold to favor smaller pitch lags

See Also:
Constant Field Values

GAIN_PIT_MAX

static final float GAIN_PIT_MAX
maximum adaptive codebook gain

See Also:
Constant Field Values

FIR_SIZE_ANA

static final int FIR_SIZE_ANA
See Also:
Constant Field Values

FIR_SIZE_SYN

static final int FIR_SIZE_SYN
See Also:
Constant Field Values

DIM_RR

static final int DIM_RR
Size of correlation matrix

See Also:
Constant Field Values

NB_POS

static final int NB_POS
Number of positions for each pulse

See Also:
Constant Field Values

STEP

static final int STEP
Step betweem position of the same pulse.

See Also:
Constant Field Values

MSIZE

static final int MSIZE
Size of vectors for cross-correlation between 2 pulses

See Also:
Constant Field Values

SHARPMAX

static final float SHARPMAX
Maximum value of pitch sharpening

See Also:
Constant Field Values

SHARPMIN

static final float SHARPMIN
minimum value of pitch sharpening

See Also:
Constant Field Values

THRESHFCB

static final float THRESHFCB
See Also:
Constant Field Values

MAX_TIME

static final int MAX_TIME
See Also:
Constant Field Values

GPCLIP

static final float GPCLIP
Maximum pitch gain if taming is needed

See Also:
Constant Field Values

GPCLIP2

static final float GPCLIP2
Maximum pitch gain if taming is needed

See Also:
Constant Field Values

GP0999

static final float GP0999
Maximum pitch gain if taming is needed

See Also:
Constant Field Values

THRESH_ERR

static final float THRESH_ERR
Error threshold taming

See Also:
Constant Field Values

INV_L_SUBFR

static final float INV_L_SUBFR
See Also:
Constant Field Values

MEAN_ENER

static final float MEAN_ENER
Average innovation energy

See Also:
Constant Field Values

NCODE1_B

static final int NCODE1_B
Number of Codebook-bit

See Also:
Constant Field Values

NCODE2_B

static final int NCODE2_B
Number of Codebook-bit

See Also:
Constant Field Values

NCODE1

static final int NCODE1
Codebook 1 size

See Also:
Constant Field Values

NCODE2

static final int NCODE2
Codebook 2 size

See Also:
Constant Field Values

NCAN1

static final int NCAN1
Pre-selecting order for #1

See Also:
Constant Field Values

NCAN2

static final int NCAN2
Pre-selecting order for #2

See Also:
Constant Field Values

INV_COEF

static final float INV_COEF
See Also:
Constant Field Values

GAMMA1_PST

static final float GAMMA1_PST
denominator weighting factor

See Also:
Constant Field Values

GAMMA2_PST

static final float GAMMA2_PST
numerator weighting factor

See Also:
Constant Field Values

LONG_H_ST

static final int LONG_H_ST
impulse response length

See Also:
Constant Field Values

GAMMA3_PLUS

static final float GAMMA3_PLUS
tilt weighting factor when k1>0

See Also:
Constant Field Values

GAMMA3_MINUS

static final float GAMMA3_MINUS
tilt weighting factor when k1<0

See Also:
Constant Field Values

L_SUBFRP1

static final int L_SUBFRP1
Sub-frame size + 1

See Also:
Constant Field Values

F_UP_PST

static final int F_UP_PST
resolution for fractionnal delay

See Also:
Constant Field Values

LH2_S

static final int LH2_S
length of short interp. subfilters

See Also:
Constant Field Values

LH2_L

static final int LH2_L
length of long interp. subfilters

See Also:
Constant Field Values

THRESCRIT

static final float THRESCRIT
threshold LT pst switch off

See Also:
Constant Field Values

GAMMA_G

static final float GAMMA_G
LT weighting factor

See Also:
Constant Field Values

AGC_FAC

static final float AGC_FAC
gain adjustment factor

See Also:
Constant Field Values

AGC_FAC1

static final float AGC_FAC1
gain adjustment factor

See Also:
Constant Field Values

LH_UP_S

static final int LH_UP_S
See Also:
Constant Field Values

LH_UP_L

static final int LH_UP_L
See Also:
Constant Field Values

LH2_L_P1

static final int LH2_L_P1
See Also:
Constant Field Values

MIN_GPLT

static final float MIN_GPLT
LT gain minimum

See Also:
Constant Field Values

MEM_RES2

static final int MEM_RES2
See Also:
Constant Field Values

SIZ_RES2

static final int SIZ_RES2
See Also:
Constant Field Values

SIZ_Y_UP

static final int SIZ_Y_UP
See Also:
Constant Field Values

SIZ_TAB_HUP_L

static final int SIZ_TAB_HUP_L
See Also:
Constant Field Values

SIZ_TAB_HUP_S

static final int SIZ_TAB_HUP_S
See Also:
Constant Field Values
Constructor Detail

Ld8k

Ld8k()

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.