libilbc  0.0.1
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_tilbc_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:
sThe iLBC encode context.
bytesThe iLBC data produced.
ampThe audio sample buffer.
lenThe number of samples in the buffer.
Returns:
The number of bytes of iLBC data produced.

Initialise an iLBC encode context.

Parameters:
sThe iLBC encode context.
modeThe frame size.
Returns:
A pointer to the iLBC encode context, or NULL for error.