|
osmo-gmr 0.2.104-2b98
Osmocom GMR-1
|
Modules | |
| AMBE vocoder - internal API | |
Files | |
| file | codec.h |
| Osmocom GMR-1 AMBE vocoder header. | |
| file | codec.c |
| Osmocom GMR-1 AMBE vocoder public API implementation. | |
Data Structures | |
| struct | gmr1_codec |
| Structure for GMR1 codec state. More... | |
Functions | |
| struct gmr1_codec * | gmr1_codec_alloc (void) |
| Allocates and inits a codec object. More... | |
| void | gmr1_codec_release (struct gmr1_codec *codec) |
| Release a codec object created by gmr1_codec_alloc. More... | |
| int | gmr1_codec_decode_frame (struct gmr1_codec *codec, int16_t *audio, int N, const uint8_t *frame, int bad) |
| Decodes an AMBE frame to audio. More... | |
| int | gmr1_codec_decode_dtx (struct gmr1_codec *codec, int16_t *audio, int N) |
| Generates audio for DTX period. More... | |
| struct gmr1_codec * gmr1_codec_alloc | ( | void | ) |
Allocates and inits a codec object.
References ambe_decode_init(), and gmr1_codec::dec.
| int gmr1_codec_decode_dtx | ( | struct gmr1_codec * | codec, |
| int16_t * | audio, | ||
| int | N | ||
| ) |
Generates audio for DTX period.
| [in] | codec | Codec object |
| [out] | audio | Output audio buffer |
| [in] | N | number of audio samples to produce (152..168) |
References ambe_decode_dtx(), and gmr1_codec::dec.
| int gmr1_codec_decode_frame | ( | struct gmr1_codec * | codec, |
| int16_t * | audio, | ||
| int | N, | ||
| const uint8_t * | frame, | ||
| int | bad | ||
| ) |
Decodes an AMBE frame to audio.
| [in] | codec | Codec object |
| [out] | audio | Output audio buffer |
| [in] | N | number of audio samples to produce (152..168) |
| [in] | frame | Frame data (10 bytes = 80 bits) |
| [in] | bad | Bad Frame Indicator. Set to 1 if frame is corrupt |
References ambe_decode_frame(), and gmr1_codec::dec.
| void gmr1_codec_release | ( | struct gmr1_codec * | codec | ) |
Release a codec object created by gmr1_codec_alloc.
| [in] | codec | The codec object to release |
References ambe_decode_fini(), and gmr1_codec::dec.