SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media.codec.audio.g729
Class CodLd8k

java.lang.Object
  extended by net.java.sip.communicator.impl.media.codec.audio.g729.Ld8k
      extended by net.java.sip.communicator.impl.media.codec.audio.g729.CodLd8k

 class CodLd8k
extends Ld8k

Functions coder_ld8k and init_coder_ld8k Coder constant parameters (defined in "ld8k.h")

   L_WINDOW    : LPC analysis window size.
   L_NEXT      : Samples of next frame needed for autocor.
   L_FRAME     : Frame size.
   L_SUBFR     : Sub-frame size.
   M           : LPC order.
   MP1         : LPC order+1
   L_TOTAL     : Total size of speech buffer.
   PIT_MIN     : Minimum pitch lag.
   PIT_MAX     : Maximum pitch lag.
   L_INTERPOL  : Length of filter for interpolation
 

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

Field Summary
(package private)  float[] new_speech
           
(package private)  int new_speech_offset
           
 
Fields inherited from class net.java.sip.communicator.impl.media.codec.audio.g729.Ld8k
AGC_FAC, AGC_FAC1, ALPHA, BETA, BIT_0, BIT_1, CONST12, DIM_RR, F_UP_PST, FIR_SIZE_ANA, FIR_SIZE_SYN, FLT_MAX_G729, FLT_MIN_G729, GAIN_PIT_MAX, GAMMA_G, GAMMA1_0, GAMMA1_1, GAMMA1_PST, GAMMA2_0_H, GAMMA2_0_L, GAMMA2_1, GAMMA2_PST, GAMMA3_MINUS, GAMMA3_PLUS, GAP1, GAP2, GAP3, GP0999, GPCLIP, GPCLIP2, GRID_POINTS, INV_COEF, INV_L_SUBFR, L_FRAME, L_INTER10, L_INTER4, L_INTERPOL, L_LIMIT, L_NEXT, L_SUBFR, L_SUBFRP1, L_TOTAL, L_WINDOW, LH_UP_L, LH_UP_S, LH2_L, LH2_L_P1, LH2_S, LONG_H_ST, M, M_LIMIT, MA_NP, MAX_TIME, MEAN_ENER, MEM_RES2, MIN_GPLT, MODE, MP1, MSIZE, NB_POS, NC, NC0, NC0_B, NC1, NC1_B, NCAN1, NCAN2, NCODE1, NCODE1_B, NCODE2, NCODE2_B, PI, PI04, PI92, PIT_MAX, PIT_MIN, PRM_SIZE, SERIAL_SIZE, SHARPMAX, SHARPMIN, SIZ_RES2, SIZ_TAB_HUP_L, SIZ_TAB_HUP_S, SIZ_Y_UP, SIZE_WORD, STEP, SYNC_WORD, THRESCRIT, THRESH_ERR, THRESH_H1, THRESH_H2, THRESH_L1, THRESH_L2, THRESHFCB, THRESHPIT, UP_SAMP
 
Constructor Summary
CodLd8k()
           
 
Method Summary
(package private)  void coder_ld8k(int[] ana)
          Encoder routine ( speech data should be in new_speech ).
(package private)  void init_coder_ld8k()
          Initialization of variables for the encoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

new_speech

float[] new_speech

new_speech_offset

int new_speech_offset
Constructor Detail

CodLd8k

CodLd8k()
Method Detail

init_coder_ld8k

void init_coder_ld8k()
Initialization of variables for the encoder. Initialize pointers to speech vector.
   |--------------------|-------------|-------------|------------|
     previous speech           sf1           sf2         L_NEXT

   <----------------  Total speech vector (L_TOTAL)   ----------->
   |   <------------  LPC analysis window (L_WINDOW)  ----------->
   |   |               <-- present frame (L_FRAME) -->
 old_speech            |              <-- new speech (L_FRAME) -->
     p_wind            |              |
                     speech           |
                             new_speech
 


coder_ld8k

void coder_ld8k(int[] ana)
Encoder routine ( speech data should be in new_speech ).

Parameters:
ana - output: analysis parameters

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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