dbf-halloween2015

annotate libs/vorbis/modes/residue_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: toplevel residue templates for 32/44.1/48kHz
nuclear@1 14 last mod: $Id: residue_44.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/coupled/res_books_stereo.h"
nuclear@1 21
nuclear@1 22 /***** residue backends *********************************************/
nuclear@1 23
nuclear@1 24 static const vorbis_info_residue0 _residue_44_low={
nuclear@1 25 0,-1, -1, 9,-1,-1,
nuclear@1 26 /* 0 1 2 3 4 5 6 7 */
nuclear@1 27 {0},
nuclear@1 28 {-1},
nuclear@1 29 { 0, 1, 2, 2, 4, 8, 16, 32},
nuclear@1 30 { 0, 0, 0,999, 4, 8, 16, 32},
nuclear@1 31 };
nuclear@1 32
nuclear@1 33 static const vorbis_info_residue0 _residue_44_mid={
nuclear@1 34 0,-1, -1, 10,-1,-1,
nuclear@1 35 /* 0 1 2 3 4 5 6 7 8 */
nuclear@1 36 {0},
nuclear@1 37 {-1},
nuclear@1 38 { 0, 1, 1, 2, 2, 4, 8, 16, 32},
nuclear@1 39 { 0, 0,999, 0,999, 4, 8, 16, 32},
nuclear@1 40 };
nuclear@1 41
nuclear@1 42 static const vorbis_info_residue0 _residue_44_high={
nuclear@1 43 0,-1, -1, 10,-1,-1,
nuclear@1 44 /* 0 1 2 3 4 5 6 7 8 */
nuclear@1 45 {0},
nuclear@1 46 {-1},
nuclear@1 47 { 0, 1, 2, 4, 8, 16, 32, 71,157},
nuclear@1 48 { 0, 1, 2, 3, 4, 8, 16, 71,157},
nuclear@1 49 };
nuclear@1 50
nuclear@1 51 static const static_bookblock _resbook_44s_n1={
nuclear@1 52 {
nuclear@1 53 {0},{0,0,&_44cn1_s_p1_0},{0,0,&_44cn1_s_p2_0},
nuclear@1 54 {0,0,&_44cn1_s_p3_0},{0,0,&_44cn1_s_p4_0},{0,0,&_44cn1_s_p5_0},
nuclear@1 55 {&_44cn1_s_p6_0,&_44cn1_s_p6_1},{&_44cn1_s_p7_0,&_44cn1_s_p7_1},
nuclear@1 56 {&_44cn1_s_p8_0,&_44cn1_s_p8_1,&_44cn1_s_p8_2}
nuclear@1 57 }
nuclear@1 58 };
nuclear@1 59 static const static_bookblock _resbook_44sm_n1={
nuclear@1 60 {
nuclear@1 61 {0},{0,0,&_44cn1_sm_p1_0},{0,0,&_44cn1_sm_p2_0},
nuclear@1 62 {0,0,&_44cn1_sm_p3_0},{0,0,&_44cn1_sm_p4_0},{0,0,&_44cn1_sm_p5_0},
nuclear@1 63 {&_44cn1_sm_p6_0,&_44cn1_sm_p6_1},{&_44cn1_sm_p7_0,&_44cn1_sm_p7_1},
nuclear@1 64 {&_44cn1_sm_p8_0,&_44cn1_sm_p8_1,&_44cn1_sm_p8_2}
nuclear@1 65 }
nuclear@1 66 };
nuclear@1 67
nuclear@1 68 static const static_bookblock _resbook_44s_0={
nuclear@1 69 {
nuclear@1 70 {0},{0,0,&_44c0_s_p1_0},{0,0,&_44c0_s_p2_0},
nuclear@1 71 {0,0,&_44c0_s_p3_0},{0,0,&_44c0_s_p4_0},{0,0,&_44c0_s_p5_0},
nuclear@1 72 {&_44c0_s_p6_0,&_44c0_s_p6_1},{&_44c0_s_p7_0,&_44c0_s_p7_1},
nuclear@1 73 {&_44c0_s_p8_0,&_44c0_s_p8_1,&_44c0_s_p8_2}
nuclear@1 74 }
nuclear@1 75 };
nuclear@1 76 static const static_bookblock _resbook_44sm_0={
nuclear@1 77 {
nuclear@1 78 {0},{0,0,&_44c0_sm_p1_0},{0,0,&_44c0_sm_p2_0},
nuclear@1 79 {0,0,&_44c0_sm_p3_0},{0,0,&_44c0_sm_p4_0},{0,0,&_44c0_sm_p5_0},
nuclear@1 80 {&_44c0_sm_p6_0,&_44c0_sm_p6_1},{&_44c0_sm_p7_0,&_44c0_sm_p7_1},
nuclear@1 81 {&_44c0_sm_p8_0,&_44c0_sm_p8_1,&_44c0_sm_p8_2}
nuclear@1 82 }
nuclear@1 83 };
nuclear@1 84
nuclear@1 85 static const static_bookblock _resbook_44s_1={
nuclear@1 86 {
nuclear@1 87 {0},{0,0,&_44c1_s_p1_0},{0,0,&_44c1_s_p2_0},
nuclear@1 88 {0,0,&_44c1_s_p3_0},{0,0,&_44c1_s_p4_0},{0,0,&_44c1_s_p5_0},
nuclear@1 89 {&_44c1_s_p6_0,&_44c1_s_p6_1},{&_44c1_s_p7_0,&_44c1_s_p7_1},
nuclear@1 90 {&_44c1_s_p8_0,&_44c1_s_p8_1,&_44c1_s_p8_2}
nuclear@1 91 }
nuclear@1 92 };
nuclear@1 93 static const static_bookblock _resbook_44sm_1={
nuclear@1 94 {
nuclear@1 95 {0},{0,0,&_44c1_sm_p1_0},{0,0,&_44c1_sm_p2_0},
nuclear@1 96 {0,0,&_44c1_sm_p3_0},{0,0,&_44c1_sm_p4_0},{0,0,&_44c1_sm_p5_0},
nuclear@1 97 {&_44c1_sm_p6_0,&_44c1_sm_p6_1},{&_44c1_sm_p7_0,&_44c1_sm_p7_1},
nuclear@1 98 {&_44c1_sm_p8_0,&_44c1_sm_p8_1,&_44c1_sm_p8_2}
nuclear@1 99 }
nuclear@1 100 };
nuclear@1 101
nuclear@1 102 static const static_bookblock _resbook_44s_2={
nuclear@1 103 {
nuclear@1 104 {0},{0,0,&_44c2_s_p1_0},{0,0,&_44c2_s_p2_0},{0,0,&_44c2_s_p3_0},
nuclear@1 105 {0,0,&_44c2_s_p4_0},{0,0,&_44c2_s_p5_0},{0,0,&_44c2_s_p6_0},
nuclear@1 106 {&_44c2_s_p7_0,&_44c2_s_p7_1},{&_44c2_s_p8_0,&_44c2_s_p8_1},
nuclear@1 107 {&_44c2_s_p9_0,&_44c2_s_p9_1,&_44c2_s_p9_2}
nuclear@1 108 }
nuclear@1 109 };
nuclear@1 110 static const static_bookblock _resbook_44s_3={
nuclear@1 111 {
nuclear@1 112 {0},{0,0,&_44c3_s_p1_0},{0,0,&_44c3_s_p2_0},{0,0,&_44c3_s_p3_0},
nuclear@1 113 {0,0,&_44c3_s_p4_0},{0,0,&_44c3_s_p5_0},{0,0,&_44c3_s_p6_0},
nuclear@1 114 {&_44c3_s_p7_0,&_44c3_s_p7_1},{&_44c3_s_p8_0,&_44c3_s_p8_1},
nuclear@1 115 {&_44c3_s_p9_0,&_44c3_s_p9_1,&_44c3_s_p9_2}
nuclear@1 116 }
nuclear@1 117 };
nuclear@1 118 static const static_bookblock _resbook_44s_4={
nuclear@1 119 {
nuclear@1 120 {0},{0,0,&_44c4_s_p1_0},{0,0,&_44c4_s_p2_0},{0,0,&_44c4_s_p3_0},
nuclear@1 121 {0,0,&_44c4_s_p4_0},{0,0,&_44c4_s_p5_0},{0,0,&_44c4_s_p6_0},
nuclear@1 122 {&_44c4_s_p7_0,&_44c4_s_p7_1},{&_44c4_s_p8_0,&_44c4_s_p8_1},
nuclear@1 123 {&_44c4_s_p9_0,&_44c4_s_p9_1,&_44c4_s_p9_2}
nuclear@1 124 }
nuclear@1 125 };
nuclear@1 126 static const static_bookblock _resbook_44s_5={
nuclear@1 127 {
nuclear@1 128 {0},{0,0,&_44c5_s_p1_0},{0,0,&_44c5_s_p2_0},{0,0,&_44c5_s_p3_0},
nuclear@1 129 {0,0,&_44c5_s_p4_0},{0,0,&_44c5_s_p5_0},{0,0,&_44c5_s_p6_0},
nuclear@1 130 {&_44c5_s_p7_0,&_44c5_s_p7_1},{&_44c5_s_p8_0,&_44c5_s_p8_1},
nuclear@1 131 {&_44c5_s_p9_0,&_44c5_s_p9_1,&_44c5_s_p9_2}
nuclear@1 132 }
nuclear@1 133 };
nuclear@1 134 static const static_bookblock _resbook_44s_6={
nuclear@1 135 {
nuclear@1 136 {0},{0,0,&_44c6_s_p1_0},{0,0,&_44c6_s_p2_0},{0,0,&_44c6_s_p3_0},
nuclear@1 137 {0,0,&_44c6_s_p4_0},
nuclear@1 138 {&_44c6_s_p5_0,&_44c6_s_p5_1},
nuclear@1 139 {&_44c6_s_p6_0,&_44c6_s_p6_1},
nuclear@1 140 {&_44c6_s_p7_0,&_44c6_s_p7_1},
nuclear@1 141 {&_44c6_s_p8_0,&_44c6_s_p8_1},
nuclear@1 142 {&_44c6_s_p9_0,&_44c6_s_p9_1,&_44c6_s_p9_2}
nuclear@1 143 }
nuclear@1 144 };
nuclear@1 145 static const static_bookblock _resbook_44s_7={
nuclear@1 146 {
nuclear@1 147 {0},{0,0,&_44c7_s_p1_0},{0,0,&_44c7_s_p2_0},{0,0,&_44c7_s_p3_0},
nuclear@1 148 {0,0,&_44c7_s_p4_0},
nuclear@1 149 {&_44c7_s_p5_0,&_44c7_s_p5_1},
nuclear@1 150 {&_44c7_s_p6_0,&_44c7_s_p6_1},
nuclear@1 151 {&_44c7_s_p7_0,&_44c7_s_p7_1},
nuclear@1 152 {&_44c7_s_p8_0,&_44c7_s_p8_1},
nuclear@1 153 {&_44c7_s_p9_0,&_44c7_s_p9_1,&_44c7_s_p9_2}
nuclear@1 154 }
nuclear@1 155 };
nuclear@1 156 static const static_bookblock _resbook_44s_8={
nuclear@1 157 {
nuclear@1 158 {0},{0,0,&_44c8_s_p1_0},{0,0,&_44c8_s_p2_0},{0,0,&_44c8_s_p3_0},
nuclear@1 159 {0,0,&_44c8_s_p4_0},
nuclear@1 160 {&_44c8_s_p5_0,&_44c8_s_p5_1},
nuclear@1 161 {&_44c8_s_p6_0,&_44c8_s_p6_1},
nuclear@1 162 {&_44c8_s_p7_0,&_44c8_s_p7_1},
nuclear@1 163 {&_44c8_s_p8_0,&_44c8_s_p8_1},
nuclear@1 164 {&_44c8_s_p9_0,&_44c8_s_p9_1,&_44c8_s_p9_2}
nuclear@1 165 }
nuclear@1 166 };
nuclear@1 167 static const static_bookblock _resbook_44s_9={
nuclear@1 168 {
nuclear@1 169 {0},{0,0,&_44c9_s_p1_0},{0,0,&_44c9_s_p2_0},{0,0,&_44c9_s_p3_0},
nuclear@1 170 {0,0,&_44c9_s_p4_0},
nuclear@1 171 {&_44c9_s_p5_0,&_44c9_s_p5_1},
nuclear@1 172 {&_44c9_s_p6_0,&_44c9_s_p6_1},
nuclear@1 173 {&_44c9_s_p7_0,&_44c9_s_p7_1},
nuclear@1 174 {&_44c9_s_p8_0,&_44c9_s_p8_1},
nuclear@1 175 {&_44c9_s_p9_0,&_44c9_s_p9_1,&_44c9_s_p9_2}
nuclear@1 176 }
nuclear@1 177 };
nuclear@1 178
nuclear@1 179 static const vorbis_residue_template _res_44s_n1[]={
nuclear@1 180 {2,0,32, &_residue_44_low,
nuclear@1 181 &_huff_book__44cn1_s_short,&_huff_book__44cn1_sm_short,
nuclear@1 182 &_resbook_44s_n1,&_resbook_44sm_n1},
nuclear@1 183
nuclear@1 184 {2,0,32, &_residue_44_low,
nuclear@1 185 &_huff_book__44cn1_s_long,&_huff_book__44cn1_sm_long,
nuclear@1 186 &_resbook_44s_n1,&_resbook_44sm_n1}
nuclear@1 187 };
nuclear@1 188 static const vorbis_residue_template _res_44s_0[]={
nuclear@1 189 {2,0,16, &_residue_44_low,
nuclear@1 190 &_huff_book__44c0_s_short,&_huff_book__44c0_sm_short,
nuclear@1 191 &_resbook_44s_0,&_resbook_44sm_0},
nuclear@1 192
nuclear@1 193 {2,0,32, &_residue_44_low,
nuclear@1 194 &_huff_book__44c0_s_long,&_huff_book__44c0_sm_long,
nuclear@1 195 &_resbook_44s_0,&_resbook_44sm_0}
nuclear@1 196 };
nuclear@1 197 static const vorbis_residue_template _res_44s_1[]={
nuclear@1 198 {2,0,16, &_residue_44_low,
nuclear@1 199 &_huff_book__44c1_s_short,&_huff_book__44c1_sm_short,
nuclear@1 200 &_resbook_44s_1,&_resbook_44sm_1},
nuclear@1 201
nuclear@1 202 {2,0,32, &_residue_44_low,
nuclear@1 203 &_huff_book__44c1_s_long,&_huff_book__44c1_sm_long,
nuclear@1 204 &_resbook_44s_1,&_resbook_44sm_1}
nuclear@1 205 };
nuclear@1 206
nuclear@1 207 static const vorbis_residue_template _res_44s_2[]={
nuclear@1 208 {2,0,16, &_residue_44_mid,
nuclear@1 209 &_huff_book__44c2_s_short,&_huff_book__44c2_s_short,
nuclear@1 210 &_resbook_44s_2,&_resbook_44s_2},
nuclear@1 211
nuclear@1 212 {2,0,32, &_residue_44_mid,
nuclear@1 213 &_huff_book__44c2_s_long,&_huff_book__44c2_s_long,
nuclear@1 214 &_resbook_44s_2,&_resbook_44s_2}
nuclear@1 215 };
nuclear@1 216 static const vorbis_residue_template _res_44s_3[]={
nuclear@1 217 {2,0,16, &_residue_44_mid,
nuclear@1 218 &_huff_book__44c3_s_short,&_huff_book__44c3_s_short,
nuclear@1 219 &_resbook_44s_3,&_resbook_44s_3},
nuclear@1 220
nuclear@1 221 {2,0,32, &_residue_44_mid,
nuclear@1 222 &_huff_book__44c3_s_long,&_huff_book__44c3_s_long,
nuclear@1 223 &_resbook_44s_3,&_resbook_44s_3}
nuclear@1 224 };
nuclear@1 225 static const vorbis_residue_template _res_44s_4[]={
nuclear@1 226 {2,0,16, &_residue_44_mid,
nuclear@1 227 &_huff_book__44c4_s_short,&_huff_book__44c4_s_short,
nuclear@1 228 &_resbook_44s_4,&_resbook_44s_4},
nuclear@1 229
nuclear@1 230 {2,0,32, &_residue_44_mid,
nuclear@1 231 &_huff_book__44c4_s_long,&_huff_book__44c4_s_long,
nuclear@1 232 &_resbook_44s_4,&_resbook_44s_4}
nuclear@1 233 };
nuclear@1 234 static const vorbis_residue_template _res_44s_5[]={
nuclear@1 235 {2,0,16, &_residue_44_mid,
nuclear@1 236 &_huff_book__44c5_s_short,&_huff_book__44c5_s_short,
nuclear@1 237 &_resbook_44s_5,&_resbook_44s_5},
nuclear@1 238
nuclear@1 239 {2,0,32, &_residue_44_mid,
nuclear@1 240 &_huff_book__44c5_s_long,&_huff_book__44c5_s_long,
nuclear@1 241 &_resbook_44s_5,&_resbook_44s_5}
nuclear@1 242 };
nuclear@1 243 static const vorbis_residue_template _res_44s_6[]={
nuclear@1 244 {2,0,16, &_residue_44_high,
nuclear@1 245 &_huff_book__44c6_s_short,&_huff_book__44c6_s_short,
nuclear@1 246 &_resbook_44s_6,&_resbook_44s_6},
nuclear@1 247
nuclear@1 248 {2,0,32, &_residue_44_high,
nuclear@1 249 &_huff_book__44c6_s_long,&_huff_book__44c6_s_long,
nuclear@1 250 &_resbook_44s_6,&_resbook_44s_6}
nuclear@1 251 };
nuclear@1 252 static const vorbis_residue_template _res_44s_7[]={
nuclear@1 253 {2,0,16, &_residue_44_high,
nuclear@1 254 &_huff_book__44c7_s_short,&_huff_book__44c7_s_short,
nuclear@1 255 &_resbook_44s_7,&_resbook_44s_7},
nuclear@1 256
nuclear@1 257 {2,0,32, &_residue_44_high,
nuclear@1 258 &_huff_book__44c7_s_long,&_huff_book__44c7_s_long,
nuclear@1 259 &_resbook_44s_7,&_resbook_44s_7}
nuclear@1 260 };
nuclear@1 261 static const vorbis_residue_template _res_44s_8[]={
nuclear@1 262 {2,0,16, &_residue_44_high,
nuclear@1 263 &_huff_book__44c8_s_short,&_huff_book__44c8_s_short,
nuclear@1 264 &_resbook_44s_8,&_resbook_44s_8},
nuclear@1 265
nuclear@1 266 {2,0,32, &_residue_44_high,
nuclear@1 267 &_huff_book__44c8_s_long,&_huff_book__44c8_s_long,
nuclear@1 268 &_resbook_44s_8,&_resbook_44s_8}
nuclear@1 269 };
nuclear@1 270 static const vorbis_residue_template _res_44s_9[]={
nuclear@1 271 {2,0,16, &_residue_44_high,
nuclear@1 272 &_huff_book__44c9_s_short,&_huff_book__44c9_s_short,
nuclear@1 273 &_resbook_44s_9,&_resbook_44s_9},
nuclear@1 274
nuclear@1 275 {2,0,32, &_residue_44_high,
nuclear@1 276 &_huff_book__44c9_s_long,&_huff_book__44c9_s_long,
nuclear@1 277 &_resbook_44s_9,&_resbook_44s_9}
nuclear@1 278 };
nuclear@1 279
nuclear@1 280 static const vorbis_mapping_template _mapres_template_44_stereo[]={
nuclear@1 281 { _map_nominal, _res_44s_n1 }, /* -1 */
nuclear@1 282 { _map_nominal, _res_44s_0 }, /* 0 */
nuclear@1 283 { _map_nominal, _res_44s_1 }, /* 1 */
nuclear@1 284 { _map_nominal, _res_44s_2 }, /* 2 */
nuclear@1 285 { _map_nominal, _res_44s_3 }, /* 3 */
nuclear@1 286 { _map_nominal, _res_44s_4 }, /* 4 */
nuclear@1 287 { _map_nominal, _res_44s_5 }, /* 5 */
nuclear@1 288 { _map_nominal, _res_44s_6 }, /* 6 */
nuclear@1 289 { _map_nominal, _res_44s_7 }, /* 7 */
nuclear@1 290 { _map_nominal, _res_44s_8 }, /* 8 */
nuclear@1 291 { _map_nominal, _res_44s_9 }, /* 9 */
nuclear@1 292 };