Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Side by Side Diff: silk/tables_LTP.c

Issue 12388030: Update Opus to 1.0.2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « silk/resampler_rom.c ('k') | silk/tables_NLSF_CB_NB_MB.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*********************************************************************** 1 /***********************************************************************
2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved.
3 Redistribution and use in source and binary forms, with or without 3 Redistribution and use in source and binary forms, with or without
4 modification, are permitted provided that the following conditions 4 modification, are permitted provided that the following conditions
5 are met: 5 are met:
6 - Redistributions of source code must retain the above copyright notice, 6 - Redistributions of source code must retain the above copyright notice,
7 this list of conditions and the following disclaimer. 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
9 notice, this list of conditions and the following disclaimer in the 9 notice, this list of conditions and the following disclaimer in the
10 documentation and/or other materials provided with the distribution. 10 documentation and/or other materials provided with the distribution.
(...skipping 17 matching lines...) Expand all
28 #ifdef HAVE_CONFIG_H 28 #ifdef HAVE_CONFIG_H
29 #include "config.h" 29 #include "config.h"
30 #endif 30 #endif
31 31
32 #include "tables.h" 32 #include "tables.h"
33 33
34 const opus_uint8 silk_LTP_per_index_iCDF[3] = { 34 const opus_uint8 silk_LTP_per_index_iCDF[3] = {
35 179, 99, 0 35 179, 99, 0
36 }; 36 };
37 37
38 const opus_uint8 silk_LTP_gain_iCDF_0[8] = { 38 static const opus_uint8 silk_LTP_gain_iCDF_0[8] = {
39 71, 56, 43, 30, 21, 12, 6, 0 39 71, 56, 43, 30, 21, 12, 6, 0
40 }; 40 };
41 41
42 const opus_uint8 silk_LTP_gain_iCDF_1[16] = { 42 static const opus_uint8 silk_LTP_gain_iCDF_1[16] = {
43 199, 165, 144, 124, 109, 96, 84, 71, 43 199, 165, 144, 124, 109, 96, 84, 71,
44 61, 51, 42, 32, 23, 15, 8, 0 44 61, 51, 42, 32, 23, 15, 8, 0
45 }; 45 };
46 46
47 const opus_uint8 silk_LTP_gain_iCDF_2[32] = { 47 static const opus_uint8 silk_LTP_gain_iCDF_2[32] = {
48 241, 225, 211, 199, 187, 175, 164, 153, 48 241, 225, 211, 199, 187, 175, 164, 153,
49 142, 132, 123, 114, 105, 96, 88, 80, 49 142, 132, 123, 114, 105, 96, 88, 80,
50 72, 64, 57, 50, 44, 38, 33, 29, 50 72, 64, 57, 50, 44, 38, 33, 29,
51 24, 20, 16, 12, 9, 5, 2, 0 51 24, 20, 16, 12, 9, 5, 2, 0
52 }; 52 };
53 53
54 const opus_int16 silk_LTP_gain_middle_avg_RD_Q14 = 12304; 54 const opus_int16 silk_LTP_gain_middle_avg_RD_Q14 = 12304;
55 55
56 const opus_uint8 silk_LTP_gain_BITS_Q5_0[8] = { 56 static const opus_uint8 silk_LTP_gain_BITS_Q5_0[8] = {
57 15, 131, 138, 138, 155, 155, 173, 173 57 15, 131, 138, 138, 155, 155, 173, 173
58 }; 58 };
59 59
60 const opus_uint8 silk_LTP_gain_BITS_Q5_1[16] = { 60 static const opus_uint8 silk_LTP_gain_BITS_Q5_1[16] = {
61 69, 93, 115, 118, 131, 138, 141, 138, 61 69, 93, 115, 118, 131, 138, 141, 138,
62 150, 150, 155, 150, 155, 160, 166, 160 62 150, 150, 155, 150, 155, 160, 166, 160
63 }; 63 };
64 64
65 const opus_uint8 silk_LTP_gain_BITS_Q5_2[32] = { 65 static const opus_uint8 silk_LTP_gain_BITS_Q5_2[32] = {
66 131, 128, 134, 141, 141, 141, 145, 145, 66 131, 128, 134, 141, 141, 141, 145, 145,
67 145, 150, 155, 155, 155, 155, 160, 160, 67 145, 150, 155, 155, 155, 155, 160, 160,
68 160, 160, 166, 166, 173, 173, 182, 192, 68 160, 160, 166, 166, 173, 173, 182, 192,
69 182, 192, 192, 192, 205, 192, 205, 224 69 182, 192, 192, 192, 205, 192, 205, 224
70 }; 70 };
71 71
72 const opus_uint8 * const silk_LTP_gain_iCDF_ptrs[NB_LTP_CBKS] = { 72 const opus_uint8 * const silk_LTP_gain_iCDF_ptrs[NB_LTP_CBKS] = {
73 silk_LTP_gain_iCDF_0, 73 silk_LTP_gain_iCDF_0,
74 silk_LTP_gain_iCDF_1, 74 silk_LTP_gain_iCDF_1,
75 silk_LTP_gain_iCDF_2 75 silk_LTP_gain_iCDF_2
76 }; 76 };
77 77
78 const opus_uint8 * const silk_LTP_gain_BITS_Q5_ptrs[NB_LTP_CBKS] = { 78 const opus_uint8 * const silk_LTP_gain_BITS_Q5_ptrs[NB_LTP_CBKS] = {
79 silk_LTP_gain_BITS_Q5_0, 79 silk_LTP_gain_BITS_Q5_0,
80 silk_LTP_gain_BITS_Q5_1, 80 silk_LTP_gain_BITS_Q5_1,
81 silk_LTP_gain_BITS_Q5_2 81 silk_LTP_gain_BITS_Q5_2
82 }; 82 };
83 83
84 const opus_int8 silk_LTP_gain_vq_0[8][5] = 84 static const opus_int8 silk_LTP_gain_vq_0[8][5] =
85 { 85 {
86 { 86 {
87 4, 6, 24, 7, 5 87 4, 6, 24, 7, 5
88 }, 88 },
89 { 89 {
90 0, 0, 2, 0, 0 90 0, 0, 2, 0, 0
91 }, 91 },
92 { 92 {
93 12, 28, 41, 13, -4 93 12, 28, 41, 13, -4
94 }, 94 },
95 { 95 {
96 -9, 15, 42, 25, 14 96 -9, 15, 42, 25, 14
97 }, 97 },
98 { 98 {
99 1, -2, 62, 41, -9 99 1, -2, 62, 41, -9
100 }, 100 },
101 { 101 {
102 -10, 37, 65, -4, 3 102 -10, 37, 65, -4, 3
103 }, 103 },
104 { 104 {
105 -6, 4, 66, 7, -8 105 -6, 4, 66, 7, -8
106 }, 106 },
107 { 107 {
108 16, 14, 38, -3, 33 108 16, 14, 38, -3, 33
109 } 109 }
110 }; 110 };
111 111
112 const opus_int8 silk_LTP_gain_vq_1[16][5] = 112 static const opus_int8 silk_LTP_gain_vq_1[16][5] =
113 { 113 {
114 { 114 {
115 13, 22, 39, 23, 12 115 13, 22, 39, 23, 12
116 }, 116 },
117 { 117 {
118 -1, 36, 64, 27, -6 118 -1, 36, 64, 27, -6
119 }, 119 },
120 { 120 {
121 -7, 10, 55, 43, 17 121 -7, 10, 55, 43, 17
122 }, 122 },
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 -15, 33, 68, 2, 23 154 -15, 33, 68, 2, 23
155 }, 155 },
156 { 156 {
157 -2, 55, 46, -2, 15 157 -2, 55, 46, -2, 15
158 }, 158 },
159 { 159 {
160 3, -1, 21, 16, 41 160 3, -1, 21, 16, 41
161 } 161 }
162 }; 162 };
163 163
164 const opus_int8 silk_LTP_gain_vq_2[32][5] = 164 static const opus_int8 silk_LTP_gain_vq_2[32][5] =
165 { 165 {
166 { 166 {
167 -6, 27, 61, 39, 5 167 -6, 27, 61, 39, 5
168 }, 168 },
169 { 169 {
170 -11, 42, 88, 4, 1 170 -11, 42, 88, 4, 1
171 }, 171 },
172 { 172 {
173 -2, 60, 65, 6, -4 173 -2, 60, 65, 6, -4
174 }, 174 },
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 const opus_int8 * const silk_LTP_vq_ptrs_Q7[NB_LTP_CBKS] = { 264 const opus_int8 * const silk_LTP_vq_ptrs_Q7[NB_LTP_CBKS] = {
265 (opus_int8 *)&silk_LTP_gain_vq_0[0][0], 265 (opus_int8 *)&silk_LTP_gain_vq_0[0][0],
266 (opus_int8 *)&silk_LTP_gain_vq_1[0][0], 266 (opus_int8 *)&silk_LTP_gain_vq_1[0][0],
267 (opus_int8 *)&silk_LTP_gain_vq_2[0][0] 267 (opus_int8 *)&silk_LTP_gain_vq_2[0][0]
268 }; 268 };
269 269
270 const opus_int8 silk_LTP_vq_sizes[NB_LTP_CBKS] = { 270 const opus_int8 silk_LTP_vq_sizes[NB_LTP_CBKS] = {
271 8, 16, 32 271 8, 16, 32
272 }; 272 };
OLDNEW
« no previous file with comments | « silk/resampler_rom.c ('k') | silk/tables_NLSF_CB_NB_MB.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698