ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

nb_celp.h File Reference

nb_celp.h File Reference

Narrowband CELP encoder/decoder. More...

Go to the source code of this file.

Data Structures

struct  EncState
 Structure representing the full state of the narrowband encoder. More...
struct  DecState
 Structure representing the full state of the narrowband decoder. More...

Typedefs

typedef struct EncState EncState
 Structure representing the full state of the narrowband encoder.
typedef struct DecState DecState
 Structure representing the full state of the narrowband decoder.

Functions

void * nb_encoder_init (const SpeexMode *m)
 Initializes encoder state.
void nb_encoder_destroy (void *state)
 De-allocates encoder state resources.
int nb_encode (void *state, void *in, SpeexBits *bits)
 Encodes one frame.
void * nb_decoder_init (const SpeexMode *m)
 Initializes decoder state.
void nb_decoder_destroy (void *state)
 De-allocates decoder state resources.
int nb_decode (void *state, SpeexBits *bits, void *out)
 Decodes one frame.
int nb_encoder_ctl (void *state, int request, void *ptr)
 ioctl-like function for controlling a narrowband encoder
int nb_decoder_ctl (void *state, int request, void *ptr)
 ioctl-like function for controlling a narrowband decoder

Detailed Description

Narrowband CELP encoder/decoder.

Definition in file nb_celp.h.


Typedef Documentation

typedef struct DecState DecState

Structure representing the full state of the narrowband decoder.

typedef struct EncState EncState

Structure representing the full state of the narrowband encoder.


Function Documentation

int nb_decode ( void *  state,
SpeexBits bits,
void *  out 
)

Decodes one frame.

int nb_decoder_ctl ( void *  state,
int  request,
void *  ptr 
)

ioctl-like function for controlling a narrowband decoder

void nb_decoder_destroy ( void *  state )

De-allocates decoder state resources.

void* nb_decoder_init ( const SpeexMode m )

Initializes decoder state.

int nb_encode ( void *  state,
void *  in,
SpeexBits bits 
)

Encodes one frame.

int nb_encoder_ctl ( void *  state,
int  request,
void *  ptr 
)

ioctl-like function for controlling a narrowband encoder

void nb_encoder_destroy ( void *  state )

De-allocates encoder state resources.

void* nb_encoder_init ( const SpeexMode m )

Initializes encoder state.