Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class Silk_dec_API
extends Object

The Decoder API.

Author:
Jing Dai, Dingxin Xu

Constructor Summary
Silk_dec_API()
           
 
Method Summary
(package private) static int SKP_Silk_SDK_Decode(Object decState, SKP_SILK_SDK_DecControlStruct decControl, int lostFlag, byte[] inData, int inData_offset, int nBytesIn, short[] samplesOut, int samplesOut_offset, short[] nSamplesOut)
          Decode a frame.
(package private) static void SKP_Silk_SDK_get_TOC(byte[] inData, short nBytesIn, SKP_Silk_TOC_struct Silk_TOC)
          Getting type of content for a packet.
(package private) static String SKP_Silk_SDK_get_version()
          Get the version number.
(package private) static int SKP_Silk_SDK_InitDecoder(Object decState)
          Reset the decoder state.
(package private) static void SKP_Silk_SDK_search_for_LBRR(byte[] inData, int inData_offset, short nBytesIn, int lost_offset, byte[] LBRRData, int LBRRData_offset, short[] nLBRRBytes)
          Find LBRR information in a packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Silk_dec_API

public Silk_dec_API()
Method Detail

SKP_Silk_SDK_InitDecoder

static int SKP_Silk_SDK_InitDecoder(Object decState)
Reset the decoder state.

Parameters:
decState - the decoder state
Returns:
ret

SKP_Silk_SDK_Decode

static int SKP_Silk_SDK_Decode(Object decState,
                               SKP_SILK_SDK_DecControlStruct decControl,
                               int lostFlag,
                               byte[] inData,
                               int inData_offset,
                               int nBytesIn,
                               short[] samplesOut,
                               int samplesOut_offset,
                               short[] nSamplesOut)
Decode a frame.

Parameters:
decState - the decoder state.
decControl - the decoder control.
lostFlag - the lost flag. 0: no loss; 1: loss.
inData - encoding input vector.
inData_offset - the actual data offset in the input vector.
nBytesIn - number of input bytes.
samplesOut - decoded output speech vector.
samplesOut_offset - the actual data offset in the output vector.
nSamplesOut - number of samples.
Returns:
the returned value carries the error message. 0 indicates OK; other indicates error.

SKP_Silk_SDK_search_for_LBRR

static void SKP_Silk_SDK_search_for_LBRR(byte[] inData,
                                         int inData_offset,
                                         short nBytesIn,
                                         int lost_offset,
                                         byte[] LBRRData,
                                         int LBRRData_offset,
                                         short[] nLBRRBytes)
Find LBRR information in a packet.

Parameters:
inData - encoded input vector.
inData_offset - offset of the valid data.
nBytesIn - number of input bytes.
lost_offset - offset from lost packet.
LBRRData - LBRR payload.
LBRRData_offset - offset of the valid data.
nLBRRBytes - number of LBRR bytes.

SKP_Silk_SDK_get_TOC

static void SKP_Silk_SDK_get_TOC(byte[] inData,
                                 short nBytesIn,
                                 SKP_Silk_TOC_struct Silk_TOC)
Getting type of content for a packet.

Parameters:
inData - encoded input vector.
nBytesIn - number of input bytes.
Silk_TOC - type of content.

SKP_Silk_SDK_get_version

static String SKP_Silk_SDK_get_version()
Get the version number.

Returns:
the string specifying the version number.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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