Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class Silk_LP_variable_cutoff
extends Object

Elliptic/Cauer filters designed with 0.1 dB passband ripple, 80 dB minimum stopband attenuation, and [0.95 : 0.15 : 0.35] normalized cut off frequencies.

Author:
Jing Dai, Dingxin Xu

Constructor Summary
Silk_LP_variable_cutoff()
           
 
Method Summary
(package private) static void SKP_Silk_LP_interpolate_filter_taps(int[] B_Q28, int[] A_Q28, int ind, int fac_Q16)
          Helper function, that interpolates the filter taps.
(package private) static void SKP_Silk_LP_variable_cutoff(SKP_Silk_LP_state psLP, short[] out, int out_offset, short[] in, int in_offset, int frame_length)
          Low-pass filter with variable cutoff frequency based on piece-wise linear interpolation between elliptic filters Start by setting psEncC->transition_frame_no = 1; Deactivate by setting psEncC->transition_frame_no = 0;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Silk_LP_variable_cutoff

public Silk_LP_variable_cutoff()
Method Detail

SKP_Silk_LP_interpolate_filter_taps

static void SKP_Silk_LP_interpolate_filter_taps(int[] B_Q28,
                                                int[] A_Q28,
                                                int ind,
                                                int fac_Q16)
Helper function, that interpolates the filter taps.

Parameters:
B_Q28 -
A_Q28 -
ind -
fac_Q16 -

SKP_Silk_LP_variable_cutoff

static void SKP_Silk_LP_variable_cutoff(SKP_Silk_LP_state psLP,
                                        short[] out,
                                        int out_offset,
                                        short[] in,
                                        int in_offset,
                                        int frame_length)
Low-pass filter with variable cutoff frequency based on piece-wise linear interpolation between elliptic filters Start by setting psEncC->transition_frame_no = 1; Deactivate by setting psEncC->transition_frame_no = 0;

Parameters:
psLP - LP filter state
out - Low-pass filtered output signal
out_offset - offset of valid data.
in - Input signal
in_offset - offset of valid data.
frame_length - Frame length

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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