vrshoot

annotate libs/vorbis/modes/residue_44.h @ 0:b2f14e535253

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