dbf-halloween2015

diff libs/vorbis/modes/residue_44.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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/vorbis/modes/residue_44.h	Sun Nov 01 00:36:56 2015 +0200
     1.3 @@ -0,0 +1,292 @@
     1.4 +/********************************************************************
     1.5 + *                                                                  *
     1.6 + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
     1.7 + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
     1.8 + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
     1.9 + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
    1.10 + *                                                                  *
    1.11 + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009             *
    1.12 + * by the Xiph.Org Foundation http://www.xiph.org/                  *
    1.13 + *                                                                  *
    1.14 + ********************************************************************
    1.15 +
    1.16 + function: toplevel residue templates for 32/44.1/48kHz
    1.17 + last mod: $Id: residue_44.h 16962 2010-03-11 07:30:34Z xiphmont $
    1.18 +
    1.19 + ********************************************************************/
    1.20 +
    1.21 +#include "vorbis/codec.h"
    1.22 +#include "backends.h"
    1.23 +#include "books/coupled/res_books_stereo.h"
    1.24 +
    1.25 +/***** residue backends *********************************************/
    1.26 +
    1.27 +static const vorbis_info_residue0 _residue_44_low={
    1.28 +  0,-1, -1, 9,-1,-1,
    1.29 +  /* 0   1   2   3   4   5   6   7  */
    1.30 +  {0},
    1.31 +  {-1},
    1.32 +  {  0,  1,  2,  2,  4,  8, 16, 32},
    1.33 +  {  0,  0,  0,999,  4,  8, 16, 32},
    1.34 +};
    1.35 +
    1.36 +static const vorbis_info_residue0 _residue_44_mid={
    1.37 +  0,-1, -1, 10,-1,-1,
    1.38 +  /* 0   1   2   3   4   5   6   7   8  */
    1.39 +  {0},
    1.40 +  {-1},
    1.41 +  {  0,  1,  1,  2,  2,  4,  8, 16, 32},
    1.42 +  {  0,  0,999,  0,999,  4,  8, 16, 32},
    1.43 +};
    1.44 +
    1.45 +static const vorbis_info_residue0 _residue_44_high={
    1.46 +  0,-1, -1, 10,-1,-1,
    1.47 +  /* 0   1   2   3   4   5   6   7   8  */
    1.48 +  {0},
    1.49 +  {-1},
    1.50 +  {  0,  1,  2,  4,  8, 16, 32, 71,157},
    1.51 +  {  0,  1,  2,  3,  4,  8, 16, 71,157},
    1.52 +};
    1.53 +
    1.54 +static const static_bookblock _resbook_44s_n1={
    1.55 +  {
    1.56 +    {0},{0,0,&_44cn1_s_p1_0},{0,0,&_44cn1_s_p2_0},
    1.57 +    {0,0,&_44cn1_s_p3_0},{0,0,&_44cn1_s_p4_0},{0,0,&_44cn1_s_p5_0},
    1.58 +    {&_44cn1_s_p6_0,&_44cn1_s_p6_1},{&_44cn1_s_p7_0,&_44cn1_s_p7_1},
    1.59 +    {&_44cn1_s_p8_0,&_44cn1_s_p8_1,&_44cn1_s_p8_2}
    1.60 +   }
    1.61 +};
    1.62 +static const static_bookblock _resbook_44sm_n1={
    1.63 +  {
    1.64 +    {0},{0,0,&_44cn1_sm_p1_0},{0,0,&_44cn1_sm_p2_0},
    1.65 +    {0,0,&_44cn1_sm_p3_0},{0,0,&_44cn1_sm_p4_0},{0,0,&_44cn1_sm_p5_0},
    1.66 +    {&_44cn1_sm_p6_0,&_44cn1_sm_p6_1},{&_44cn1_sm_p7_0,&_44cn1_sm_p7_1},
    1.67 +    {&_44cn1_sm_p8_0,&_44cn1_sm_p8_1,&_44cn1_sm_p8_2}
    1.68 +   }
    1.69 +};
    1.70 +
    1.71 +static const static_bookblock _resbook_44s_0={
    1.72 +  {
    1.73 +    {0},{0,0,&_44c0_s_p1_0},{0,0,&_44c0_s_p2_0},
    1.74 +    {0,0,&_44c0_s_p3_0},{0,0,&_44c0_s_p4_0},{0,0,&_44c0_s_p5_0},
    1.75 +    {&_44c0_s_p6_0,&_44c0_s_p6_1},{&_44c0_s_p7_0,&_44c0_s_p7_1},
    1.76 +    {&_44c0_s_p8_0,&_44c0_s_p8_1,&_44c0_s_p8_2}
    1.77 +   }
    1.78 +};
    1.79 +static const static_bookblock _resbook_44sm_0={
    1.80 +  {
    1.81 +    {0},{0,0,&_44c0_sm_p1_0},{0,0,&_44c0_sm_p2_0},
    1.82 +    {0,0,&_44c0_sm_p3_0},{0,0,&_44c0_sm_p4_0},{0,0,&_44c0_sm_p5_0},
    1.83 +    {&_44c0_sm_p6_0,&_44c0_sm_p6_1},{&_44c0_sm_p7_0,&_44c0_sm_p7_1},
    1.84 +    {&_44c0_sm_p8_0,&_44c0_sm_p8_1,&_44c0_sm_p8_2}
    1.85 +   }
    1.86 +};
    1.87 +
    1.88 +static const static_bookblock _resbook_44s_1={
    1.89 +  {
    1.90 +    {0},{0,0,&_44c1_s_p1_0},{0,0,&_44c1_s_p2_0},
    1.91 +    {0,0,&_44c1_s_p3_0},{0,0,&_44c1_s_p4_0},{0,0,&_44c1_s_p5_0},
    1.92 +    {&_44c1_s_p6_0,&_44c1_s_p6_1},{&_44c1_s_p7_0,&_44c1_s_p7_1},
    1.93 +    {&_44c1_s_p8_0,&_44c1_s_p8_1,&_44c1_s_p8_2}
    1.94 +   }
    1.95 +};
    1.96 +static const static_bookblock _resbook_44sm_1={
    1.97 +  {
    1.98 +    {0},{0,0,&_44c1_sm_p1_0},{0,0,&_44c1_sm_p2_0},
    1.99 +    {0,0,&_44c1_sm_p3_0},{0,0,&_44c1_sm_p4_0},{0,0,&_44c1_sm_p5_0},
   1.100 +    {&_44c1_sm_p6_0,&_44c1_sm_p6_1},{&_44c1_sm_p7_0,&_44c1_sm_p7_1},
   1.101 +    {&_44c1_sm_p8_0,&_44c1_sm_p8_1,&_44c1_sm_p8_2}
   1.102 +   }
   1.103 +};
   1.104 +
   1.105 +static const static_bookblock _resbook_44s_2={
   1.106 +  {
   1.107 +    {0},{0,0,&_44c2_s_p1_0},{0,0,&_44c2_s_p2_0},{0,0,&_44c2_s_p3_0},
   1.108 +    {0,0,&_44c2_s_p4_0},{0,0,&_44c2_s_p5_0},{0,0,&_44c2_s_p6_0},
   1.109 +    {&_44c2_s_p7_0,&_44c2_s_p7_1},{&_44c2_s_p8_0,&_44c2_s_p8_1},
   1.110 +    {&_44c2_s_p9_0,&_44c2_s_p9_1,&_44c2_s_p9_2}
   1.111 +   }
   1.112 +};
   1.113 +static const static_bookblock _resbook_44s_3={
   1.114 +  {
   1.115 +    {0},{0,0,&_44c3_s_p1_0},{0,0,&_44c3_s_p2_0},{0,0,&_44c3_s_p3_0},
   1.116 +    {0,0,&_44c3_s_p4_0},{0,0,&_44c3_s_p5_0},{0,0,&_44c3_s_p6_0},
   1.117 +    {&_44c3_s_p7_0,&_44c3_s_p7_1},{&_44c3_s_p8_0,&_44c3_s_p8_1},
   1.118 +    {&_44c3_s_p9_0,&_44c3_s_p9_1,&_44c3_s_p9_2}
   1.119 +   }
   1.120 +};
   1.121 +static const static_bookblock _resbook_44s_4={
   1.122 +  {
   1.123 +    {0},{0,0,&_44c4_s_p1_0},{0,0,&_44c4_s_p2_0},{0,0,&_44c4_s_p3_0},
   1.124 +    {0,0,&_44c4_s_p4_0},{0,0,&_44c4_s_p5_0},{0,0,&_44c4_s_p6_0},
   1.125 +    {&_44c4_s_p7_0,&_44c4_s_p7_1},{&_44c4_s_p8_0,&_44c4_s_p8_1},
   1.126 +    {&_44c4_s_p9_0,&_44c4_s_p9_1,&_44c4_s_p9_2}
   1.127 +   }
   1.128 +};
   1.129 +static const static_bookblock _resbook_44s_5={
   1.130 +  {
   1.131 +    {0},{0,0,&_44c5_s_p1_0},{0,0,&_44c5_s_p2_0},{0,0,&_44c5_s_p3_0},
   1.132 +    {0,0,&_44c5_s_p4_0},{0,0,&_44c5_s_p5_0},{0,0,&_44c5_s_p6_0},
   1.133 +    {&_44c5_s_p7_0,&_44c5_s_p7_1},{&_44c5_s_p8_0,&_44c5_s_p8_1},
   1.134 +    {&_44c5_s_p9_0,&_44c5_s_p9_1,&_44c5_s_p9_2}
   1.135 +   }
   1.136 +};
   1.137 +static const static_bookblock _resbook_44s_6={
   1.138 +  {
   1.139 +    {0},{0,0,&_44c6_s_p1_0},{0,0,&_44c6_s_p2_0},{0,0,&_44c6_s_p3_0},
   1.140 +    {0,0,&_44c6_s_p4_0},
   1.141 +    {&_44c6_s_p5_0,&_44c6_s_p5_1},
   1.142 +    {&_44c6_s_p6_0,&_44c6_s_p6_1},
   1.143 +    {&_44c6_s_p7_0,&_44c6_s_p7_1},
   1.144 +    {&_44c6_s_p8_0,&_44c6_s_p8_1},
   1.145 +    {&_44c6_s_p9_0,&_44c6_s_p9_1,&_44c6_s_p9_2}
   1.146 +   }
   1.147 +};
   1.148 +static const static_bookblock _resbook_44s_7={
   1.149 +  {
   1.150 +    {0},{0,0,&_44c7_s_p1_0},{0,0,&_44c7_s_p2_0},{0,0,&_44c7_s_p3_0},
   1.151 +    {0,0,&_44c7_s_p4_0},
   1.152 +    {&_44c7_s_p5_0,&_44c7_s_p5_1},
   1.153 +    {&_44c7_s_p6_0,&_44c7_s_p6_1},
   1.154 +    {&_44c7_s_p7_0,&_44c7_s_p7_1},
   1.155 +    {&_44c7_s_p8_0,&_44c7_s_p8_1},
   1.156 +    {&_44c7_s_p9_0,&_44c7_s_p9_1,&_44c7_s_p9_2}
   1.157 +   }
   1.158 +};
   1.159 +static const static_bookblock _resbook_44s_8={
   1.160 +  {
   1.161 +    {0},{0,0,&_44c8_s_p1_0},{0,0,&_44c8_s_p2_0},{0,0,&_44c8_s_p3_0},
   1.162 +    {0,0,&_44c8_s_p4_0},
   1.163 +    {&_44c8_s_p5_0,&_44c8_s_p5_1},
   1.164 +    {&_44c8_s_p6_0,&_44c8_s_p6_1},
   1.165 +    {&_44c8_s_p7_0,&_44c8_s_p7_1},
   1.166 +    {&_44c8_s_p8_0,&_44c8_s_p8_1},
   1.167 +    {&_44c8_s_p9_0,&_44c8_s_p9_1,&_44c8_s_p9_2}
   1.168 +   }
   1.169 +};
   1.170 +static const static_bookblock _resbook_44s_9={
   1.171 +  {
   1.172 +    {0},{0,0,&_44c9_s_p1_0},{0,0,&_44c9_s_p2_0},{0,0,&_44c9_s_p3_0},
   1.173 +    {0,0,&_44c9_s_p4_0},
   1.174 +    {&_44c9_s_p5_0,&_44c9_s_p5_1},
   1.175 +    {&_44c9_s_p6_0,&_44c9_s_p6_1},
   1.176 +    {&_44c9_s_p7_0,&_44c9_s_p7_1},
   1.177 +    {&_44c9_s_p8_0,&_44c9_s_p8_1},
   1.178 +    {&_44c9_s_p9_0,&_44c9_s_p9_1,&_44c9_s_p9_2}
   1.179 +   }
   1.180 +};
   1.181 +
   1.182 +static const vorbis_residue_template _res_44s_n1[]={
   1.183 +  {2,0,32,  &_residue_44_low,
   1.184 +   &_huff_book__44cn1_s_short,&_huff_book__44cn1_sm_short,
   1.185 +   &_resbook_44s_n1,&_resbook_44sm_n1},
   1.186 +
   1.187 +  {2,0,32,  &_residue_44_low,
   1.188 +   &_huff_book__44cn1_s_long,&_huff_book__44cn1_sm_long,
   1.189 +   &_resbook_44s_n1,&_resbook_44sm_n1}
   1.190 +};
   1.191 +static const vorbis_residue_template _res_44s_0[]={
   1.192 +  {2,0,16,  &_residue_44_low,
   1.193 +   &_huff_book__44c0_s_short,&_huff_book__44c0_sm_short,
   1.194 +   &_resbook_44s_0,&_resbook_44sm_0},
   1.195 +
   1.196 +  {2,0,32,  &_residue_44_low,
   1.197 +   &_huff_book__44c0_s_long,&_huff_book__44c0_sm_long,
   1.198 +   &_resbook_44s_0,&_resbook_44sm_0}
   1.199 +};
   1.200 +static const vorbis_residue_template _res_44s_1[]={
   1.201 +  {2,0,16,  &_residue_44_low,
   1.202 +   &_huff_book__44c1_s_short,&_huff_book__44c1_sm_short,
   1.203 +   &_resbook_44s_1,&_resbook_44sm_1},
   1.204 +
   1.205 +  {2,0,32,  &_residue_44_low,
   1.206 +   &_huff_book__44c1_s_long,&_huff_book__44c1_sm_long,
   1.207 +   &_resbook_44s_1,&_resbook_44sm_1}
   1.208 +};
   1.209 +
   1.210 +static const vorbis_residue_template _res_44s_2[]={
   1.211 +  {2,0,16,  &_residue_44_mid,
   1.212 +   &_huff_book__44c2_s_short,&_huff_book__44c2_s_short,
   1.213 +   &_resbook_44s_2,&_resbook_44s_2},
   1.214 +
   1.215 +  {2,0,32,  &_residue_44_mid,
   1.216 +   &_huff_book__44c2_s_long,&_huff_book__44c2_s_long,
   1.217 +   &_resbook_44s_2,&_resbook_44s_2}
   1.218 +};
   1.219 +static const vorbis_residue_template _res_44s_3[]={
   1.220 +  {2,0,16,  &_residue_44_mid,
   1.221 +   &_huff_book__44c3_s_short,&_huff_book__44c3_s_short,
   1.222 +   &_resbook_44s_3,&_resbook_44s_3},
   1.223 +
   1.224 +  {2,0,32,  &_residue_44_mid,
   1.225 +   &_huff_book__44c3_s_long,&_huff_book__44c3_s_long,
   1.226 +   &_resbook_44s_3,&_resbook_44s_3}
   1.227 +};
   1.228 +static const vorbis_residue_template _res_44s_4[]={
   1.229 +  {2,0,16,  &_residue_44_mid,
   1.230 +   &_huff_book__44c4_s_short,&_huff_book__44c4_s_short,
   1.231 +   &_resbook_44s_4,&_resbook_44s_4},
   1.232 +
   1.233 +  {2,0,32,  &_residue_44_mid,
   1.234 +   &_huff_book__44c4_s_long,&_huff_book__44c4_s_long,
   1.235 +   &_resbook_44s_4,&_resbook_44s_4}
   1.236 +};
   1.237 +static const vorbis_residue_template _res_44s_5[]={
   1.238 +  {2,0,16,  &_residue_44_mid,
   1.239 +   &_huff_book__44c5_s_short,&_huff_book__44c5_s_short,
   1.240 +   &_resbook_44s_5,&_resbook_44s_5},
   1.241 +
   1.242 +  {2,0,32,  &_residue_44_mid,
   1.243 +   &_huff_book__44c5_s_long,&_huff_book__44c5_s_long,
   1.244 +   &_resbook_44s_5,&_resbook_44s_5}
   1.245 +};
   1.246 +static const vorbis_residue_template _res_44s_6[]={
   1.247 +  {2,0,16,  &_residue_44_high,
   1.248 +   &_huff_book__44c6_s_short,&_huff_book__44c6_s_short,
   1.249 +   &_resbook_44s_6,&_resbook_44s_6},
   1.250 +
   1.251 +  {2,0,32,  &_residue_44_high,
   1.252 +   &_huff_book__44c6_s_long,&_huff_book__44c6_s_long,
   1.253 +   &_resbook_44s_6,&_resbook_44s_6}
   1.254 +};
   1.255 +static const vorbis_residue_template _res_44s_7[]={
   1.256 +  {2,0,16,  &_residue_44_high,
   1.257 +   &_huff_book__44c7_s_short,&_huff_book__44c7_s_short,
   1.258 +   &_resbook_44s_7,&_resbook_44s_7},
   1.259 +
   1.260 +  {2,0,32,  &_residue_44_high,
   1.261 +   &_huff_book__44c7_s_long,&_huff_book__44c7_s_long,
   1.262 +   &_resbook_44s_7,&_resbook_44s_7}
   1.263 +};
   1.264 +static const vorbis_residue_template _res_44s_8[]={
   1.265 +  {2,0,16,  &_residue_44_high,
   1.266 +   &_huff_book__44c8_s_short,&_huff_book__44c8_s_short,
   1.267 +   &_resbook_44s_8,&_resbook_44s_8},
   1.268 +
   1.269 +  {2,0,32,  &_residue_44_high,
   1.270 +   &_huff_book__44c8_s_long,&_huff_book__44c8_s_long,
   1.271 +   &_resbook_44s_8,&_resbook_44s_8}
   1.272 +};
   1.273 +static const vorbis_residue_template _res_44s_9[]={
   1.274 +  {2,0,16,  &_residue_44_high,
   1.275 +   &_huff_book__44c9_s_short,&_huff_book__44c9_s_short,
   1.276 +   &_resbook_44s_9,&_resbook_44s_9},
   1.277 +
   1.278 +  {2,0,32,  &_residue_44_high,
   1.279 +   &_huff_book__44c9_s_long,&_huff_book__44c9_s_long,
   1.280 +   &_resbook_44s_9,&_resbook_44s_9}
   1.281 +};
   1.282 +
   1.283 +static const vorbis_mapping_template _mapres_template_44_stereo[]={
   1.284 +  { _map_nominal, _res_44s_n1 }, /* -1 */
   1.285 +  { _map_nominal, _res_44s_0 }, /* 0 */
   1.286 +  { _map_nominal, _res_44s_1 }, /* 1 */
   1.287 +  { _map_nominal, _res_44s_2 }, /* 2 */
   1.288 +  { _map_nominal, _res_44s_3 }, /* 3 */
   1.289 +  { _map_nominal, _res_44s_4 }, /* 4 */
   1.290 +  { _map_nominal, _res_44s_5 }, /* 5 */
   1.291 +  { _map_nominal, _res_44s_6 }, /* 6 */
   1.292 +  { _map_nominal, _res_44s_7 }, /* 7 */
   1.293 +  { _map_nominal, _res_44s_8 }, /* 8 */
   1.294 +  { _map_nominal, _res_44s_9 }, /* 9 */
   1.295 +};