Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class Silk_encode_frame_FLP
extends Object

Encode frame.

Author:
Jing Dai, Dingxin Xu

Field Summary
(package private) static int frame_cnt
          TODO: TEST
 
Constructor Summary
Silk_encode_frame_FLP()
           
 
Method Summary
(package private) static int SKP_Silk_encode_frame_FLP(SKP_Silk_encoder_state_FLP psEnc, byte[] pCode, int pCode_offset, short[] pnBytesOut, short[] pIn, int pIn_offset)
          Encode frame.
(package private) static void SKP_Silk_LBRR_encode_FLP(SKP_Silk_encoder_state_FLP psEnc, SKP_Silk_encoder_control_FLP psEncCtrl, byte[] pCode, short[] pnBytesOut, float[] xfw)
          Low Bitrate Redundancy (LBRR) encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame_cnt

static int frame_cnt
TODO: TEST

Constructor Detail

Silk_encode_frame_FLP

public Silk_encode_frame_FLP()
Method Detail

SKP_Silk_encode_frame_FLP

static int SKP_Silk_encode_frame_FLP(SKP_Silk_encoder_state_FLP psEnc,
                                     byte[] pCode,
                                     int pCode_offset,
                                     short[] pnBytesOut,
                                     short[] pIn,
                                     int pIn_offset)
Encode frame.

Parameters:
psEnc - Encoder state FLP
pCode - payload
pCode_offset - offset of valid data.
pnBytesOut - Number of payload bytes; input: max length; output: used.
pIn - Input speech frame
pIn_offset - offset of valid data.
Returns:

SKP_Silk_LBRR_encode_FLP

static void SKP_Silk_LBRR_encode_FLP(SKP_Silk_encoder_state_FLP psEnc,
                                     SKP_Silk_encoder_control_FLP psEncCtrl,
                                     byte[] pCode,
                                     short[] pnBytesOut,
                                     float[] xfw)
Low Bitrate Redundancy (LBRR) encoding. Reuse all parameters but encode with lower bitrate.

Parameters:
psEnc - Encoder state FLP.
psEncCtrl - Encoder control FLP.
pCode - Payload.
pnBytesOut - Payload bytes; in: max; out: used.
xfw - Input signal.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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