vrshoot
diff libs/vorbis/modes/residue_16.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/vorbis/modes/residue_16.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,163 @@ 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 16/22kHz 1.17 + last mod: $Id: residue_16.h 16962 2010-03-11 07:30:34Z xiphmont $ 1.18 + 1.19 + ********************************************************************/ 1.20 + 1.21 +/***** residue backends *********************************************/ 1.22 + 1.23 +static const static_bookblock _resbook_16s_0={ 1.24 + { 1.25 + {0}, 1.26 + {0,0,&_16c0_s_p1_0}, 1.27 + {0}, 1.28 + {0,0,&_16c0_s_p3_0}, 1.29 + {0,0,&_16c0_s_p4_0}, 1.30 + {0,0,&_16c0_s_p5_0}, 1.31 + {0,0,&_16c0_s_p6_0}, 1.32 + {&_16c0_s_p7_0,&_16c0_s_p7_1}, 1.33 + {&_16c0_s_p8_0,&_16c0_s_p8_1}, 1.34 + {&_16c0_s_p9_0,&_16c0_s_p9_1,&_16c0_s_p9_2} 1.35 + } 1.36 +}; 1.37 +static const static_bookblock _resbook_16s_1={ 1.38 + { 1.39 + {0}, 1.40 + {0,0,&_16c1_s_p1_0}, 1.41 + {0}, 1.42 + {0,0,&_16c1_s_p3_0}, 1.43 + {0,0,&_16c1_s_p4_0}, 1.44 + {0,0,&_16c1_s_p5_0}, 1.45 + {0,0,&_16c1_s_p6_0}, 1.46 + {&_16c1_s_p7_0,&_16c1_s_p7_1}, 1.47 + {&_16c1_s_p8_0,&_16c1_s_p8_1}, 1.48 + {&_16c1_s_p9_0,&_16c1_s_p9_1,&_16c1_s_p9_2} 1.49 + } 1.50 +}; 1.51 +static const static_bookblock _resbook_16s_2={ 1.52 + { 1.53 + {0}, 1.54 + {0,0,&_16c2_s_p1_0}, 1.55 + {0,0,&_16c2_s_p2_0}, 1.56 + {0,0,&_16c2_s_p3_0}, 1.57 + {0,0,&_16c2_s_p4_0}, 1.58 + {&_16c2_s_p5_0,&_16c2_s_p5_1}, 1.59 + {&_16c2_s_p6_0,&_16c2_s_p6_1}, 1.60 + {&_16c2_s_p7_0,&_16c2_s_p7_1}, 1.61 + {&_16c2_s_p8_0,&_16c2_s_p8_1}, 1.62 + {&_16c2_s_p9_0,&_16c2_s_p9_1,&_16c2_s_p9_2} 1.63 + } 1.64 +}; 1.65 + 1.66 +static const vorbis_residue_template _res_16s_0[]={ 1.67 + {2,0,32, &_residue_44_mid, 1.68 + &_huff_book__16c0_s_single,&_huff_book__16c0_s_single, 1.69 + &_resbook_16s_0,&_resbook_16s_0}, 1.70 +}; 1.71 +static const vorbis_residue_template _res_16s_1[]={ 1.72 + {2,0,32, &_residue_44_mid, 1.73 + &_huff_book__16c1_s_short,&_huff_book__16c1_s_short, 1.74 + &_resbook_16s_1,&_resbook_16s_1}, 1.75 + 1.76 + {2,0,32, &_residue_44_mid, 1.77 + &_huff_book__16c1_s_long,&_huff_book__16c1_s_long, 1.78 + &_resbook_16s_1,&_resbook_16s_1} 1.79 +}; 1.80 +static const vorbis_residue_template _res_16s_2[]={ 1.81 + {2,0,32, &_residue_44_high, 1.82 + &_huff_book__16c2_s_short,&_huff_book__16c2_s_short, 1.83 + &_resbook_16s_2,&_resbook_16s_2}, 1.84 + 1.85 + {2,0,32, &_residue_44_high, 1.86 + &_huff_book__16c2_s_long,&_huff_book__16c2_s_long, 1.87 + &_resbook_16s_2,&_resbook_16s_2} 1.88 +}; 1.89 + 1.90 +static const vorbis_mapping_template _mapres_template_16_stereo[3]={ 1.91 + { _map_nominal, _res_16s_0 }, /* 0 */ 1.92 + { _map_nominal, _res_16s_1 }, /* 1 */ 1.93 + { _map_nominal, _res_16s_2 }, /* 2 */ 1.94 +}; 1.95 + 1.96 +static const static_bookblock _resbook_16u_0={ 1.97 + { 1.98 + {0}, 1.99 + {0,0,&_16u0__p1_0}, 1.100 + {0,0,&_16u0__p2_0}, 1.101 + {0,0,&_16u0__p3_0}, 1.102 + {0,0,&_16u0__p4_0}, 1.103 + {0,0,&_16u0__p5_0}, 1.104 + {&_16u0__p6_0,&_16u0__p6_1}, 1.105 + {&_16u0__p7_0,&_16u0__p7_1,&_16u0__p7_2} 1.106 + } 1.107 +}; 1.108 +static const static_bookblock _resbook_16u_1={ 1.109 + { 1.110 + {0}, 1.111 + {0,0,&_16u1__p1_0}, 1.112 + {0,0,&_16u1__p2_0}, 1.113 + {0,0,&_16u1__p3_0}, 1.114 + {0,0,&_16u1__p4_0}, 1.115 + {0,0,&_16u1__p5_0}, 1.116 + {0,0,&_16u1__p6_0}, 1.117 + {&_16u1__p7_0,&_16u1__p7_1}, 1.118 + {&_16u1__p8_0,&_16u1__p8_1}, 1.119 + {&_16u1__p9_0,&_16u1__p9_1,&_16u1__p9_2} 1.120 + } 1.121 +}; 1.122 +static const static_bookblock _resbook_16u_2={ 1.123 + { 1.124 + {0}, 1.125 + {0,0,&_16u2_p1_0}, 1.126 + {0,0,&_16u2_p2_0}, 1.127 + {0,0,&_16u2_p3_0}, 1.128 + {0,0,&_16u2_p4_0}, 1.129 + {&_16u2_p5_0,&_16u2_p5_1}, 1.130 + {&_16u2_p6_0,&_16u2_p6_1}, 1.131 + {&_16u2_p7_0,&_16u2_p7_1}, 1.132 + {&_16u2_p8_0,&_16u2_p8_1}, 1.133 + {&_16u2_p9_0,&_16u2_p9_1,&_16u2_p9_2} 1.134 + } 1.135 +}; 1.136 + 1.137 +static const vorbis_residue_template _res_16u_0[]={ 1.138 + {1,0,32, &_residue_44_low_un, 1.139 + &_huff_book__16u0__single,&_huff_book__16u0__single, 1.140 + &_resbook_16u_0,&_resbook_16u_0}, 1.141 +}; 1.142 +static const vorbis_residue_template _res_16u_1[]={ 1.143 + {1,0,32, &_residue_44_mid_un, 1.144 + &_huff_book__16u1__short,&_huff_book__16u1__short, 1.145 + &_resbook_16u_1,&_resbook_16u_1}, 1.146 + 1.147 + {1,0,32, &_residue_44_mid_un, 1.148 + &_huff_book__16u1__long,&_huff_book__16u1__long, 1.149 + &_resbook_16u_1,&_resbook_16u_1} 1.150 +}; 1.151 +static const vorbis_residue_template _res_16u_2[]={ 1.152 + {1,0,32, &_residue_44_hi_un, 1.153 + &_huff_book__16u2__short,&_huff_book__16u2__short, 1.154 + &_resbook_16u_2,&_resbook_16u_2}, 1.155 + 1.156 + {1,0,32, &_residue_44_hi_un, 1.157 + &_huff_book__16u2__long,&_huff_book__16u2__long, 1.158 + &_resbook_16u_2,&_resbook_16u_2} 1.159 +}; 1.160 + 1.161 + 1.162 +static const vorbis_mapping_template _mapres_template_16_uncoupled[3]={ 1.163 + { _map_nominal_u, _res_16u_0 }, /* 0 */ 1.164 + { _map_nominal_u, _res_16u_1 }, /* 1 */ 1.165 + { _map_nominal_u, _res_16u_2 }, /* 2 */ 1.166 +};