FreeCalypso > hg > gsm-codec-lib
annotate libgsmfr2/enc_wrap.c @ 506:2d6da062c452
libgsmhr1/sp_rom.[ch]: import original
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 19 Jun 2024 01:55:54 +0000 |
parents | 52c667f17d2c |
children |
rev | line source |
---|---|
113
269d341db403
libgsmefr: implement main encoder wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
274
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
2 * This module contains our gsmfr_0610_encode_frame() function, which is |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
3 * the primary (most common, most useful) interface to our GSM 06.10 encoder. |
113
269d341db403
libgsmefr: implement main encoder wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 */ |
269d341db403
libgsmefr: implement main encoder wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
274
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
6 #include <stdint.h> |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
7 #include "tw_gsmfr.h" |
113
269d341db403
libgsmefr: implement main encoder wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
274
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
9 void gsmfr_0610_encode_frame(struct gsmfr_0610_state *st, const int16_t *pcm, |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
10 uint8_t *frame) |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
11 { |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
12 struct gsmfr_param_frame param; |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
13 |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
14 gsmfr_0610_encode_params(st, pcm, ¶m); |
52c667f17d2c
libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
113
diff
changeset
|
15 gsmfr_pack_frame(¶m, frame); |
113
269d341db403
libgsmefr: implement main encoder wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 } |