summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libopus/silk/tables_LTP.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/libopus/silk/tables_LTP.c')
-rw-r--r--lib/rbcodec/codecs/libopus/silk/tables_LTP.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libopus/silk/tables_LTP.c b/lib/rbcodec/codecs/libopus/silk/tables_LTP.c
index d16a511cc2..ea518652b8 100644
--- a/lib/rbcodec/codecs/libopus/silk/tables_LTP.c
+++ b/lib/rbcodec/codecs/libopus/silk/tables_LTP.c
@@ -8,7 +8,7 @@ this list of conditions and the following disclaimer.
8- Redistributions in binary form must reproduce the above copyright 8- Redistributions in binary form must reproduce the above copyright
9notice, this list of conditions and the following disclaimer in the 9notice, this list of conditions and the following disclaimer in the
10documentation and/or other materials provided with the distribution. 10documentation and/or other materials provided with the distribution.
11- Neither the name of Internet Society, IETF or IETF Trust, nor the 11- Neither the name of Internet Society, IETF or IETF Trust, nor the
12names of specific contributors, may be used to endorse or promote 12names of specific contributors, may be used to endorse or promote
13products derived from this software without specific prior written 13products derived from this software without specific prior written
14permission. 14permission.
@@ -51,6 +51,7 @@ static const opus_uint8 silk_LTP_gain_iCDF_2[32] = {
51 24, 20, 16, 12, 9, 5, 2, 0 51 24, 20, 16, 12, 9, 5, 2, 0
52}; 52};
53 53
54#if 0
54const opus_int16 silk_LTP_gain_middle_avg_RD_Q14 = 12304; 55const opus_int16 silk_LTP_gain_middle_avg_RD_Q14 = 12304;
55 56
56static const opus_uint8 silk_LTP_gain_BITS_Q5_0[8] = { 57static const opus_uint8 silk_LTP_gain_BITS_Q5_0[8] = {
@@ -68,6 +69,7 @@ static const opus_uint8 silk_LTP_gain_BITS_Q5_2[32] = {
68 160, 160, 166, 166, 173, 173, 182, 192, 69 160, 160, 166, 166, 173, 173, 182, 192,
69 182, 192, 192, 192, 205, 192, 205, 224 70 182, 192, 192, 192, 205, 192, 205, 224
70}; 71};
72#endif
71 73
72const opus_uint8 * const silk_LTP_gain_iCDF_ptrs[NB_LTP_CBKS] = { 74const opus_uint8 * const silk_LTP_gain_iCDF_ptrs[NB_LTP_CBKS] = {
73 silk_LTP_gain_iCDF_0, 75 silk_LTP_gain_iCDF_0,
@@ -75,11 +77,13 @@ const opus_uint8 * const silk_LTP_gain_iCDF_ptrs[NB_LTP_CBKS] = {
75 silk_LTP_gain_iCDF_2 77 silk_LTP_gain_iCDF_2
76}; 78};
77 79
80#if 0
78const opus_uint8 * const silk_LTP_gain_BITS_Q5_ptrs[NB_LTP_CBKS] = { 81const opus_uint8 * const silk_LTP_gain_BITS_Q5_ptrs[NB_LTP_CBKS] = {
79 silk_LTP_gain_BITS_Q5_0, 82 silk_LTP_gain_BITS_Q5_0,
80 silk_LTP_gain_BITS_Q5_1, 83 silk_LTP_gain_BITS_Q5_1,
81 silk_LTP_gain_BITS_Q5_2 84 silk_LTP_gain_BITS_Q5_2
82}; 85};
86#endif
83 87
84static const opus_int8 silk_LTP_gain_vq_0[8][5] = 88static const opus_int8 silk_LTP_gain_vq_0[8][5] =
85{ 89{
@@ -267,6 +271,32 @@ const opus_int8 * const silk_LTP_vq_ptrs_Q7[NB_LTP_CBKS] = {
267 (opus_int8 *)&silk_LTP_gain_vq_2[0][0] 271 (opus_int8 *)&silk_LTP_gain_vq_2[0][0]
268}; 272};
269 273
274#if 0
275/* Maximum frequency-dependent response of the pitch taps above,
276 computed as max(abs(freqz(taps))) */
277static const opus_uint8 silk_LTP_gain_vq_0_gain[8] = {
278 46, 2, 90, 87, 93, 91, 82, 98
279};
280
281static const opus_uint8 silk_LTP_gain_vq_1_gain[16] = {
282 109, 120, 118, 12, 113, 115, 117, 119,
283 99, 59, 87, 111, 63, 111, 112, 80
284};
285
286static const opus_uint8 silk_LTP_gain_vq_2_gain[32] = {
287 126, 124, 125, 124, 129, 121, 126, 23,
288 132, 127, 127, 127, 126, 127, 122, 133,
289 130, 134, 101, 118, 119, 145, 126, 86,
290 124, 120, 123, 119, 170, 173, 107, 109
291};
292
293const opus_uint8 * const silk_LTP_vq_gain_ptrs_Q7[NB_LTP_CBKS] = {
294 &silk_LTP_gain_vq_0_gain[0],
295 &silk_LTP_gain_vq_1_gain[0],
296 &silk_LTP_gain_vq_2_gain[0]
297};
298
270const opus_int8 silk_LTP_vq_sizes[NB_LTP_CBKS] = { 299const opus_int8 silk_LTP_vq_sizes[NB_LTP_CBKS] = {
271 8, 16, 32 300 8, 16, 32
272}; 301};
302#endif