1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
18 #ifndef GET_CONST_TBLS_H
19 #include "get_const_tbls.h"
27 extern const Word16 dgray[];
28 extern const Word16 dico1_lsf_3[];
29 extern const Word16 dico1_lsf_5[];
30 extern const Word16 dico2_lsf_3[];
31 extern const Word16 dico2_lsf_5[];
32 extern const Word16 dico3_lsf_3[];
33 extern const Word16 dico3_lsf_5[];
34 extern const Word16 dico4_lsf_5[];
35 extern const Word16 dico5_lsf_5[];
36 extern const Word16 gray[];
37 extern const Word16 lsp_init_data[];
38 extern const Word16 mean_lsf_3[];
39 extern const Word16 mean_lsf_5[];
40 extern const Word16 mr515_3_lsf[];
41 extern const Word16 mr795_1_lsf[];
42 extern const Word16 past_rq_init[];
43 extern const Word16 pred_fac_3[];
44 extern const Word16 qua_gain_code[];
45 extern const Word16 qua_gain_pitch[];
46 extern const Word16 startPos[];
47 extern const Word16 table_gain_lowrates[];
48 extern const Word16 table_gain_highrates[];
49 extern const Word16 prmno[];
50 extern const Word16* const bitno[];
51 extern const Word16 numOfBits[];
52 extern const Word16* const reorderBits[];
53 extern const Word16 numCompressedBytes[];
54 extern const Word16 window_200_40[];
55 extern const Word16 window_160_80[];
56 extern const Word16 window_232_8[];
57 extern const Word16 ph_imp_low_MR795[];
58 extern const Word16 ph_imp_mid_MR795[];
59 extern const Word16 ph_imp_low[];
60 extern const Word16 ph_imp_mid[];
66 OSCL_EXPORT_REF void get_const_tbls(CommonAmrTbls* tbl_struct_ptr)
68 tbl_struct_ptr->dgray_ptr = dgray;
69 tbl_struct_ptr->dico1_lsf_3_ptr = dico1_lsf_3;
70 tbl_struct_ptr->dico1_lsf_5_ptr = dico1_lsf_5;
71 tbl_struct_ptr->dico2_lsf_3_ptr = dico2_lsf_3;
72 tbl_struct_ptr->dico2_lsf_5_ptr = dico2_lsf_5;
73 tbl_struct_ptr->dico3_lsf_3_ptr = dico3_lsf_3;
74 tbl_struct_ptr->dico3_lsf_5_ptr = dico3_lsf_5;
75 tbl_struct_ptr->dico4_lsf_5_ptr = dico4_lsf_5;
76 tbl_struct_ptr->dico5_lsf_5_ptr = dico5_lsf_5;
77 tbl_struct_ptr->gray_ptr = gray;
78 tbl_struct_ptr->lsp_init_data_ptr = lsp_init_data;
79 tbl_struct_ptr->mean_lsf_3_ptr = mean_lsf_3;
80 tbl_struct_ptr->mean_lsf_5_ptr = mean_lsf_5;
81 tbl_struct_ptr->mr515_3_lsf_ptr = mr515_3_lsf;
82 tbl_struct_ptr->mr795_1_lsf_ptr = mr795_1_lsf;
83 tbl_struct_ptr->past_rq_init_ptr = past_rq_init;
84 tbl_struct_ptr->pred_fac_3_ptr = pred_fac_3;
85 tbl_struct_ptr->qua_gain_code_ptr = qua_gain_code;
86 tbl_struct_ptr->qua_gain_pitch_ptr = qua_gain_pitch;
87 tbl_struct_ptr->startPos_ptr = startPos;
88 tbl_struct_ptr->table_gain_lowrates_ptr = table_gain_lowrates;
89 tbl_struct_ptr->table_gain_highrates_ptr = table_gain_highrates;
90 tbl_struct_ptr->prmno_ptr = prmno;
91 tbl_struct_ptr->bitno_ptr = bitno;
92 tbl_struct_ptr->numOfBits_ptr = numOfBits;
93 tbl_struct_ptr->reorderBits_ptr = reorderBits;
94 tbl_struct_ptr->numCompressedBytes_ptr = numCompressedBytes;
95 tbl_struct_ptr->window_200_40_ptr = window_200_40;
96 tbl_struct_ptr->window_160_80_ptr = window_160_80;
97 tbl_struct_ptr->window_232_8_ptr = window_232_8;
98 tbl_struct_ptr->ph_imp_low_MR795_ptr = ph_imp_low_MR795;
99 tbl_struct_ptr->ph_imp_mid_MR795_ptr = ph_imp_mid_MR795;
100 tbl_struct_ptr->ph_imp_low_ptr = ph_imp_low;
101 tbl_struct_ptr->ph_imp_mid_ptr = ph_imp_mid;