Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class Silk_resampler_private_up2_HQ
extends Object

Upsample by a factor 2, high quality.

Author:
Jing Dai, Dingxin Xu

Constructor Summary
Silk_resampler_private_up2_HQ()
           
 
Method Summary
(package private) static void SKP_Silk_resampler_private_up2_HQ_wrapper(Object SS, short[] out, int out_offset, short[] in, int in_offset, int len)
          the wrapper method.
(package private) static void SKP_Silk_resampler_private_up2_HQ(int[] S, int S_offset, short[] out, int out_offset, short[] in, int in_offset, int len)
          Upsample by a factor 2, high quality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Silk_resampler_private_up2_HQ

public Silk_resampler_private_up2_HQ()
Method Detail

SKP_Silk_resampler_private_up2_HQ

static void SKP_Silk_resampler_private_up2_HQ(int[] S,
                                              int S_offset,
                                              short[] out,
                                              int out_offset,
                                              short[] in,
                                              int in_offset,
                                              int len)
Upsample by a factor 2, high quality. Uses 2nd order allpass filters for the 2x upsampling, followed by a notch filter just above Nyquist.

Parameters:
S - Resampler state [ 6 ].
S_offset - offset of valid data.
out - Output signal [ 2 * len ].
out_offset - offset of valid data.
in - Input signal [ len ].
in_offset - offset of valid data.
len - Number of INPUT samples.

SKP_Silk_resampler_private_up2_HQ_wrapper

static void SKP_Silk_resampler_private_up2_HQ_wrapper(Object SS,
                                                      short[] out,
                                                      int out_offset,
                                                      short[] in,
                                                      int in_offset,
                                                      int len)
the wrapper method.

Parameters:
SS - Resampler state (unused).
out - Output signal [ 2 * len ].
out_offset - offset of valid data.
in - Input signal [ len ].
in_offset - offset of valid data.
len - Number of input samples.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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