Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.silk
Class Silk_LPC_inv_pred_gain

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.silk.Silk_LPC_inv_pred_gain

public class Silk_LPC_inv_pred_gain
extends Object

Compute inverse of LPC prediction gain, and test if LPC coefficients are stable (all poles within unit circle)

Author:
Jing Dai, Dingxin Xu

Field Summary
(package private) static int A_LIMIT
           
(package private) static int QA
           
 
Constructor Summary
Silk_LPC_inv_pred_gain()
           
 
Method Summary
(package private) static int SKP_Silk_LPC_inverse_pred_gain_Q13(int[] invGain_Q30, short[] A_Q13, int order)
          For input in Q13 domain.
(package private) static int SKP_Silk_LPC_inverse_pred_gain(int[] invGain_Q30, short[] A_Q12, int order)
          Compute inverse of LPC prediction gain, and test if LPC coefficients are stable (all poles within unit circle).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QA

static final int QA
See Also:
Constant Field Values

A_LIMIT

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

Silk_LPC_inv_pred_gain

public Silk_LPC_inv_pred_gain()
Method Detail

SKP_Silk_LPC_inverse_pred_gain

static int SKP_Silk_LPC_inverse_pred_gain(int[] invGain_Q30,
                                          short[] A_Q12,
                                          int order)
Compute inverse of LPC prediction gain, and test if LPC coefficients are stable (all poles within unit circle).

Parameters:
invGain_Q30 - Inverse prediction gain, Q30 energy domain
A_Q12 - Prediction coefficients, Q12 [order]
order - Prediction order
Returns:
Returns 1 if unstable, otherwise 0

SKP_Silk_LPC_inverse_pred_gain_Q13

static int SKP_Silk_LPC_inverse_pred_gain_Q13(int[] invGain_Q30,
                                              short[] A_Q13,
                                              int order)
For input in Q13 domain.

Parameters:
invGain_Q30 - Inverse prediction gain, Q30 energy domain.
A_Q13 - Prediction coefficients, Q13 [order].
order - Prediction order.
Returns:
Returns 1 if unstable, otherwise 0.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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