iLBC_decode.c File Reference

#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
#include "ilbc.h"
#include "StateConstructW.h"
#include "LPCdecode.h"
#include "iCBConstruct.h"
#include "doCPLC.h"
#include "helpfun.h"
#include "constants.h"
#include "packing.h"
#include "string.h"
#include "enhancer.h"
#include "hpOutput.h"
#include "syntFilter.h"

Functions

ilbc_decode_state_t * ilbc_decode_init (ilbc_decode_state_t *s, int mode, int use_enhancer)
int ilbc_decode_release (ilbc_decode_state_t *s)
int ilbc_decode (ilbc_decode_state_t *s, int16_t amp[], const uint8_t bytes[], int len)
int ilbc_fillin (ilbc_decode_state_t *s, int16_t amp[], int len)

Detailed Description


Function Documentation

int ilbc_decode ( ilbc_decode_state_t *  s,
int16_t  amp[],
const uint8_t  bytes[],
int  len 
)

Decode a buffer of iLBC data to linear PCM.

Parameters:
s The iLBC deocde context.
amp The audio sample buffer.
bytes The excoded data.
len The length of the encoded data, in bytes.
Returns:
The number of samples returned.

ilbc_decode_state_t* ilbc_decode_init ( ilbc_decode_state_t *  s,
int  mode,
int  use_enhancer 
)

Initialise an iLBC decode context.

Parameters:
s The iLBC decode context.
mode The frame size.
use_enhancer TRUE to use the audio enhancer option.
Returns:
A pointer to the iLBC decode context, or NULL for error.

int ilbc_fillin ( ilbc_decode_state_t *  s,
int16_t  amp[],
int  len 
)

Produce linear PCM data to fill in where received iLBC data is missing.

Parameters:
s The iLBC context.
amp The audio sample buffer.
len 
Returns:
The number of samples returned.


Generated on Wed Dec 8 21:27:39 2010 for libilbc by  doxygen 1.5.9