iLBC_encode.c File Reference

#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "ilbc.h"
#include "LPCencode.h"
#include "FrameClassify.h"
#include "StateSearchW.h"
#include "StateConstructW.h"
#include "helpfun.h"
#include "constants.h"
#include "packing.h"
#include "iCBSearch.h"
#include "iCBConstruct.h"
#include "hpInput.h"
#include "anaFilter.h"
#include "syntFilter.h"

Functions

ilbc_encode_state_t * ilbc_encode_init (ilbc_encode_state_t *s, int mode)
int ilbc_encode_release (ilbc_encode_state_t *s)
int ilbc_encode (ilbc_encode_state_t *s, uint8_t bytes[], const int16_t amp[], int len)

Detailed Description


Function Documentation

int ilbc_encode ( ilbc_encode_state_t *  s,
uint8_t  bytes[],
const int16_t  amp[],
int  len 
)

Encode a buffer of linear PCM data to iLBC

Parameters:
s The iLBC encode context.
bytes The iLBC data produced.
amp The audio sample buffer.
len The number of samples in the buffer.
Returns:
The number of bytes of iLBC data produced.

ilbc_encode_state_t* ilbc_encode_init ( ilbc_encode_state_t *  s,
int  mode 
)

Initialise an iLBC encode context.

Parameters:
s The iLBC encode context.
mode The frame size.
Returns:
A pointer to the iLBC encode context, or NULL for error.


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