annotate src/libvorbis-1.3.3/lib/modes/residue_44.h @ 83:ae30d91d2ffe

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