annotate libtwamr/lsp_tab.h @ 477:4c9222d95647

libtwamr encoder: always emit frame->mode = mode; In the original implementation of amr_encode_frame(), the 'mode' member of the output struct was set to 0xFF if the output frame type is TX_NO_DATA. This design was made to mimic the mode field (16-bit word) being set to 0xFFFF (or -1) in 3GPP test sequence format - but nothing actually depends on this struct member being set in any way, and amr_frame_to_tseq() generates the needed 0xFFFF on its own, based on frame->type being equal to TX_NO_DATA. It is simpler and more efficient to always set frame->mode to the actual encoding mode in amr_encode_frame(), and this new behavior has already been documented in doc/AMR-library-API description in anticipation of the present change.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 18 May 2024 22:30:42 +0000
parents 7818f466a639
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
255
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
387
7818f466a639 libtwamr: integrate lsp.tab
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
2 * This header file holds the extern declaration for the table in lsp_tab.c,
7818f466a639 libtwamr: integrate lsp.tab
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
3 * previously static in lsp.tab include file, but now with intermodule linkage.
255
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
387
7818f466a639 libtwamr: integrate lsp.tab
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
6 #ifndef lsp_tab_h
7818f466a639 libtwamr: integrate lsp.tab
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
7 #define lsp_tab_h
255
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #include "typedef.h"
387
7818f466a639 libtwamr: integrate lsp.tab
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
10 #include "cnst.h"
255
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
387
7818f466a639 libtwamr: integrate lsp.tab
Mychaela Falconia <falcon@freecalypso.org>
parents: 255
diff changeset
12 extern const Word16 lsp_init_data[M];
255
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
07f936338de1 libtwamr: integrated up to b_cn_cod.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 #endif