mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-12-17 07:42:06 +00:00
0d5fb492cd
Fix GCC 6 misleading-indentation warning add SECURITY.md OpenGL2: Restore adding fixed ambient light when HDR is enabled Few LCC memory fixes. fix a few potential buffer overwrite in Game VM Enable compiler optimization on all macOS architectures Don't allow qagame module to create "botlib.log" at ANY filesystem location Make FS_BuildOSPath for botlib.log consistent with typical usage tiny readme thing Remove extra plus sign from Huff_Compress() Fix VMs being able to change CVAR_PROTECTED cvars Don't register fs_game cvar everywhere just to get the value Don't let VMs change engine latch cvars immediately Fix fs_game '..' reading outside of home and base path Fix VMs forcing engine latch cvar to update to latched value Revert my recent cvar latch changes Revert "Don't let VMs change engine latch cvars immediately" Partially revert "Fix fs_game '..' reading outside of home and base path" Revert "Fix VMs forcing engine latch cvar to update to latched value" Fix exploit to bypass filename restrictions on Windows Changes to systemd q3a.service Fix Q_vsnprintf for mingw-w64 Fix timelimit causing an infinite map ending loop Fix invalid access to cluster 0 in AAS_AreaRouteToGoalArea() Fix negative frag/capturelimit causing an infinite map end loop OpenGL2: Fix dark lightmap on shader in mpteam6 Make FS_InvalidGameDir() consider subdirectories invalid [qcommon] Remove dead serialization code [qcommon] Make several zone variables and functions static. Fix MAC_OS_X_VERSION_MIN_REQUIRED for macOS 10.10 and later Increase q3_ui .arena filename list buffer size to 4096 bytes OpenGL2: Fix crash when BSP has deluxe maps and vertex lit surfaces Support Unicode characters greater than 0xFF in cl_consoleKeys Fix macOS app bundle with space in name OpenGL1: Use glGenTextures instead of hardcoded values Remove CON_FlushIn function and where STDIN needs flushing, use tcflush POSIX function Update libogg from 1.3.2 to 1.3.3 Rename (already updated) libogg-1.3.2 to libogg-1.3.3 Update libvorbis from 1.3.5 to 1.3.6 * Fix CVE-2018-5146 - out-of-bounds write on codebook decoding. * Fix CVE-2017-14632 - free() on unitialized data * Fix CVE-2017-14633 - out-of-bounds read Rename (already updated) libvorbis-1.3.5 to libvorbis-1.3.6 Update opus from 1.1.4 to 1.2.1 Rename (already updated) opus-1.1.4 to opus-1.2.1 Update opusfile from 0.8 to 0.9 Rename (already updated) opusfile-0.8 to opusfile-0.9 First swing at a CONTRIBUTING.md Allow loading system OpenAL library on macOS again Remove duplicate setting of FREETYPE_CFLAGS in Makefile Fix exploit to reset player by sending wrong serverId Fix "Going to CS_ZOMBIE for [clientname]" developer message Fix MSG_Read*String*() functions not being able to read last byte from message
195 lines
10 KiB
C
195 lines
10 KiB
C
/***********************************************************************
|
|
Copyright (c) 2006-2011, Skype Limited. All rights reserved.
|
|
Redistribution and use in source and binary forms, with or without
|
|
modification, are permitted provided that the following conditions
|
|
are met:
|
|
- Redistributions of source code must retain the above copyright notice,
|
|
this list of conditions and the following disclaimer.
|
|
- Redistributions in binary form must reproduce the above copyright
|
|
notice, this list of conditions and the following disclaimer in the
|
|
documentation and/or other materials provided with the distribution.
|
|
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
|
names of specific contributors, may be used to endorse or promote
|
|
products derived from this software without specific prior written
|
|
permission.
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
POSSIBILITY OF SUCH DAMAGE.
|
|
***********************************************************************/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include "tables.h"
|
|
|
|
static const opus_uint8 silk_NLSF_CB1_NB_MB_Q8[ 320 ] = {
|
|
12, 35, 60, 83, 108, 132, 157, 180,
|
|
206, 228, 15, 32, 55, 77, 101, 125,
|
|
151, 175, 201, 225, 19, 42, 66, 89,
|
|
114, 137, 162, 184, 209, 230, 12, 25,
|
|
50, 72, 97, 120, 147, 172, 200, 223,
|
|
26, 44, 69, 90, 114, 135, 159, 180,
|
|
205, 225, 13, 22, 53, 80, 106, 130,
|
|
156, 180, 205, 228, 15, 25, 44, 64,
|
|
90, 115, 142, 168, 196, 222, 19, 24,
|
|
62, 82, 100, 120, 145, 168, 190, 214,
|
|
22, 31, 50, 79, 103, 120, 151, 170,
|
|
203, 227, 21, 29, 45, 65, 106, 124,
|
|
150, 171, 196, 224, 30, 49, 75, 97,
|
|
121, 142, 165, 186, 209, 229, 19, 25,
|
|
52, 70, 93, 116, 143, 166, 192, 219,
|
|
26, 34, 62, 75, 97, 118, 145, 167,
|
|
194, 217, 25, 33, 56, 70, 91, 113,
|
|
143, 165, 196, 223, 21, 34, 51, 72,
|
|
97, 117, 145, 171, 196, 222, 20, 29,
|
|
50, 67, 90, 117, 144, 168, 197, 221,
|
|
22, 31, 48, 66, 95, 117, 146, 168,
|
|
196, 222, 24, 33, 51, 77, 116, 134,
|
|
158, 180, 200, 224, 21, 28, 70, 87,
|
|
106, 124, 149, 170, 194, 217, 26, 33,
|
|
53, 64, 83, 117, 152, 173, 204, 225,
|
|
27, 34, 65, 95, 108, 129, 155, 174,
|
|
210, 225, 20, 26, 72, 99, 113, 131,
|
|
154, 176, 200, 219, 34, 43, 61, 78,
|
|
93, 114, 155, 177, 205, 229, 23, 29,
|
|
54, 97, 124, 138, 163, 179, 209, 229,
|
|
30, 38, 56, 89, 118, 129, 158, 178,
|
|
200, 231, 21, 29, 49, 63, 85, 111,
|
|
142, 163, 193, 222, 27, 48, 77, 103,
|
|
133, 158, 179, 196, 215, 232, 29, 47,
|
|
74, 99, 124, 151, 176, 198, 220, 237,
|
|
33, 42, 61, 76, 93, 121, 155, 174,
|
|
207, 225, 29, 53, 87, 112, 136, 154,
|
|
170, 188, 208, 227, 24, 30, 52, 84,
|
|
131, 150, 166, 186, 203, 229, 37, 48,
|
|
64, 84, 104, 118, 156, 177, 201, 230
|
|
};
|
|
|
|
static const opus_int16 silk_NLSF_CB1_Wght_Q9[ 320 ] = {
|
|
2897, 2314, 2314, 2314, 2287, 2287, 2314, 2300, 2327, 2287,
|
|
2888, 2580, 2394, 2367, 2314, 2274, 2274, 2274, 2274, 2194,
|
|
2487, 2340, 2340, 2314, 2314, 2314, 2340, 2340, 2367, 2354,
|
|
3216, 2766, 2340, 2340, 2314, 2274, 2221, 2207, 2261, 2194,
|
|
2460, 2474, 2367, 2394, 2394, 2394, 2394, 2367, 2407, 2314,
|
|
3479, 3056, 2127, 2207, 2274, 2274, 2274, 2287, 2314, 2261,
|
|
3282, 3141, 2580, 2394, 2247, 2221, 2207, 2194, 2194, 2114,
|
|
4096, 3845, 2221, 2620, 2620, 2407, 2314, 2394, 2367, 2074,
|
|
3178, 3244, 2367, 2221, 2553, 2434, 2340, 2314, 2167, 2221,
|
|
3338, 3488, 2726, 2194, 2261, 2460, 2354, 2367, 2207, 2101,
|
|
2354, 2420, 2327, 2367, 2394, 2420, 2420, 2420, 2460, 2367,
|
|
3779, 3629, 2434, 2527, 2367, 2274, 2274, 2300, 2207, 2048,
|
|
3254, 3225, 2713, 2846, 2447, 2327, 2300, 2300, 2274, 2127,
|
|
3263, 3300, 2753, 2806, 2447, 2261, 2261, 2247, 2127, 2101,
|
|
2873, 2981, 2633, 2367, 2407, 2354, 2194, 2247, 2247, 2114,
|
|
3225, 3197, 2633, 2580, 2274, 2181, 2247, 2221, 2221, 2141,
|
|
3178, 3310, 2740, 2407, 2274, 2274, 2274, 2287, 2194, 2114,
|
|
3141, 3272, 2460, 2061, 2287, 2500, 2367, 2487, 2434, 2181,
|
|
3507, 3282, 2314, 2700, 2647, 2474, 2367, 2394, 2340, 2127,
|
|
3423, 3535, 3038, 3056, 2300, 1950, 2221, 2274, 2274, 2274,
|
|
3404, 3366, 2087, 2687, 2873, 2354, 2420, 2274, 2474, 2540,
|
|
3760, 3488, 1950, 2660, 2897, 2527, 2394, 2367, 2460, 2261,
|
|
3028, 3272, 2740, 2888, 2740, 2154, 2127, 2287, 2234, 2247,
|
|
3695, 3657, 2025, 1969, 2660, 2700, 2580, 2500, 2327, 2367,
|
|
3207, 3413, 2354, 2074, 2888, 2888, 2340, 2487, 2247, 2167,
|
|
3338, 3366, 2846, 2780, 2327, 2154, 2274, 2287, 2114, 2061,
|
|
2327, 2300, 2181, 2167, 2181, 2367, 2633, 2700, 2700, 2553,
|
|
2407, 2434, 2221, 2261, 2221, 2221, 2340, 2420, 2607, 2700,
|
|
3038, 3244, 2806, 2888, 2474, 2074, 2300, 2314, 2354, 2380,
|
|
2221, 2154, 2127, 2287, 2500, 2793, 2793, 2620, 2580, 2367,
|
|
3676, 3713, 2234, 1838, 2181, 2753, 2726, 2673, 2513, 2207,
|
|
2793, 3160, 2726, 2553, 2846, 2513, 2181, 2394, 2221, 2181
|
|
};
|
|
|
|
static const opus_uint8 silk_NLSF_CB1_iCDF_NB_MB[ 64 ] = {
|
|
212, 178, 148, 129, 108, 96, 85, 82,
|
|
79, 77, 61, 59, 57, 56, 51, 49,
|
|
48, 45, 42, 41, 40, 38, 36, 34,
|
|
31, 30, 21, 12, 10, 3, 1, 0,
|
|
255, 245, 244, 236, 233, 225, 217, 203,
|
|
190, 176, 175, 161, 149, 136, 125, 114,
|
|
102, 91, 81, 71, 60, 52, 43, 35,
|
|
28, 20, 19, 18, 12, 11, 5, 0
|
|
};
|
|
|
|
static const opus_uint8 silk_NLSF_CB2_SELECT_NB_MB[ 160 ] = {
|
|
16, 0, 0, 0, 0, 99, 66, 36,
|
|
36, 34, 36, 34, 34, 34, 34, 83,
|
|
69, 36, 52, 34, 116, 102, 70, 68,
|
|
68, 176, 102, 68, 68, 34, 65, 85,
|
|
68, 84, 36, 116, 141, 152, 139, 170,
|
|
132, 187, 184, 216, 137, 132, 249, 168,
|
|
185, 139, 104, 102, 100, 68, 68, 178,
|
|
218, 185, 185, 170, 244, 216, 187, 187,
|
|
170, 244, 187, 187, 219, 138, 103, 155,
|
|
184, 185, 137, 116, 183, 155, 152, 136,
|
|
132, 217, 184, 184, 170, 164, 217, 171,
|
|
155, 139, 244, 169, 184, 185, 170, 164,
|
|
216, 223, 218, 138, 214, 143, 188, 218,
|
|
168, 244, 141, 136, 155, 170, 168, 138,
|
|
220, 219, 139, 164, 219, 202, 216, 137,
|
|
168, 186, 246, 185, 139, 116, 185, 219,
|
|
185, 138, 100, 100, 134, 100, 102, 34,
|
|
68, 68, 100, 68, 168, 203, 221, 218,
|
|
168, 167, 154, 136, 104, 70, 164, 246,
|
|
171, 137, 139, 137, 155, 218, 219, 139
|
|
};
|
|
|
|
static const opus_uint8 silk_NLSF_CB2_iCDF_NB_MB[ 72 ] = {
|
|
255, 254, 253, 238, 14, 3, 2, 1,
|
|
0, 255, 254, 252, 218, 35, 3, 2,
|
|
1, 0, 255, 254, 250, 208, 59, 4,
|
|
2, 1, 0, 255, 254, 246, 194, 71,
|
|
10, 2, 1, 0, 255, 252, 236, 183,
|
|
82, 8, 2, 1, 0, 255, 252, 235,
|
|
180, 90, 17, 2, 1, 0, 255, 248,
|
|
224, 171, 97, 30, 4, 1, 0, 255,
|
|
254, 236, 173, 95, 37, 7, 1, 0
|
|
};
|
|
|
|
static const opus_uint8 silk_NLSF_CB2_BITS_NB_MB_Q5[ 72 ] = {
|
|
255, 255, 255, 131, 6, 145, 255, 255,
|
|
255, 255, 255, 236, 93, 15, 96, 255,
|
|
255, 255, 255, 255, 194, 83, 25, 71,
|
|
221, 255, 255, 255, 255, 162, 73, 34,
|
|
66, 162, 255, 255, 255, 210, 126, 73,
|
|
43, 57, 173, 255, 255, 255, 201, 125,
|
|
71, 48, 58, 130, 255, 255, 255, 166,
|
|
110, 73, 57, 62, 104, 210, 255, 255,
|
|
251, 123, 65, 55, 68, 100, 171, 255
|
|
};
|
|
|
|
static const opus_uint8 silk_NLSF_PRED_NB_MB_Q8[ 18 ] = {
|
|
179, 138, 140, 148, 151, 149, 153, 151,
|
|
163, 116, 67, 82, 59, 92, 72, 100,
|
|
89, 92
|
|
};
|
|
|
|
static const opus_int16 silk_NLSF_DELTA_MIN_NB_MB_Q15[ 11 ] = {
|
|
250, 3, 6, 3, 3, 3, 4, 3,
|
|
3, 3, 461
|
|
};
|
|
|
|
const silk_NLSF_CB_struct silk_NLSF_CB_NB_MB =
|
|
{
|
|
32,
|
|
10,
|
|
SILK_FIX_CONST( 0.18, 16 ),
|
|
SILK_FIX_CONST( 1.0 / 0.18, 6 ),
|
|
silk_NLSF_CB1_NB_MB_Q8,
|
|
silk_NLSF_CB1_Wght_Q9,
|
|
silk_NLSF_CB1_iCDF_NB_MB,
|
|
silk_NLSF_PRED_NB_MB_Q8,
|
|
silk_NLSF_CB2_SELECT_NB_MB,
|
|
silk_NLSF_CB2_iCDF_NB_MB,
|
|
silk_NLSF_CB2_BITS_NB_MB_Q5,
|
|
silk_NLSF_DELTA_MIN_NB_MB_Q15,
|
|
};
|