annotate libgsmfr2/enc_wrap.c @ 352:99661127ca53

libtwamr/bitno.h: fix typo in comment
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 05 May 2024 20:54:51 +0000
parents 52c667f17d2c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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, &param);
52c667f17d2c libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents: 113
diff changeset
15 gsmfr_pack_frame(&param, frame);
113
269d341db403 libgsmefr: implement main encoder wrapper
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 }