comparison libgsmefr/q_plsf_5.c @ 118:cc08498ed21b

libgsmefr: factor out q_plsf_5 tables into their own C module
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 10 Dec 2022 01:28:05 +0000
parents 77803ce2cc22
children 72cf52ba91f8
comparison
equal deleted inserted replaced
117:f9c9dd458d55 118:cc08498ed21b
35 35
36 #include "cnst.h" 36 #include "cnst.h"
37 #include "dtx.h" 37 #include "dtx.h"
38 #include "enc_state.h" 38 #include "enc_state.h"
39 39
40 #include "q_plsf5_tab.h" /* Codebooks of LSF prediction residual */
41
40 /* Locals functions */ 42 /* Locals functions */
41 43
42 static void Lsf_wt ( 44 static void Lsf_wt (
43 Word16 *lsf, /* input : LSF vector */ 45 Word16 *lsf, /* input : LSF vector */
44 Word16 *wf2 /* output: square of weighting factors */ 46 Word16 *wf2 /* output: square of weighting factors */
70 /* PRED_FAC -> Predcition factor */ 72 /* PRED_FAC -> Predcition factor */
71 73
72 #define M 10 74 #define M 10
73 #define LSF_GAP 205 75 #define LSF_GAP 205
74 #define PRED_FAC 21299 76 #define PRED_FAC 21299
75
76 #include "q_plsf_5.tab" /* Codebooks of LSF prediction residual */
77 77
78 void Q_plsf_5 ( 78 void Q_plsf_5 (
79 struct EFR_encoder_state *st, 79 struct EFR_encoder_state *st,
80 Word16 *lsp1, /* input : 1st LSP vector */ 80 Word16 *lsp1, /* input : 1st LSP vector */
81 Word16 *lsp2, /* input : 2nd LSP vector */ 81 Word16 *lsp2, /* input : 2nd LSP vector */