Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class Silk_sum_sqr_shift
extends Object

compute number of bits to right shift the sum of squares of a vector of int16s to make it fit in an int32

Author:
Jing Dai, Dingxin Xu

Constructor Summary
Silk_sum_sqr_shift()
           
 
Method Summary
(package private) static void SKP_Silk_sum_sqr_shift(int[] energy, int[] shift, short[] x, int x_offset, int len)
          Compute number of bits to right shift the sum of squares of a vector of int16s to make it fit in an int32.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Silk_sum_sqr_shift

public Silk_sum_sqr_shift()
Method Detail

SKP_Silk_sum_sqr_shift

static void SKP_Silk_sum_sqr_shift(int[] energy,
                                   int[] shift,
                                   short[] x,
                                   int x_offset,
                                   int len)
Compute number of bits to right shift the sum of squares of a vector of int16s to make it fit in an int32.

Parameters:
energy - Energy of x, after shifting to the right.
shift - Number of bits right shift applied to energy.
x - Input vector.
x_offset - offset of valid data.
len - Length of input vector.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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