libg722_1  0.0.1
decoderf.c File Reference
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "g722_1/g722_1.h"
#include "defs.h"
#include "huff_tab.h"
#include "tables.h"
#include "bitstream.h"
#include "utilities.h"

Functions

int g722_1_decode (g722_1_decode_state_t *s, int16_t amp[], const uint8_t g722_1_data[], int len)
 
int g722_1_fillin (g722_1_decode_state_t *s, int16_t amp[], const uint8_t g722_1_data[], int len)
 

Function Documentation

int g722_1_decode ( g722_1_decode_state_t s,
int16_t  amp[],
const uint8_t  g722_1_data[],
int  len 
)

Decode a buffer of G.722.1 data to linear PCM.

Parameters
sThe G.722.1 decode context.
ampThe audio sample buffer.
g722_1_data
len
Returns
The number of samples returned.

References g722_1_bitstream_init().

int g722_1_fillin ( g722_1_decode_state_t s,
int16_t  amp[],
const uint8_t  g722_1_data[],
int  len 
)

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

Parameters
sThe G.722.1 decode context.
ampThe audio sample buffer.
g722_1_data
len
Returns
The number of samples returned.

References g722_1_bitstream_init().