dbf-halloween2015

annotate libs/vorbis/modes/psych_44.h @ 4:4316c0c879e9

fixed RUN script for macosx
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 06:18:18 +0200
parents
children
rev   line source
nuclear@1 1 /********************************************************************
nuclear@1 2 * *
nuclear@1 3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
nuclear@1 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
nuclear@1 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
nuclear@1 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
nuclear@1 7 * *
nuclear@1 8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
nuclear@1 9 * by the Xiph.Org Foundation http://www.xiph.org/ *
nuclear@1 10 * *
nuclear@1 11 ********************************************************************
nuclear@1 12
nuclear@1 13 function: key psychoacoustic settings for 44.1/48kHz
nuclear@1 14 last mod: $Id: psych_44.h 16962 2010-03-11 07:30:34Z xiphmont $
nuclear@1 15
nuclear@1 16 ********************************************************************/
nuclear@1 17
nuclear@1 18
nuclear@1 19 /* preecho trigger settings *****************************************/
nuclear@1 20
nuclear@1 21 static const vorbis_info_psy_global _psy_global_44[5]={
nuclear@1 22
nuclear@1 23 {8, /* lines per eighth octave */
nuclear@1 24 {20.f,14.f,12.f,12.f,12.f,12.f,12.f},
nuclear@1 25 {-60.f,-30.f,-40.f,-40.f,-40.f,-40.f,-40.f}, 2,-75.f,
nuclear@1 26 -6.f,
nuclear@1 27 {99.},{{99.},{99.}},{0},{0},{{0.},{0.}}
nuclear@1 28 },
nuclear@1 29 {8, /* lines per eighth octave */
nuclear@1 30 {14.f,10.f,10.f,10.f,10.f,10.f,10.f},
nuclear@1 31 {-40.f,-30.f,-25.f,-25.f,-25.f,-25.f,-25.f}, 2,-80.f,
nuclear@1 32 -6.f,
nuclear@1 33 {99.},{{99.},{99.}},{0},{0},{{0.},{0.}}
nuclear@1 34 },
nuclear@1 35 {8, /* lines per eighth octave */
nuclear@1 36 {12.f,10.f,10.f,10.f,10.f,10.f,10.f},
nuclear@1 37 {-20.f,-20.f,-15.f,-15.f,-15.f,-15.f,-15.f}, 0,-80.f,
nuclear@1 38 -6.f,
nuclear@1 39 {99.},{{99.},{99.}},{0},{0},{{0.},{0.}}
nuclear@1 40 },
nuclear@1 41 {8, /* lines per eighth octave */
nuclear@1 42 {10.f,8.f,8.f,8.f,8.f,8.f,8.f},
nuclear@1 43 {-20.f,-15.f,-12.f,-12.f,-12.f,-12.f,-12.f}, 0,-80.f,
nuclear@1 44 -6.f,
nuclear@1 45 {99.},{{99.},{99.}},{0},{0},{{0.},{0.}}
nuclear@1 46 },
nuclear@1 47 {8, /* lines per eighth octave */
nuclear@1 48 {10.f,6.f,6.f,6.f,6.f,6.f,6.f},
nuclear@1 49 {-15.f,-15.f,-12.f,-12.f,-12.f,-12.f,-12.f}, 0,-85.f,
nuclear@1 50 -6.f,
nuclear@1 51 {99.},{{99.},{99.}},{0},{0},{{0.},{0.}}
nuclear@1 52 },
nuclear@1 53 };
nuclear@1 54
nuclear@1 55 /* noise compander lookups * low, mid, high quality ****************/
nuclear@1 56 static const compandblock _psy_compand_44[6]={
nuclear@1 57 /* sub-mode Z short */
nuclear@1 58 {{
nuclear@1 59 0, 1, 2, 3, 4, 5, 6, 7, /* 7dB */
nuclear@1 60 8, 9,10,11,12,13,14, 15, /* 15dB */
nuclear@1 61 16,17,18,19,20,21,22, 23, /* 23dB */
nuclear@1 62 24,25,26,27,28,29,30, 31, /* 31dB */
nuclear@1 63 32,33,34,35,36,37,38, 39, /* 39dB */
nuclear@1 64 }},
nuclear@1 65 /* mode_Z nominal short */
nuclear@1 66 {{
nuclear@1 67 0, 1, 2, 3, 4, 5, 6, 6, /* 7dB */
nuclear@1 68 7, 7, 7, 7, 6, 6, 6, 7, /* 15dB */
nuclear@1 69 7, 8, 9,10,11,12,13, 14, /* 23dB */
nuclear@1 70 15,16,17,17,17,18,18, 19, /* 31dB */
nuclear@1 71 19,19,20,21,22,23,24, 25, /* 39dB */
nuclear@1 72 }},
nuclear@1 73 /* mode A short */
nuclear@1 74 {{
nuclear@1 75 0, 1, 2, 3, 4, 5, 5, 5, /* 7dB */
nuclear@1 76 6, 6, 6, 5, 4, 4, 4, 4, /* 15dB */
nuclear@1 77 4, 4, 5, 5, 5, 6, 6, 6, /* 23dB */
nuclear@1 78 7, 7, 7, 8, 8, 8, 9, 10, /* 31dB */
nuclear@1 79 11,12,13,14,15,16,17, 18, /* 39dB */
nuclear@1 80 }},
nuclear@1 81 /* sub-mode Z long */
nuclear@1 82 {{
nuclear@1 83 0, 1, 2, 3, 4, 5, 6, 7, /* 7dB */
nuclear@1 84 8, 9,10,11,12,13,14, 15, /* 15dB */
nuclear@1 85 16,17,18,19,20,21,22, 23, /* 23dB */
nuclear@1 86 24,25,26,27,28,29,30, 31, /* 31dB */
nuclear@1 87 32,33,34,35,36,37,38, 39, /* 39dB */
nuclear@1 88 }},
nuclear@1 89 /* mode_Z nominal long */
nuclear@1 90 {{
nuclear@1 91 0, 1, 2, 3, 4, 5, 6, 7, /* 7dB */
nuclear@1 92 8, 9,10,11,12,12,13, 13, /* 15dB */
nuclear@1 93 13,14,14,14,15,15,15, 15, /* 23dB */
nuclear@1 94 16,16,17,17,17,18,18, 19, /* 31dB */
nuclear@1 95 19,19,20,21,22,23,24, 25, /* 39dB */
nuclear@1 96 }},
nuclear@1 97 /* mode A long */
nuclear@1 98 {{
nuclear@1 99 0, 1, 2, 3, 4, 5, 6, 7, /* 7dB */
nuclear@1 100 8, 8, 7, 6, 5, 4, 4, 4, /* 15dB */
nuclear@1 101 4, 4, 5, 5, 5, 6, 6, 6, /* 23dB */
nuclear@1 102 7, 7, 7, 8, 8, 8, 9, 10, /* 31dB */
nuclear@1 103 11,12,13,14,15,16,17, 18, /* 39dB */
nuclear@1 104 }}
nuclear@1 105 };
nuclear@1 106
nuclear@1 107 /* tonal masking curve level adjustments *************************/
nuclear@1 108
nuclear@1 109 static const vp_adjblock _vp_tonemask_adj_longblock[12]={
nuclear@1 110
nuclear@1 111 /* 63 125 250 500 1 2 4 8 16 */
nuclear@1 112
nuclear@1 113 {{ -3, -8,-13,-15,-10,-10,-10,-10,-10,-10,-10, 0, 0, 0, 0, 0, 0}}, /* -1 */
nuclear@1 114
nuclear@1 115 /* {{-15,-15,-15,-15,-10, -8, -4, -2, 0, 0, 0, 10, 0, 0, 0, 0, 0}}, 0 */
nuclear@1 116 {{ -4,-10,-14,-16,-15,-14,-13,-12,-12,-12,-11, -1, -1, -1, -1, -1, 0}}, /* 0 */
nuclear@1 117
nuclear@1 118 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 5, 0, 0, 0, 0, 0}}, 1 */
nuclear@1 119 {{ -6,-12,-14,-16,-15,-15,-14,-13,-13,-12,-12, -2, -2, -1, -1, -1, 0}}, /* 1 */
nuclear@1 120
nuclear@1 121 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 2 */
nuclear@1 122 {{-12,-13,-14,-16,-16,-16,-15,-14,-13,-12,-12, -6, -3, -1, -1, -1, 0}}, /* 2 */
nuclear@1 123
nuclear@1 124 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 3 */
nuclear@1 125 {{-15,-15,-15,-16,-16,-16,-16,-14,-13,-13,-13,-10, -4, -2, -1, -1, 0}}, /* 3 */
nuclear@1 126
nuclear@1 127 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, *//* 4 */
nuclear@1 128 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-13,-11, -7 -3, -1, -1 , 0}}, /* 4 */
nuclear@1 129
nuclear@1 130 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 5 */
nuclear@1 131 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-13,-11, -7 -3, -1, -1 , 0}}, /* 5 */
nuclear@1 132
nuclear@1 133 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 6 */
nuclear@1 134 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -8, -4, -2, -2, 0}}, /* 6 */
nuclear@1 135
nuclear@1 136 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 7 */
nuclear@1 137 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 7 */
nuclear@1 138
nuclear@1 139 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 8 */
nuclear@1 140 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 8 */
nuclear@1 141
nuclear@1 142 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 9 */
nuclear@1 143 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 9 */
nuclear@1 144
nuclear@1 145 /* {{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, 10 */
nuclear@1 146 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 10 */
nuclear@1 147 };
nuclear@1 148
nuclear@1 149 static const vp_adjblock _vp_tonemask_adj_otherblock[12]={
nuclear@1 150 /* 63 125 250 500 1 2 4 8 16 */
nuclear@1 151
nuclear@1 152 {{ -3, -8,-13,-15,-10,-10, -9, -9, -9, -9, -9, 1, 1, 1, 1, 1, 1}}, /* -1 */
nuclear@1 153
nuclear@1 154 /* {{-20,-20,-20,-20,-14,-12,-10, -8, -4, 0, 0, 10, 0, 0, 0, 0, 0}}, 0 */
nuclear@1 155 {{ -4,-10,-14,-16,-14,-13,-12,-12,-11,-11,-10, 0, 0, 0, 0, 0, 0}}, /* 0 */
nuclear@1 156
nuclear@1 157 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 5, 0, 0, 0, 0, 0}}, 1 */
nuclear@1 158 {{ -6,-12,-14,-16,-15,-15,-14,-13,-13,-12,-12, -2, -2, -1, 0, 0, 0}}, /* 1 */
nuclear@1 159
nuclear@1 160 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 2 */
nuclear@1 161 {{-12,-13,-14,-16,-16,-16,-15,-14,-13,-12,-12, -5, -2, -1, 0, 0, 0}}, /* 2 */
nuclear@1 162
nuclear@1 163 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 3 */
nuclear@1 164 {{-15,-15,-15,-16,-16,-16,-16,-14,-13,-13,-13,-10, -4, -2, 0, 0, 0}}, /* 3 */
nuclear@1 165
nuclear@1 166 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 4 */
nuclear@1 167 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-13,-11, -7 -3, -1, -1 , 0}}, /* 4 */
nuclear@1 168
nuclear@1 169 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 5 */
nuclear@1 170 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-13,-11, -7 -3, -1, -1 , 0}}, /* 5 */
nuclear@1 171
nuclear@1 172 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 6 */
nuclear@1 173 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -8, -4, -2, -2, 0}}, /* 6 */
nuclear@1 174
nuclear@1 175 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 7 */
nuclear@1 176 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 7 */
nuclear@1 177
nuclear@1 178 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 8 */
nuclear@1 179 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 8 */
nuclear@1 180
nuclear@1 181 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 9 */
nuclear@1 182 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 9 */
nuclear@1 183
nuclear@1 184 /* {{-20,-20,-20,-20,-20,-18,-16,-14,-10, 0, 0, 0, 0, 0, 0, 0, 0}}, 10 */
nuclear@1 185 {{-16,-16,-16,-16,-16,-16,-16,-15,-14,-14,-14,-12, -9, -4, -2, -2, 0}}, /* 10 */
nuclear@1 186 };
nuclear@1 187
nuclear@1 188 /* noise bias (transition block) */
nuclear@1 189 static const noise3 _psy_noisebias_trans[12]={
nuclear@1 190 /* 63 125 250 500 1k 2k 4k 8k 16k*/
nuclear@1 191 /* -1 */
nuclear@1 192 {{{-10,-10,-10,-10,-10, -4, 0, 0, 4, 8, 8, 8, 8, 10, 12, 14, 20},
nuclear@1 193 {-30,-30,-30,-30,-26,-20,-16, -8, -6, -6, -2, 2, 2, 3, 6, 6, 15},
nuclear@1 194 {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -4, -2}}},
nuclear@1 195 /* 0
nuclear@1 196 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 197 {-30,-30,-30,-30,-26,-22,-20,-14, -8, -4, 0, 0, 0, 0, 2, 4, 10},
nuclear@1 198 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -6, -6, -6, -4, -4, -4, -2}}},*/
nuclear@1 199 {{{-15,-15,-15,-15,-15,-12, -6, -4, 0, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 200 {-30,-30,-30,-30,-26,-22,-20,-14, -8, -4, 0, 0, 0, 0, 2, 3, 6},
nuclear@1 201 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -6, -6, -6, -4, -4, -4, -2}}},
nuclear@1 202 /* 1
nuclear@1 203 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 204 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -2, -2, -2, -2, 0, 2, 8},
nuclear@1 205 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -8, -8, -8, -8, -6, -6, -6, -4}}},*/
nuclear@1 206 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 207 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -2, -2, -2, -2, 0, 1, 4},
nuclear@1 208 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -8, -8, -8, -8, -6, -6, -6, -4}}},
nuclear@1 209 /* 2
nuclear@1 210 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 2, 2, 4, 4, 5, 6, 10},
nuclear@1 211 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -2, -2, -2, -2, 0, 2, 6},
nuclear@1 212 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}}, */
nuclear@1 213 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 2, 2, 4, 4, 5, 6, 10},
nuclear@1 214 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -3, -3, -3, -2, -1, 0, 3},
nuclear@1 215 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10, -8, -8, -7, -4}}},
nuclear@1 216 /* 3
nuclear@1 217 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 2, 2, 4, 4, 4, 5, 8},
nuclear@1 218 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -3, -3, -3, -3, -1, 1, 6},
nuclear@1 219 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},*/
nuclear@1 220 {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 2, 2, 4, 4, 4, 5, 8},
nuclear@1 221 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -3, -3, -3, -3, -2, 0, 2},
nuclear@1 222 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},
nuclear@1 223 /* 4
nuclear@1 224 {{{-20,-20,-20,-20,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 225 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -3, -3, -3, -3, -1, 1, 5},
nuclear@1 226 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},*/
nuclear@1 227 {{{-20,-20,-20,-20,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 228 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -3, -3, -3, -3, -2, -1, 1},
nuclear@1 229 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},
nuclear@1 230 /* 5
nuclear@1 231 {{{-24,-24,-24,-24,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 232 {-32,-32,-32,-32,-28,-24,-22,-16,-12, -6, -4, -4, -4, -4, -2, -1, 2},
nuclear@1 233 {-34,-34,-34,-34,-30,-24,-24,-18,-14,-12,-12,-12,-12,-10,-10, -9, -5}}}, */
nuclear@1 234 {{{-24,-24,-24,-24,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 235 {-32,-32,-32,-32,-28,-24,-22,-16,-12, -6, -4, -4, -4, -4, -3, -1, 0},
nuclear@1 236 {-34,-34,-34,-34,-30,-24,-24,-18,-14,-12,-12,-12,-12,-10,-10, -9, -5}}},
nuclear@1 237 /* 6
nuclear@1 238 {{{-24,-24,-24,-24,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 239 {-32,-32,-32,-32,-28,-24,-24,-18,-14, -8, -6, -6, -6, -6, -4, -2, 1},
nuclear@1 240 {-34,-34,-34,-34,-30,-26,-24,-18,-17,-15,-15,-15,-15,-13,-13,-12, -8}}},*/
nuclear@1 241 {{{-24,-24,-24,-24,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 242 {-32,-32,-32,-32,-28,-24,-24,-18,-14, -8, -6, -6, -6, -6, -5, -2, 0},
nuclear@1 243 {-34,-34,-34,-34,-30,-26,-26,-24,-22,-19,-19,-19,-19,-18,-17,-16,-12}}},
nuclear@1 244 /* 7
nuclear@1 245 {{{-24,-24,-24,-24,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 246 {-32,-32,-32,-32,-28,-24,-24,-18,-14,-12,-10, -8, -8, -8, -6, -4, 0},
nuclear@1 247 {-34,-34,-34,-34,-30,-26,-26,-24,-22,-19,-19,-19,-19,-18,-17,-16,-12}}},*/
nuclear@1 248 {{{-24,-24,-24,-24,-20,-18,-14, -8, -1, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 249 {-32,-32,-32,-32,-28,-24,-24,-24,-18,-14,-12,-10,-10,-10, -8, -6, -2},
nuclear@1 250 {-34,-34,-34,-34,-30,-26,-26,-26,-24,-24,-24,-24,-24,-24,-24,-20,-16}}},
nuclear@1 251 /* 8
nuclear@1 252 {{{-24,-24,-24,-24,-22,-20,-15,-10, -8, -2, 0, 0, 0, 1, 2, 3, 7},
nuclear@1 253 {-36,-36,-36,-36,-30,-30,-30,-24,-18,-14,-12,-10,-10,-10, -8, -6, -2},
nuclear@1 254 {-36,-36,-36,-36,-34,-30,-28,-26,-24,-24,-24,-24,-24,-24,-24,-20,-16}}},*/
nuclear@1 255 {{{-24,-24,-24,-24,-22,-20,-15,-10, -8, -2, 0, 0, 0, 1, 2, 3, 7},
nuclear@1 256 {-36,-36,-36,-36,-30,-30,-30,-24,-20,-16,-16,-16,-16,-14,-12,-10, -7},
nuclear@1 257 {-36,-36,-36,-36,-34,-30,-28,-26,-24,-30,-30,-30,-30,-30,-30,-24,-20}}},
nuclear@1 258 /* 9
nuclear@1 259 {{{-28,-28,-28,-28,-28,-28,-28,-20,-14, -8, -4, -4, -4, -4, -4, -2, 2},
nuclear@1 260 {-36,-36,-36,-36,-34,-32,-32,-28,-20,-16,-16,-16,-16,-14,-12,-10, -7},
nuclear@1 261 {-40,-40,-40,-40,-40,-40,-40,-32,-30,-30,-30,-30,-30,-30,-30,-24,-20}}},*/
nuclear@1 262 {{{-28,-28,-28,-28,-28,-28,-28,-20,-14, -8, -4, -4, -4, -4, -4, -2, 2},
nuclear@1 263 {-38,-38,-38,-38,-36,-34,-34,-30,-24,-20,-20,-20,-20,-18,-16,-12,-10},
nuclear@1 264 {-40,-40,-40,-40,-40,-40,-40,-38,-35,-35,-35,-35,-35,-35,-35,-35,-30}}},
nuclear@1 265 /* 10 */
nuclear@1 266 {{{-30,-30,-30,-30,-30,-30,-30,-28,-20,-14,-14,-14,-14,-14,-14,-12,-10},
nuclear@1 267 {-40,-40,-40,-40,-40,-40,-40,-40,-35,-30,-30,-30,-30,-30,-30,-30,-20},
nuclear@1 268 {-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40}}},
nuclear@1 269 };
nuclear@1 270
nuclear@1 271 /* noise bias (long block) */
nuclear@1 272 static const noise3 _psy_noisebias_long[12]={
nuclear@1 273 /*63 125 250 500 1k 2k 4k 8k 16k*/
nuclear@1 274 /* -1 */
nuclear@1 275 {{{-10,-10,-10,-10,-10, -4, 0, 0, 0, 6, 6, 6, 6, 10, 10, 12, 20},
nuclear@1 276 {-20,-20,-20,-20,-20,-20,-10, -2, 0, 0, 0, 0, 0, 2, 4, 6, 15},
nuclear@1 277 {-20,-20,-20,-20,-20,-20,-20,-10, -6, -6, -6, -6, -6, -4, -4, -4, -2}}},
nuclear@1 278
nuclear@1 279 /* 0 */
nuclear@1 280 /* {{{-10,-10,-10,-10,-10,-10, -8, 2, 2, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 281 {-20,-20,-20,-20,-20,-20,-20,-14, -6, 0, 0, 0, 0, 0, 2, 4, 10},
nuclear@1 282 {-20,-20,-20,-20,-20,-20,-20,-14, -8, -6, -6, -6, -6, -4, -4, -4, -2}}},*/
nuclear@1 283 {{{-10,-10,-10,-10,-10,-10, -8, 2, 2, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 284 {-20,-20,-20,-20,-20,-20,-20,-14, -6, 0, 0, 0, 0, 0, 2, 3, 6},
nuclear@1 285 {-20,-20,-20,-20,-20,-20,-20,-14, -8, -6, -6, -6, -6, -4, -4, -4, -2}}},
nuclear@1 286 /* 1 */
nuclear@1 287 /* {{{-10,-10,-10,-10,-10,-10, -8, -4, 0, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 288 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -2, -2, -2, -2, 0, 2, 8},
nuclear@1 289 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -8, -8, -8, -8, -6, -6, -6, -4}}},*/
nuclear@1 290 {{{-10,-10,-10,-10,-10,-10, -8, -4, 0, 2, 4, 4, 5, 5, 5, 8, 10},
nuclear@1 291 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -2, -2, -2, -2, 0, 1, 4},
nuclear@1 292 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -8, -8, -8, -8, -6, -6, -6, -4}}},
nuclear@1 293 /* 2 */
nuclear@1 294 /* {{{-10,-10,-10,-10,-10,-10,-10, -8, 0, 2, 2, 2, 4, 4, 5, 6, 10},
nuclear@1 295 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -2, -2, -2, -2, 0, 2, 6},
nuclear@1 296 {-20,-20,-20,-20,-20,-20,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},*/
nuclear@1 297 {{{-10,-10,-10,-10,-10,-10,-10, -8, 0, 2, 2, 2, 4, 4, 5, 6, 10},
nuclear@1 298 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -3, -3, -3, -2, -1, 0, 3},
nuclear@1 299 {-20,-20,-20,-20,-20,-20,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},
nuclear@1 300 /* 3 */
nuclear@1 301 /* {{{-10,-10,-10,-10,-10,-10,-10, -8, 0, 2, 2, 2, 4, 4, 4, 5, 8},
nuclear@1 302 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -3, -3, -3, -3, -1, 1, 6},
nuclear@1 303 {-20,-20,-20,-20,-20,-20,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},*/
nuclear@1 304 {{{-10,-10,-10,-10,-10,-10,-10, -8, 0, 2, 2, 2, 4, 4, 4, 5, 8},
nuclear@1 305 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -3, -3, -3, -3, -2, 0, 2},
nuclear@1 306 {-20,-20,-20,-20,-20,-20,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -5}}},
nuclear@1 307 /* 4 */
nuclear@1 308 /* {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 309 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -3, -3, -3, -3, -1, 1, 5},
nuclear@1 310 {-20,-20,-20,-20,-20,-20,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -4}}},*/
nuclear@1 311 {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 312 {-20,-20,-20,-20,-20,-20,-20,-14,-10, -4, -3, -3, -3, -3, -2, -1, 1},
nuclear@1 313 {-20,-20,-20,-20,-20,-20,-20,-14,-10,-10,-10,-10,-10, -8, -8, -8, -7}}},
nuclear@1 314 /* 5 */
nuclear@1 315 /* {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 316 {-22,-22,-22,-22,-22,-22,-22,-16,-12, -6, -4, -4, -4, -4, -2, -1, 2},
nuclear@1 317 {-24,-24,-24,-24,-24,-24,-24,-18,-14,-12,-12,-12,-12,-10,-10, -9, -5}}},*/
nuclear@1 318 {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 319 {-22,-22,-22,-22,-22,-22,-22,-16,-12, -6, -4, -4, -4, -4, -3, -1, 0},
nuclear@1 320 {-24,-24,-24,-24,-24,-24,-24,-18,-14,-12,-12,-12,-12,-10,-10, -9, -8}}},
nuclear@1 321 /* 6 */
nuclear@1 322 /* {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 323 {-24,-24,-24,-24,-24,-24,-24,-18,-14, -8, -6, -6, -6, -6, -4, -2, 1},
nuclear@1 324 {-26,-26,-26,-26,-26,-26,-26,-18,-16,-15,-15,-15,-15,-13,-13,-12, -8}}},*/
nuclear@1 325 {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 326 {-24,-24,-24,-24,-24,-24,-24,-18,-14, -8, -6, -6, -6, -6, -5, -2, 0},
nuclear@1 327 {-26,-26,-26,-26,-26,-26,-26,-18,-16,-15,-15,-15,-15,-13,-13,-12,-10}}},
nuclear@1 328 /* 7 */
nuclear@1 329 {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 1, 1, 1, 2, 3, 3, 4, 7},
nuclear@1 330 {-24,-24,-24,-24,-24,-24,-24,-18,-14,-10, -8, -8, -8, -8, -6, -4, 0},
nuclear@1 331 {-26,-26,-26,-26,-26,-26,-26,-22,-20,-19,-19,-19,-19,-18,-17,-16,-12}}},
nuclear@1 332 /* 8 */
nuclear@1 333 {{{-15,-15,-15,-15,-15,-15,-15,-10, -4, 0, 0, 0, 0, 1, 2, 3, 7},
nuclear@1 334 {-26,-26,-26,-26,-26,-26,-26,-20,-16,-12,-10,-10,-10,-10, -8, -6, -2},
nuclear@1 335 {-28,-28,-28,-28,-28,-28,-28,-26,-24,-24,-24,-24,-24,-24,-24,-20,-16}}},
nuclear@1 336 /* 9 */
nuclear@1 337 {{{-22,-22,-22,-22,-22,-22,-22,-18,-14, -8, -4, -4, -4, -4, -4, -2, 2},
nuclear@1 338 {-26,-26,-26,-26,-26,-26,-26,-22,-18,-16,-16,-16,-16,-14,-12,-10, -7},
nuclear@1 339 {-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-24,-20}}},
nuclear@1 340 /* 10 */
nuclear@1 341 {{{-24,-24,-24,-24,-24,-24,-24,-24,-24,-18,-14,-14,-14,-14,-14,-12,-10},
nuclear@1 342 {-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-20},
nuclear@1 343 {-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40}}},
nuclear@1 344 };
nuclear@1 345
nuclear@1 346 /* noise bias (impulse block) */
nuclear@1 347 static const noise3 _psy_noisebias_impulse[12]={
nuclear@1 348 /* 63 125 250 500 1k 2k 4k 8k 16k*/
nuclear@1 349 /* -1 */
nuclear@1 350 {{{-10,-10,-10,-10,-10, -4, 0, 0, 4, 8, 8, 8, 8, 10, 12, 14, 20},
nuclear@1 351 {-30,-30,-30,-30,-26,-20,-16, -8, -6, -6, -2, 2, 2, 3, 6, 6, 15},
nuclear@1 352 {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -4, -2}}},
nuclear@1 353
nuclear@1 354 /* 0 */
nuclear@1 355 /* {{{-10,-10,-10,-10,-10, -4, 0, 0, 4, 4, 8, 8, 8, 10, 12, 14, 20},
nuclear@1 356 {-30,-30,-30,-30,-26,-22,-20,-14, -6, -2, 0, 0, 0, 0, 2, 4, 10},
nuclear@1 357 {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -4, -2}}},*/
nuclear@1 358 {{{-10,-10,-10,-10,-10, -4, 0, 0, 4, 4, 8, 8, 8, 10, 12, 14, 20},
nuclear@1 359 {-30,-30,-30,-30,-26,-22,-20,-14, -6, -2, 0, 0, 0, 0, 2, 3, 6},
nuclear@1 360 {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -4, -2}}},
nuclear@1 361 /* 1 */
nuclear@1 362 {{{-12,-12,-12,-12,-12, -8, -6, -4, 0, 4, 4, 4, 4, 10, 12, 14, 20},
nuclear@1 363 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -4, -4, -2, -2, -2, -2, 2},
nuclear@1 364 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -8,-10,-10, -8, -8, -8, -6, -4}}},
nuclear@1 365 /* 2 */
nuclear@1 366 {{{-14,-14,-14,-14,-14,-10, -8, -6, -2, 2, 2, 2, 2, 8, 10, 10, 16},
nuclear@1 367 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -6, -6, -4, -4, -4, -2, 0},
nuclear@1 368 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10,-10,-10, -8, -4}}},
nuclear@1 369 /* 3 */
nuclear@1 370 {{{-14,-14,-14,-14,-14,-10, -8, -6, -2, 2, 2, 2, 2, 6, 8, 8, 14},
nuclear@1 371 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -6, -6, -4, -4, -4, -2, 0},
nuclear@1 372 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10,-10,-10, -8, -4}}},
nuclear@1 373 /* 4 */
nuclear@1 374 {{{-16,-16,-16,-16,-16,-12,-10, -6, -2, 0, 0, 0, 0, 4, 6, 6, 12},
nuclear@1 375 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -6, -6, -4, -4, -4, -2, 0},
nuclear@1 376 {-30,-30,-30,-30,-26,-22,-20,-14,-10,-10,-10,-10,-10,-10,-10, -8, -4}}},
nuclear@1 377 /* 5 */
nuclear@1 378 {{{-20,-20,-20,-20,-20,-18,-14,-10, -4, 0, 0, 0, 0, 4, 4, 6, 11},
nuclear@1 379 {-32,-32,-32,-32,-28,-24,-22,-16,-10, -6, -8, -8, -6, -6, -6, -4, -2},
nuclear@1 380 {-34,-34,-34,-34,-30,-26,-24,-18,-14,-12,-12,-12,-12,-12,-10, -9, -5}}},
nuclear@1 381 /* 6
nuclear@1 382 {{{-20,-20,-20,-20,-20,-18,-14,-10, -4, 0, 0, 0, 0, 4, 4, 6, 11},
nuclear@1 383 {-34,-34,-34,-34,-30,-30,-24,-20,-12,-12,-14,-14,-10, -9, -8, -6, -4},
nuclear@1 384 {-34,-34,-34,-34,-34,-30,-26,-20,-16,-15,-15,-15,-15,-15,-13,-12, -8}}},*/
nuclear@1 385 {{{-20,-20,-20,-20,-20,-18,-14,-10, -4, 0, 0, 0, 0, 4, 4, 6, 11},
nuclear@1 386 {-34,-34,-34,-34,-30,-30,-30,-24,-16,-16,-16,-16,-16,-16,-14,-14,-12},
nuclear@1 387 {-36,-36,-36,-36,-36,-34,-28,-24,-20,-20,-20,-20,-20,-20,-20,-18,-16}}},
nuclear@1 388 /* 7 */
nuclear@1 389 /* {{{-22,-22,-22,-22,-22,-20,-14,-10, -6, 0, 0, 0, 0, 4, 4, 6, 11},
nuclear@1 390 {-34,-34,-34,-34,-30,-30,-24,-20,-14,-14,-16,-16,-14,-12,-10,-10,-10},
nuclear@1 391 {-34,-34,-34,-34,-32,-32,-30,-24,-20,-19,-19,-19,-19,-19,-17,-16,-12}}},*/
nuclear@1 392 {{{-22,-22,-22,-22,-22,-20,-14,-10, -6, 0, 0, 0, 0, 4, 4, 6, 11},
nuclear@1 393 {-34,-34,-34,-34,-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-24,-22},
nuclear@1 394 {-40,-40,-40,-40,-40,-40,-40,-32,-30,-30,-30,-30,-30,-30,-30,-30,-24}}},
nuclear@1 395 /* 8 */
nuclear@1 396 /* {{{-24,-24,-24,-24,-24,-22,-14,-10, -6, -1, -1, -1, -1, 3, 3, 5, 10},
nuclear@1 397 {-34,-34,-34,-34,-30,-30,-30,-24,-20,-20,-20,-20,-20,-18,-16,-16,-14},
nuclear@1 398 {-36,-36,-36,-36,-36,-34,-28,-24,-24,-24,-24,-24,-24,-24,-24,-20,-16}}},*/
nuclear@1 399 {{{-24,-24,-24,-24,-24,-22,-14,-10, -6, -1, -1, -1, -1, 3, 3, 5, 10},
nuclear@1 400 {-34,-34,-34,-34,-34,-32,-32,-30,-26,-26,-26,-26,-26,-26,-26,-26,-24},
nuclear@1 401 {-40,-40,-40,-40,-40,-40,-40,-32,-30,-30,-30,-30,-30,-30,-30,-30,-24}}},
nuclear@1 402 /* 9 */
nuclear@1 403 /* {{{-28,-28,-28,-28,-28,-28,-28,-20,-14, -8, -4, -4, -4, -4, -4, -2, 2},
nuclear@1 404 {-36,-36,-36,-36,-34,-32,-32,-30,-26,-26,-26,-26,-26,-22,-20,-20,-18},
nuclear@1 405 {-40,-40,-40,-40,-40,-40,-40,-32,-30,-30,-30,-30,-30,-30,-30,-24,-20}}},*/
nuclear@1 406 {{{-28,-28,-28,-28,-28,-28,-28,-20,-14, -8, -4, -4, -4, -4, -4, -2, 2},
nuclear@1 407 {-36,-36,-36,-36,-34,-32,-32,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26},
nuclear@1 408 {-40,-40,-40,-40,-40,-40,-40,-32,-30,-30,-30,-30,-30,-30,-30,-24,-20}}},
nuclear@1 409 /* 10 */
nuclear@1 410 {{{-30,-30,-30,-30,-30,-26,-24,-24,-24,-20,-16,-16,-16,-16,-16,-14,-12},
nuclear@1 411 {-40,-40,-40,-40,-40,-40,-40,-40,-35,-30,-30,-30,-30,-30,-30,-30,-26},
nuclear@1 412 {-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40}}},
nuclear@1 413 };
nuclear@1 414
nuclear@1 415 /* noise bias (padding block) */
nuclear@1 416 static const noise3 _psy_noisebias_padding[12]={
nuclear@1 417 /* 63 125 250 500 1k 2k 4k 8k 16k*/
nuclear@1 418
nuclear@1 419 /* -1 */
nuclear@1 420 {{{-10,-10,-10,-10,-10, -4, 0, 0, 4, 8, 8, 8, 8, 10, 12, 14, 20},
nuclear@1 421 {-30,-30,-30,-30,-26,-20,-16, -8, -6, -6, -2, 2, 2, 3, 6, 6, 15},
nuclear@1 422 {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -4, -2}}},
nuclear@1 423
nuclear@1 424 /* 0 */
nuclear@1 425 {{{-10,-10,-10,-10,-10, -4, 0, 0, 4, 8, 8, 8, 8, 10, 12, 14, 20},
nuclear@1 426 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -2, 2, 3, 6, 6, 8, 10},
nuclear@1 427 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, -4, -4, -4, -4, -2, 0, 2}}},
nuclear@1 428 /* 1 */
nuclear@1 429 {{{-12,-12,-12,-12,-12, -8, -6, -4, 0, 4, 4, 4, 4, 10, 12, 14, 20},
nuclear@1 430 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, 0, 0, 0, 2, 2, 4, 8},
nuclear@1 431 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -6, -6, -6, -6, -4, -2, 0}}},
nuclear@1 432 /* 2 */
nuclear@1 433 /* {{{-14,-14,-14,-14,-14,-10, -8, -6, -2, 2, 2, 2, 2, 8, 10, 10, 16},
nuclear@1 434 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -4, 0, 0, 0, 2, 2, 4, 8},
nuclear@1 435 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -8, -8, -8, -8, -8, -6, -4, -2}}},*/
nuclear@1 436 {{{-14,-14,-14,-14,-14,-10, -8, -6, -2, 2, 2, 2, 2, 8, 10, 10, 16},
nuclear@1 437 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -1, -1, -1, 0, 0, 2, 6},
nuclear@1 438 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -8, -8, -8, -8, -8, -6, -4, -2}}},
nuclear@1 439 /* 3 */
nuclear@1 440 {{{-14,-14,-14,-14,-14,-10, -8, -6, -2, 2, 2, 2, 2, 6, 8, 8, 14},
nuclear@1 441 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -1, -1, -1, 0, 0, 2, 6},
nuclear@1 442 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -8, -8, -8, -8, -8, -6, -4, -2}}},
nuclear@1 443 /* 4 */
nuclear@1 444 {{{-16,-16,-16,-16,-16,-12,-10, -6, -2, 0, 0, 0, 0, 4, 6, 6, 12},
nuclear@1 445 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -6, -1, -1, -1, -1, 0, 2, 6},
nuclear@1 446 {-30,-30,-30,-30,-26,-22,-20,-14,-10, -8, -8, -8, -8, -8, -6, -4, -2}}},
nuclear@1 447 /* 5 */
nuclear@1 448 {{{-20,-20,-20,-20,-20,-18,-14,-10, -4, 0, 0, 0, 0, 4, 6, 6, 12},
nuclear@1 449 {-32,-32,-32,-32,-28,-24,-22,-16,-12, -6, -3, -3, -3, -3, -2, 0, 4},
nuclear@1 450 {-34,-34,-34,-34,-30,-26,-24,-18,-14,-10,-10,-10,-10,-10, -8, -5, -3}}},
nuclear@1 451 /* 6 */
nuclear@1 452 {{{-20,-20,-20,-20,-20,-18,-14,-10, -4, 0, 0, 0, 0, 4, 6, 6, 12},
nuclear@1 453 {-34,-34,-34,-34,-30,-30,-24,-20,-14, -8, -4, -4, -4, -4, -3, -1, 4},
nuclear@1 454 {-34,-34,-34,-34,-34,-30,-26,-20,-16,-13,-13,-13,-13,-13,-11, -8, -6}}},
nuclear@1 455 /* 7 */
nuclear@1 456 {{{-20,-20,-20,-20,-20,-18,-14,-10, -4, 0, 0, 0, 0, 4, 6, 6, 12},
nuclear@1 457 {-34,-34,-34,-34,-30,-30,-30,-24,-16,-10, -8, -6, -6, -6, -5, -3, 1},
nuclear@1 458 {-34,-34,-34,-34,-32,-32,-28,-22,-18,-16,-16,-16,-16,-16,-14,-12,-10}}},
nuclear@1 459 /* 8 */
nuclear@1 460 {{{-22,-22,-22,-22,-22,-20,-14,-10, -4, 0, 0, 0, 0, 3, 5, 5, 11},
nuclear@1 461 {-34,-34,-34,-34,-30,-30,-30,-24,-16,-12,-10, -8, -8, -8, -7, -5, -2},
nuclear@1 462 {-36,-36,-36,-36,-36,-34,-28,-22,-20,-20,-20,-20,-20,-20,-20,-16,-14}}},
nuclear@1 463 /* 9 */
nuclear@1 464 {{{-28,-28,-28,-28,-28,-28,-28,-20,-14, -8, -2, -2, -2, -2, 0, 2, 6},
nuclear@1 465 {-36,-36,-36,-36,-34,-32,-32,-24,-16,-12,-12,-12,-12,-12,-10, -8, -5},
nuclear@1 466 {-40,-40,-40,-40,-40,-40,-40,-32,-26,-24,-24,-24,-24,-24,-24,-20,-18}}},
nuclear@1 467 /* 10 */
nuclear@1 468 {{{-30,-30,-30,-30,-30,-26,-24,-24,-24,-20,-12,-12,-12,-12,-12,-10, -8},
nuclear@1 469 {-40,-40,-40,-40,-40,-40,-40,-40,-35,-30,-25,-25,-25,-25,-25,-25,-15},
nuclear@1 470 {-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40,-40}}},
nuclear@1 471 };
nuclear@1 472
nuclear@1 473
nuclear@1 474 static const noiseguard _psy_noiseguards_44[4]={
nuclear@1 475 {3,3,15},
nuclear@1 476 {3,3,15},
nuclear@1 477 {10,10,100},
nuclear@1 478 {10,10,100},
nuclear@1 479 };
nuclear@1 480
nuclear@1 481 static const int _psy_tone_suppress[12]={
nuclear@1 482 -20,-20,-20,-20,-20,-24,-30,-40,-40,-45,-45,-45,
nuclear@1 483 };
nuclear@1 484 static const int _psy_tone_0dB[12]={
nuclear@1 485 90,90,95,95,95,95,105,105,105,105,105,105,
nuclear@1 486 };
nuclear@1 487 static const int _psy_noise_suppress[12]={
nuclear@1 488 -20,-20,-24,-24,-24,-24,-30,-40,-40,-45,-45,-45,
nuclear@1 489 };
nuclear@1 490
nuclear@1 491 static const vorbis_info_psy _psy_info_template={
nuclear@1 492 /* blockflag */
nuclear@1 493 -1,
nuclear@1 494 /* ath_adjatt, ath_maxatt */
nuclear@1 495 -140.,-140.,
nuclear@1 496 /* tonemask att boost/decay,suppr,curves */
nuclear@1 497 {0.f,0.f,0.f}, 0.,0., -40.f, {0.},
nuclear@1 498
nuclear@1 499 /*noisemaskp,supp, low/high window, low/hi guard, minimum */
nuclear@1 500 1, -0.f, .5f, .5f, 0,0,0,
nuclear@1 501 /* noiseoffset*3, noisecompand, max_curve_dB */
nuclear@1 502 {{-1},{-1},{-1}},{-1},105.f,
nuclear@1 503 /* noise normalization - noise_p, start, partition, thresh. */
nuclear@1 504 0,-1,-1,0.,
nuclear@1 505 };
nuclear@1 506
nuclear@1 507 /* ath ****************/
nuclear@1 508
nuclear@1 509 static const int _psy_ath_floater[12]={
nuclear@1 510 -100,-100,-100,-100,-100,-100,-105,-105,-105,-105,-110,-120,
nuclear@1 511 };
nuclear@1 512 static const int _psy_ath_abs[12]={
nuclear@1 513 -130,-130,-130,-130,-140,-140,-140,-140,-140,-140,-140,-150,
nuclear@1 514 };
nuclear@1 515
nuclear@1 516 /* stereo setup. These don't map directly to quality level, there's
nuclear@1 517 an additional indirection as several of the below may be used in a
nuclear@1 518 single bitmanaged stream
nuclear@1 519
nuclear@1 520 ****************/
nuclear@1 521
nuclear@1 522 /* various stereo possibilities */
nuclear@1 523
nuclear@1 524 /* stereo mode by base quality level */
nuclear@1 525 static const adj_stereo _psy_stereo_modes_44[12]={
nuclear@1 526 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 -1 */
nuclear@1 527 {{ 4, 4, 4, 4, 4, 4, 4, 3, 2, 2, 1, 0, 0, 0, 0},
nuclear@1 528 { 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 5, 4, 3},
nuclear@1 529 { 1, 2, 3, 4, 4, 4, 4, 4, 4, 5, 6, 7, 8, 8, 8},
nuclear@1 530 { 12,12.5, 13,13.5, 14,14.5, 15, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 531
nuclear@1 532 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 */
nuclear@1 533 {{ 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0, 0, 0, 0, 0},
nuclear@1 534 { 8, 8, 8, 8, 6, 6, 5, 5, 5, 5, 5, 5, 5, 4, 3},
nuclear@1 535 { 1, 2, 3, 4, 4, 5, 6, 6, 6, 6, 6, 8, 8, 8, 8},
nuclear@1 536 { 12,12.5, 13,13.5, 14,14.5, 15, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 537
nuclear@1 538
nuclear@1 539 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 */
nuclear@1 540 {{ 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 0, 0, 0, 0, 0},
nuclear@1 541 { 8, 8, 8, 8, 6, 6, 5, 5, 5, 5, 5, 5, 5, 4, 3},
nuclear@1 542 { 1, 2, 3, 4, 4, 5, 6, 6, 6, 6, 6, 8, 8, 8, 8},
nuclear@1 543 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 544
nuclear@1 545
nuclear@1 546 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 */
nuclear@1 547 {{ 3, 3, 3, 3, 3, 3, 3, 2, 1, 1, 0, 0, 0, 0, 0},
nuclear@1 548 { 8, 8, 6, 6, 5, 5, 4, 4, 4, 4, 4, 4, 3, 2, 1},
nuclear@1 549 { 3, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8},
nuclear@1 550 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 551 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 */
nuclear@1 552 {{ 2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0},
nuclear@1 553 { 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1},
nuclear@1 554 { 4, 4, 5, 6, 6, 6, 6, 6, 8, 8, 10, 10, 10, 10, 10},
nuclear@1 555 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 556 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 */
nuclear@1 557 {{ 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 558 { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 2, 1, 0},
nuclear@1 559 { 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10},
nuclear@1 560 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 561 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 */
nuclear@1 562 {{ 2, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 563 { 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0},
nuclear@1 564 { 6, 7, 8, 8, 8, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12},
nuclear@1 565 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 566 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 */
nuclear@1 567 {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 568 { 3, 3, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 569 { 8, 8, 8, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12},
nuclear@1 570 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 571 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 */
nuclear@1 572 {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 573 { 3, 3, 3, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 574 { 8, 8, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12},
nuclear@1 575 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 576 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 */
nuclear@1 577 {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 578 { 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 579 { 8, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12},
nuclear@1 580 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 581 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 */
nuclear@1 582 {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 583 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 584 { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
nuclear@1 585 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 586 /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 */
nuclear@1 587 {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 588 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
nuclear@1 589 { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
nuclear@1 590 { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
nuclear@1 591 };
nuclear@1 592
nuclear@1 593 /* tone master attenuation by base quality mode and bitrate tweak */
nuclear@1 594 static const att3 _psy_tone_masteratt_44[12]={
nuclear@1 595 {{ 35, 21, 9}, 0, 0}, /* -1 */
nuclear@1 596 {{ 30, 20, 8}, -2, 1.25}, /* 0 */
nuclear@1 597 /* {{ 25, 14, 4}, 0, 0}, *//* 1 */
nuclear@1 598 {{ 25, 12, 2}, 0, 0}, /* 1 */
nuclear@1 599 /* {{ 20, 10, -2}, 0, 0}, *//* 2 */
nuclear@1 600 {{ 20, 9, -3}, 0, 0}, /* 2 */
nuclear@1 601 {{ 20, 9, -4}, 0, 0}, /* 3 */
nuclear@1 602 {{ 20, 9, -4}, 0, 0}, /* 4 */
nuclear@1 603 {{ 20, 6, -6}, 0, 0}, /* 5 */
nuclear@1 604 {{ 20, 3, -10}, 0, 0}, /* 6 */
nuclear@1 605 {{ 18, 1, -14}, 0, 0}, /* 7 */
nuclear@1 606 {{ 18, 0, -16}, 0, 0}, /* 8 */
nuclear@1 607 {{ 18, -2, -16}, 0, 0}, /* 9 */
nuclear@1 608 {{ 12, -2, -20}, 0, 0}, /* 10 */
nuclear@1 609 };
nuclear@1 610
nuclear@1 611 /* lowpass by mode **************/
nuclear@1 612 static const double _psy_lowpass_44[12]={
nuclear@1 613 /* 15.1,15.8,16.5,17.9,20.5,48.,999.,999.,999.,999.,999. */
nuclear@1 614 13.9,15.1,15.8,16.5,17.2,18.9,20.1,48.,999.,999.,999.,999.
nuclear@1 615 };
nuclear@1 616
nuclear@1 617 /* noise normalization **********/
nuclear@1 618
nuclear@1 619 static const int _noise_start_short_44[11]={
nuclear@1 620 /* 16,16,16,16,32,32,9999,9999,9999,9999 */
nuclear@1 621 32,16,16,16,32,9999,9999,9999,9999,9999,9999
nuclear@1 622 };
nuclear@1 623 static const int _noise_start_long_44[11]={
nuclear@1 624 /* 128,128,128,256,512,512,9999,9999,9999,9999 */
nuclear@1 625 256,128,128,256,512,9999,9999,9999,9999,9999,9999
nuclear@1 626 };
nuclear@1 627
nuclear@1 628 static const int _noise_part_short_44[11]={
nuclear@1 629 8,8,8,8,8,8,8,8,8,8,8
nuclear@1 630 };
nuclear@1 631 static const int _noise_part_long_44[11]={
nuclear@1 632 32,32,32,32,32,32,32,32,32,32,32
nuclear@1 633 };
nuclear@1 634
nuclear@1 635 static const double _noise_thresh_44[11]={
nuclear@1 636 /* .2,.2,.3,.4,.5,.5,9999.,9999.,9999.,9999., */
nuclear@1 637 .2,.2,.2,.4,.6,9999.,9999.,9999.,9999.,9999.,9999.,
nuclear@1 638 };
nuclear@1 639
nuclear@1 640 static const double _noise_thresh_5only[2]={
nuclear@1 641 .5,.5,
nuclear@1 642 };