dbf-halloween2015

annotate libs/vorbis/modes/residue_44u.h @ 1:c3f5c32cb210

barfed all the libraries in the source tree to make porting easier
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 00:36:56 +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-2007 *
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: toplevel residue templates for 32/44.1/48kHz uncoupled
nuclear@1 14 last mod: $Id: residue_44u.h 16962 2010-03-11 07:30:34Z xiphmont $
nuclear@1 15
nuclear@1 16 ********************************************************************/
nuclear@1 17
nuclear@1 18 #include "vorbis/codec.h"
nuclear@1 19 #include "backends.h"
nuclear@1 20 #include "books/uncoupled/res_books_uncoupled.h"
nuclear@1 21
nuclear@1 22 /***** residue backends *********************************************/
nuclear@1 23
nuclear@1 24
nuclear@1 25 static const vorbis_info_residue0 _residue_44_low_un={
nuclear@1 26 0,-1, -1, 8,-1,-1,
nuclear@1 27 {0},
nuclear@1 28 {-1},
nuclear@1 29 { 0, 1, 1, 2, 2, 4, 28},
nuclear@1 30 { -1, 25, -1, 45, -1, -1, -1}
nuclear@1 31 };
nuclear@1 32
nuclear@1 33 static const vorbis_info_residue0 _residue_44_mid_un={
nuclear@1 34 0,-1, -1, 10,-1,-1,
nuclear@1 35 /* 0 1 2 3 4 5 6 7 8 9 */
nuclear@1 36 {0},
nuclear@1 37 {-1},
nuclear@1 38 { 0, 1, 1, 2, 2, 4, 4, 16, 60},
nuclear@1 39 { -1, 30, -1, 50, -1, 80, -1, -1, -1}
nuclear@1 40 };
nuclear@1 41
nuclear@1 42 static const vorbis_info_residue0 _residue_44_hi_un={
nuclear@1 43 0,-1, -1, 10,-1,-1,
nuclear@1 44 /* 0 1 2 3 4 5 6 7 8 9 */
nuclear@1 45 {0},
nuclear@1 46 {-1},
nuclear@1 47 { 0, 1, 2, 4, 8, 16, 32, 71,157},
nuclear@1 48 { -1, -1, -1, -1, -1, -1, -1, -1, -1}
nuclear@1 49 };
nuclear@1 50
nuclear@1 51 /* mapping conventions:
nuclear@1 52 only one submap (this would change for efficient 5.1 support for example)*/
nuclear@1 53 /* Four psychoacoustic profiles are used, one for each blocktype */
nuclear@1 54 static const vorbis_info_mapping0 _map_nominal_u[2]={
nuclear@1 55 {1, {0,0,0,0,0,0}, {0}, {0}, 0,{0},{0}},
nuclear@1 56 {1, {0,0,0,0,0,0}, {1}, {1}, 0,{0},{0}}
nuclear@1 57 };
nuclear@1 58
nuclear@1 59 static const static_bookblock _resbook_44u_n1={
nuclear@1 60 {
nuclear@1 61 {0},
nuclear@1 62 {0,0,&_44un1__p1_0},
nuclear@1 63 {0,0,&_44un1__p2_0},
nuclear@1 64 {0,0,&_44un1__p3_0},
nuclear@1 65 {0,0,&_44un1__p4_0},
nuclear@1 66 {0,0,&_44un1__p5_0},
nuclear@1 67 {&_44un1__p6_0,&_44un1__p6_1},
nuclear@1 68 {&_44un1__p7_0,&_44un1__p7_1,&_44un1__p7_2}
nuclear@1 69 }
nuclear@1 70 };
nuclear@1 71 static const static_bookblock _resbook_44u_0={
nuclear@1 72 {
nuclear@1 73 {0},
nuclear@1 74 {0,0,&_44u0__p1_0},
nuclear@1 75 {0,0,&_44u0__p2_0},
nuclear@1 76 {0,0,&_44u0__p3_0},
nuclear@1 77 {0,0,&_44u0__p4_0},
nuclear@1 78 {0,0,&_44u0__p5_0},
nuclear@1 79 {&_44u0__p6_0,&_44u0__p6_1},
nuclear@1 80 {&_44u0__p7_0,&_44u0__p7_1,&_44u0__p7_2}
nuclear@1 81 }
nuclear@1 82 };
nuclear@1 83 static const static_bookblock _resbook_44u_1={
nuclear@1 84 {
nuclear@1 85 {0},
nuclear@1 86 {0,0,&_44u1__p1_0},
nuclear@1 87 {0,0,&_44u1__p2_0},
nuclear@1 88 {0,0,&_44u1__p3_0},
nuclear@1 89 {0,0,&_44u1__p4_0},
nuclear@1 90 {0,0,&_44u1__p5_0},
nuclear@1 91 {&_44u1__p6_0,&_44u1__p6_1},
nuclear@1 92 {&_44u1__p7_0,&_44u1__p7_1,&_44u1__p7_2}
nuclear@1 93 }
nuclear@1 94 };
nuclear@1 95 static const static_bookblock _resbook_44u_2={
nuclear@1 96 {
nuclear@1 97 {0},
nuclear@1 98 {0,0,&_44u2__p1_0},
nuclear@1 99 {0,0,&_44u2__p2_0},
nuclear@1 100 {0,0,&_44u2__p3_0},
nuclear@1 101 {0,0,&_44u2__p4_0},
nuclear@1 102 {0,0,&_44u2__p5_0},
nuclear@1 103 {&_44u2__p6_0,&_44u2__p6_1},
nuclear@1 104 {&_44u2__p7_0,&_44u2__p7_1,&_44u2__p7_2}
nuclear@1 105 }
nuclear@1 106 };
nuclear@1 107 static const static_bookblock _resbook_44u_3={
nuclear@1 108 {
nuclear@1 109 {0},
nuclear@1 110 {0,0,&_44u3__p1_0},
nuclear@1 111 {0,0,&_44u3__p2_0},
nuclear@1 112 {0,0,&_44u3__p3_0},
nuclear@1 113 {0,0,&_44u3__p4_0},
nuclear@1 114 {0,0,&_44u3__p5_0},
nuclear@1 115 {&_44u3__p6_0,&_44u3__p6_1},
nuclear@1 116 {&_44u3__p7_0,&_44u3__p7_1,&_44u3__p7_2}
nuclear@1 117 }
nuclear@1 118 };
nuclear@1 119 static const static_bookblock _resbook_44u_4={
nuclear@1 120 {
nuclear@1 121 {0},
nuclear@1 122 {0,0,&_44u4__p1_0},
nuclear@1 123 {0,0,&_44u4__p2_0},
nuclear@1 124 {0,0,&_44u4__p3_0},
nuclear@1 125 {0,0,&_44u4__p4_0},
nuclear@1 126 {0,0,&_44u4__p5_0},
nuclear@1 127 {&_44u4__p6_0,&_44u4__p6_1},
nuclear@1 128 {&_44u4__p7_0,&_44u4__p7_1,&_44u4__p7_2}
nuclear@1 129 }
nuclear@1 130 };
nuclear@1 131 static const static_bookblock _resbook_44u_5={
nuclear@1 132 {
nuclear@1 133 {0},
nuclear@1 134 {0,0,&_44u5__p1_0},
nuclear@1 135 {0,0,&_44u5__p2_0},
nuclear@1 136 {0,0,&_44u5__p3_0},
nuclear@1 137 {0,0,&_44u5__p4_0},
nuclear@1 138 {0,0,&_44u5__p5_0},
nuclear@1 139 {0,0,&_44u5__p6_0},
nuclear@1 140 {&_44u5__p7_0,&_44u5__p7_1},
nuclear@1 141 {&_44u5__p8_0,&_44u5__p8_1},
nuclear@1 142 {&_44u5__p9_0,&_44u5__p9_1,&_44u5__p9_2}
nuclear@1 143 }
nuclear@1 144 };
nuclear@1 145 static const static_bookblock _resbook_44u_6={
nuclear@1 146 {
nuclear@1 147 {0},
nuclear@1 148 {0,0,&_44u6__p1_0},
nuclear@1 149 {0,0,&_44u6__p2_0},
nuclear@1 150 {0,0,&_44u6__p3_0},
nuclear@1 151 {0,0,&_44u6__p4_0},
nuclear@1 152 {0,0,&_44u6__p5_0},
nuclear@1 153 {0,0,&_44u6__p6_0},
nuclear@1 154 {&_44u6__p7_0,&_44u6__p7_1},
nuclear@1 155 {&_44u6__p8_0,&_44u6__p8_1},
nuclear@1 156 {&_44u6__p9_0,&_44u6__p9_1,&_44u6__p9_2}
nuclear@1 157 }
nuclear@1 158 };
nuclear@1 159 static const static_bookblock _resbook_44u_7={
nuclear@1 160 {
nuclear@1 161 {0},
nuclear@1 162 {0,0,&_44u7__p1_0},
nuclear@1 163 {0,0,&_44u7__p2_0},
nuclear@1 164 {0,0,&_44u7__p3_0},
nuclear@1 165 {0,0,&_44u7__p4_0},
nuclear@1 166 {0,0,&_44u7__p5_0},
nuclear@1 167 {0,0,&_44u7__p6_0},
nuclear@1 168 {&_44u7__p7_0,&_44u7__p7_1},
nuclear@1 169 {&_44u7__p8_0,&_44u7__p8_1},
nuclear@1 170 {&_44u7__p9_0,&_44u7__p9_1,&_44u7__p9_2}
nuclear@1 171 }
nuclear@1 172 };
nuclear@1 173 static const static_bookblock _resbook_44u_8={
nuclear@1 174 {
nuclear@1 175 {0},
nuclear@1 176 {0,0,&_44u8_p1_0},
nuclear@1 177 {0,0,&_44u8_p2_0},
nuclear@1 178 {0,0,&_44u8_p3_0},
nuclear@1 179 {0,0,&_44u8_p4_0},
nuclear@1 180 {&_44u8_p5_0,&_44u8_p5_1},
nuclear@1 181 {&_44u8_p6_0,&_44u8_p6_1},
nuclear@1 182 {&_44u8_p7_0,&_44u8_p7_1},
nuclear@1 183 {&_44u8_p8_0,&_44u8_p8_1},
nuclear@1 184 {&_44u8_p9_0,&_44u8_p9_1,&_44u8_p9_2}
nuclear@1 185 }
nuclear@1 186 };
nuclear@1 187 static const static_bookblock _resbook_44u_9={
nuclear@1 188 {
nuclear@1 189 {0},
nuclear@1 190 {0,0,&_44u9_p1_0},
nuclear@1 191 {0,0,&_44u9_p2_0},
nuclear@1 192 {0,0,&_44u9_p3_0},
nuclear@1 193 {0,0,&_44u9_p4_0},
nuclear@1 194 {&_44u9_p5_0,&_44u9_p5_1},
nuclear@1 195 {&_44u9_p6_0,&_44u9_p6_1},
nuclear@1 196 {&_44u9_p7_0,&_44u9_p7_1},
nuclear@1 197 {&_44u9_p8_0,&_44u9_p8_1},
nuclear@1 198 {&_44u9_p9_0,&_44u9_p9_1,&_44u9_p9_2}
nuclear@1 199 }
nuclear@1 200 };
nuclear@1 201
nuclear@1 202 static const vorbis_residue_template _res_44u_n1[]={
nuclear@1 203 {1,0,32, &_residue_44_low_un,
nuclear@1 204 &_huff_book__44un1__short,&_huff_book__44un1__short,
nuclear@1 205 &_resbook_44u_n1,&_resbook_44u_n1},
nuclear@1 206
nuclear@1 207 {1,0,32, &_residue_44_low_un,
nuclear@1 208 &_huff_book__44un1__long,&_huff_book__44un1__long,
nuclear@1 209 &_resbook_44u_n1,&_resbook_44u_n1}
nuclear@1 210 };
nuclear@1 211 static const vorbis_residue_template _res_44u_0[]={
nuclear@1 212 {1,0,16, &_residue_44_low_un,
nuclear@1 213 &_huff_book__44u0__short,&_huff_book__44u0__short,
nuclear@1 214 &_resbook_44u_0,&_resbook_44u_0},
nuclear@1 215
nuclear@1 216 {1,0,32, &_residue_44_low_un,
nuclear@1 217 &_huff_book__44u0__long,&_huff_book__44u0__long,
nuclear@1 218 &_resbook_44u_0,&_resbook_44u_0}
nuclear@1 219 };
nuclear@1 220 static const vorbis_residue_template _res_44u_1[]={
nuclear@1 221 {1,0,16, &_residue_44_low_un,
nuclear@1 222 &_huff_book__44u1__short,&_huff_book__44u1__short,
nuclear@1 223 &_resbook_44u_1,&_resbook_44u_1},
nuclear@1 224
nuclear@1 225 {1,0,32, &_residue_44_low_un,
nuclear@1 226 &_huff_book__44u1__long,&_huff_book__44u1__long,
nuclear@1 227 &_resbook_44u_1,&_resbook_44u_1}
nuclear@1 228 };
nuclear@1 229 static const vorbis_residue_template _res_44u_2[]={
nuclear@1 230 {1,0,16, &_residue_44_low_un,
nuclear@1 231 &_huff_book__44u2__short,&_huff_book__44u2__short,
nuclear@1 232 &_resbook_44u_2,&_resbook_44u_2},
nuclear@1 233
nuclear@1 234 {1,0,32, &_residue_44_low_un,
nuclear@1 235 &_huff_book__44u2__long,&_huff_book__44u2__long,
nuclear@1 236 &_resbook_44u_2,&_resbook_44u_2}
nuclear@1 237 };
nuclear@1 238 static const vorbis_residue_template _res_44u_3[]={
nuclear@1 239 {1,0,16, &_residue_44_low_un,
nuclear@1 240 &_huff_book__44u3__short,&_huff_book__44u3__short,
nuclear@1 241 &_resbook_44u_3,&_resbook_44u_3},
nuclear@1 242
nuclear@1 243 {1,0,32, &_residue_44_low_un,
nuclear@1 244 &_huff_book__44u3__long,&_huff_book__44u3__long,
nuclear@1 245 &_resbook_44u_3,&_resbook_44u_3}
nuclear@1 246 };
nuclear@1 247 static const vorbis_residue_template _res_44u_4[]={
nuclear@1 248 {1,0,16, &_residue_44_low_un,
nuclear@1 249 &_huff_book__44u4__short,&_huff_book__44u4__short,
nuclear@1 250 &_resbook_44u_4,&_resbook_44u_4},
nuclear@1 251
nuclear@1 252 {1,0,32, &_residue_44_low_un,
nuclear@1 253 &_huff_book__44u4__long,&_huff_book__44u4__long,
nuclear@1 254 &_resbook_44u_4,&_resbook_44u_4}
nuclear@1 255 };
nuclear@1 256
nuclear@1 257 static const vorbis_residue_template _res_44u_5[]={
nuclear@1 258 {1,0,16, &_residue_44_mid_un,
nuclear@1 259 &_huff_book__44u5__short,&_huff_book__44u5__short,
nuclear@1 260 &_resbook_44u_5,&_resbook_44u_5},
nuclear@1 261
nuclear@1 262 {1,0,32, &_residue_44_mid_un,
nuclear@1 263 &_huff_book__44u5__long,&_huff_book__44u5__long,
nuclear@1 264 &_resbook_44u_5,&_resbook_44u_5}
nuclear@1 265 };
nuclear@1 266
nuclear@1 267 static const vorbis_residue_template _res_44u_6[]={
nuclear@1 268 {1,0,16, &_residue_44_mid_un,
nuclear@1 269 &_huff_book__44u6__short,&_huff_book__44u6__short,
nuclear@1 270 &_resbook_44u_6,&_resbook_44u_6},
nuclear@1 271
nuclear@1 272 {1,0,32, &_residue_44_mid_un,
nuclear@1 273 &_huff_book__44u6__long,&_huff_book__44u6__long,
nuclear@1 274 &_resbook_44u_6,&_resbook_44u_6}
nuclear@1 275 };
nuclear@1 276
nuclear@1 277 static const vorbis_residue_template _res_44u_7[]={
nuclear@1 278 {1,0,16, &_residue_44_mid_un,
nuclear@1 279 &_huff_book__44u7__short,&_huff_book__44u7__short,
nuclear@1 280 &_resbook_44u_7,&_resbook_44u_7},
nuclear@1 281
nuclear@1 282 {1,0,32, &_residue_44_mid_un,
nuclear@1 283 &_huff_book__44u7__long,&_huff_book__44u7__long,
nuclear@1 284 &_resbook_44u_7,&_resbook_44u_7}
nuclear@1 285 };
nuclear@1 286
nuclear@1 287 static const vorbis_residue_template _res_44u_8[]={
nuclear@1 288 {1,0,16, &_residue_44_hi_un,
nuclear@1 289 &_huff_book__44u8__short,&_huff_book__44u8__short,
nuclear@1 290 &_resbook_44u_8,&_resbook_44u_8},
nuclear@1 291
nuclear@1 292 {1,0,32, &_residue_44_hi_un,
nuclear@1 293 &_huff_book__44u8__long,&_huff_book__44u8__long,
nuclear@1 294 &_resbook_44u_8,&_resbook_44u_8}
nuclear@1 295 };
nuclear@1 296 static const vorbis_residue_template _res_44u_9[]={
nuclear@1 297 {1,0,16, &_residue_44_hi_un,
nuclear@1 298 &_huff_book__44u9__short,&_huff_book__44u9__short,
nuclear@1 299 &_resbook_44u_9,&_resbook_44u_9},
nuclear@1 300
nuclear@1 301 {1,0,32, &_residue_44_hi_un,
nuclear@1 302 &_huff_book__44u9__long,&_huff_book__44u9__long,
nuclear@1 303 &_resbook_44u_9,&_resbook_44u_9}
nuclear@1 304 };
nuclear@1 305
nuclear@1 306 static const vorbis_mapping_template _mapres_template_44_uncoupled[]={
nuclear@1 307 { _map_nominal_u, _res_44u_n1 }, /* -1 */
nuclear@1 308 { _map_nominal_u, _res_44u_0 }, /* 0 */
nuclear@1 309 { _map_nominal_u, _res_44u_1 }, /* 1 */
nuclear@1 310 { _map_nominal_u, _res_44u_2 }, /* 2 */
nuclear@1 311 { _map_nominal_u, _res_44u_3 }, /* 3 */
nuclear@1 312 { _map_nominal_u, _res_44u_4 }, /* 4 */
nuclear@1 313 { _map_nominal_u, _res_44u_5 }, /* 5 */
nuclear@1 314 { _map_nominal_u, _res_44u_6 }, /* 6 */
nuclear@1 315 { _map_nominal_u, _res_44u_7 }, /* 7 */
nuclear@1 316 { _map_nominal_u, _res_44u_8 }, /* 8 */
nuclear@1 317 { _map_nominal_u, _res_44u_9 }, /* 9 */
nuclear@1 318 };