libg722_1  0.0.1
encoderf.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_encode (g722_1_encode_state_t *s, uint8_t g722_1_data[], const int16_t amp[], int len)
 

Function Documentation

int g722_1_encode ( g722_1_encode_state_t s,
uint8_t  g722_1_data[],
const int16_t  amp[],
int  len 
)

Encode a buffer of linear PCM data to G.722.1

Parameters
sThe G.722.1 encode context.
g722_1_dataThe G.722.1 data produced.
ampThe audio sample buffer.
lenThe number of samples in the buffer.
Returns
The number of bytes of G.722.1 data produced.