dbf-halloween2015
diff libs/vorbis/modes/residue_8.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_8.h Sun Nov 01 00:36:56 2015 +0200 1.3 @@ -0,0 +1,109 @@ 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-2007 * 1.12 + * by the Xiph.Org Foundation http://www.xiph.org/ * 1.13 + * * 1.14 + ******************************************************************** 1.15 + 1.16 + function: toplevel residue templates 8/11kHz 1.17 + last mod: $Id: residue_8.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 + 1.24 +/***** residue backends *********************************************/ 1.25 + 1.26 +static const static_bookblock _resbook_8s_0={ 1.27 + { 1.28 + {0}, 1.29 + {0,0,&_8c0_s_p1_0}, 1.30 + {0}, 1.31 + {0,0,&_8c0_s_p3_0}, 1.32 + {0,0,&_8c0_s_p4_0}, 1.33 + {0,0,&_8c0_s_p5_0}, 1.34 + {0,0,&_8c0_s_p6_0}, 1.35 + {&_8c0_s_p7_0,&_8c0_s_p7_1}, 1.36 + {&_8c0_s_p8_0,&_8c0_s_p8_1}, 1.37 + {&_8c0_s_p9_0,&_8c0_s_p9_1,&_8c0_s_p9_2} 1.38 + } 1.39 +}; 1.40 +static const static_bookblock _resbook_8s_1={ 1.41 + { 1.42 + {0}, 1.43 + {0,0,&_8c1_s_p1_0}, 1.44 + {0}, 1.45 + {0,0,&_8c1_s_p3_0}, 1.46 + {0,0,&_8c1_s_p4_0}, 1.47 + {0,0,&_8c1_s_p5_0}, 1.48 + {0,0,&_8c1_s_p6_0}, 1.49 + {&_8c1_s_p7_0,&_8c1_s_p7_1}, 1.50 + {&_8c1_s_p8_0,&_8c1_s_p8_1}, 1.51 + {&_8c1_s_p9_0,&_8c1_s_p9_1,&_8c1_s_p9_2} 1.52 + } 1.53 +}; 1.54 + 1.55 +static const vorbis_residue_template _res_8s_0[]={ 1.56 + {2,0,32, &_residue_44_mid, 1.57 + &_huff_book__8c0_s_single,&_huff_book__8c0_s_single, 1.58 + &_resbook_8s_0,&_resbook_8s_0}, 1.59 +}; 1.60 +static const vorbis_residue_template _res_8s_1[]={ 1.61 + {2,0,32, &_residue_44_mid, 1.62 + &_huff_book__8c1_s_single,&_huff_book__8c1_s_single, 1.63 + &_resbook_8s_1,&_resbook_8s_1}, 1.64 +}; 1.65 + 1.66 +static const vorbis_mapping_template _mapres_template_8_stereo[2]={ 1.67 + { _map_nominal, _res_8s_0 }, /* 0 */ 1.68 + { _map_nominal, _res_8s_1 }, /* 1 */ 1.69 +}; 1.70 + 1.71 +static const static_bookblock _resbook_8u_0={ 1.72 + { 1.73 + {0}, 1.74 + {0,0,&_8u0__p1_0}, 1.75 + {0,0,&_8u0__p2_0}, 1.76 + {0,0,&_8u0__p3_0}, 1.77 + {0,0,&_8u0__p4_0}, 1.78 + {0,0,&_8u0__p5_0}, 1.79 + {&_8u0__p6_0,&_8u0__p6_1}, 1.80 + {&_8u0__p7_0,&_8u0__p7_1,&_8u0__p7_2} 1.81 + } 1.82 +}; 1.83 +static const static_bookblock _resbook_8u_1={ 1.84 + { 1.85 + {0}, 1.86 + {0,0,&_8u1__p1_0}, 1.87 + {0,0,&_8u1__p2_0}, 1.88 + {0,0,&_8u1__p3_0}, 1.89 + {0,0,&_8u1__p4_0}, 1.90 + {0,0,&_8u1__p5_0}, 1.91 + {0,0,&_8u1__p6_0}, 1.92 + {&_8u1__p7_0,&_8u1__p7_1}, 1.93 + {&_8u1__p8_0,&_8u1__p8_1}, 1.94 + {&_8u1__p9_0,&_8u1__p9_1,&_8u1__p9_2} 1.95 + } 1.96 +}; 1.97 + 1.98 +static const vorbis_residue_template _res_8u_0[]={ 1.99 + {1,0,32, &_residue_44_low_un, 1.100 + &_huff_book__8u0__single,&_huff_book__8u0__single, 1.101 + &_resbook_8u_0,&_resbook_8u_0}, 1.102 +}; 1.103 +static const vorbis_residue_template _res_8u_1[]={ 1.104 + {1,0,32, &_residue_44_mid_un, 1.105 + &_huff_book__8u1__single,&_huff_book__8u1__single, 1.106 + &_resbook_8u_1,&_resbook_8u_1}, 1.107 +}; 1.108 + 1.109 +static const vorbis_mapping_template _mapres_template_8_uncoupled[2]={ 1.110 + { _map_nominal_u, _res_8u_0 }, /* 0 */ 1.111 + { _map_nominal_u, _res_8u_1 }, /* 1 */ 1.112 +};