dbf-halloween2015

annotate libs/vorbis/modes/residue_16.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
rev   line source
nuclear@1 1 /********************************************************************
nuclear@1 2 * *
nuclear@1 3 * This FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
nuclear@1 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
nuclear@1 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
nuclear@1 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
nuclear@1 7 * *
nuclear@1 8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
nuclear@1 9 * by the Xiph.Org Foundation http://www.xiph.org/ *
nuclear@1 10 * *
nuclear@1 11 ********************************************************************
nuclear@1 12
nuclear@1 13 function: toplevel residue templates 16/22kHz
nuclear@1 14 last mod: $Id: residue_16.h 16962 2010-03-11 07:30:34Z xiphmont $
nuclear@1 15
nuclear@1 16 ********************************************************************/
nuclear@1 17
nuclear@1 18 /***** residue backends *********************************************/
nuclear@1 19
nuclear@1 20 static const static_bookblock _resbook_16s_0={
nuclear@1 21 {
nuclear@1 22 {0},
nuclear@1 23 {0,0,&_16c0_s_p1_0},
nuclear@1 24 {0},
nuclear@1 25 {0,0,&_16c0_s_p3_0},
nuclear@1 26 {0,0,&_16c0_s_p4_0},
nuclear@1 27 {0,0,&_16c0_s_p5_0},
nuclear@1 28 {0,0,&_16c0_s_p6_0},
nuclear@1 29 {&_16c0_s_p7_0,&_16c0_s_p7_1},
nuclear@1 30 {&_16c0_s_p8_0,&_16c0_s_p8_1},
nuclear@1 31 {&_16c0_s_p9_0,&_16c0_s_p9_1,&_16c0_s_p9_2}
nuclear@1 32 }
nuclear@1 33 };
nuclear@1 34 static const static_bookblock _resbook_16s_1={
nuclear@1 35 {
nuclear@1 36 {0},
nuclear@1 37 {0,0,&_16c1_s_p1_0},
nuclear@1 38 {0},
nuclear@1 39 {0,0,&_16c1_s_p3_0},
nuclear@1 40 {0,0,&_16c1_s_p4_0},
nuclear@1 41 {0,0,&_16c1_s_p5_0},
nuclear@1 42 {0,0,&_16c1_s_p6_0},
nuclear@1 43 {&_16c1_s_p7_0,&_16c1_s_p7_1},
nuclear@1 44 {&_16c1_s_p8_0,&_16c1_s_p8_1},
nuclear@1 45 {&_16c1_s_p9_0,&_16c1_s_p9_1,&_16c1_s_p9_2}
nuclear@1 46 }
nuclear@1 47 };
nuclear@1 48 static const static_bookblock _resbook_16s_2={
nuclear@1 49 {
nuclear@1 50 {0},
nuclear@1 51 {0,0,&_16c2_s_p1_0},
nuclear@1 52 {0,0,&_16c2_s_p2_0},
nuclear@1 53 {0,0,&_16c2_s_p3_0},
nuclear@1 54 {0,0,&_16c2_s_p4_0},
nuclear@1 55 {&_16c2_s_p5_0,&_16c2_s_p5_1},
nuclear@1 56 {&_16c2_s_p6_0,&_16c2_s_p6_1},
nuclear@1 57 {&_16c2_s_p7_0,&_16c2_s_p7_1},
nuclear@1 58 {&_16c2_s_p8_0,&_16c2_s_p8_1},
nuclear@1 59 {&_16c2_s_p9_0,&_16c2_s_p9_1,&_16c2_s_p9_2}
nuclear@1 60 }
nuclear@1 61 };
nuclear@1 62
nuclear@1 63 static const vorbis_residue_template _res_16s_0[]={
nuclear@1 64 {2,0,32, &_residue_44_mid,
nuclear@1 65 &_huff_book__16c0_s_single,&_huff_book__16c0_s_single,
nuclear@1 66 &_resbook_16s_0,&_resbook_16s_0},
nuclear@1 67 };
nuclear@1 68 static const vorbis_residue_template _res_16s_1[]={
nuclear@1 69 {2,0,32, &_residue_44_mid,
nuclear@1 70 &_huff_book__16c1_s_short,&_huff_book__16c1_s_short,
nuclear@1 71 &_resbook_16s_1,&_resbook_16s_1},
nuclear@1 72
nuclear@1 73 {2,0,32, &_residue_44_mid,
nuclear@1 74 &_huff_book__16c1_s_long,&_huff_book__16c1_s_long,
nuclear@1 75 &_resbook_16s_1,&_resbook_16s_1}
nuclear@1 76 };
nuclear@1 77 static const vorbis_residue_template _res_16s_2[]={
nuclear@1 78 {2,0,32, &_residue_44_high,
nuclear@1 79 &_huff_book__16c2_s_short,&_huff_book__16c2_s_short,
nuclear@1 80 &_resbook_16s_2,&_resbook_16s_2},
nuclear@1 81
nuclear@1 82 {2,0,32, &_residue_44_high,
nuclear@1 83 &_huff_book__16c2_s_long,&_huff_book__16c2_s_long,
nuclear@1 84 &_resbook_16s_2,&_resbook_16s_2}
nuclear@1 85 };
nuclear@1 86
nuclear@1 87 static const vorbis_mapping_template _mapres_template_16_stereo[3]={
nuclear@1 88 { _map_nominal, _res_16s_0 }, /* 0 */
nuclear@1 89 { _map_nominal, _res_16s_1 }, /* 1 */
nuclear@1 90 { _map_nominal, _res_16s_2 }, /* 2 */
nuclear@1 91 };
nuclear@1 92
nuclear@1 93 static const static_bookblock _resbook_16u_0={
nuclear@1 94 {
nuclear@1 95 {0},
nuclear@1 96 {0,0,&_16u0__p1_0},
nuclear@1 97 {0,0,&_16u0__p2_0},
nuclear@1 98 {0,0,&_16u0__p3_0},
nuclear@1 99 {0,0,&_16u0__p4_0},
nuclear@1 100 {0,0,&_16u0__p5_0},
nuclear@1 101 {&_16u0__p6_0,&_16u0__p6_1},
nuclear@1 102 {&_16u0__p7_0,&_16u0__p7_1,&_16u0__p7_2}
nuclear@1 103 }
nuclear@1 104 };
nuclear@1 105 static const static_bookblock _resbook_16u_1={
nuclear@1 106 {
nuclear@1 107 {0},
nuclear@1 108 {0,0,&_16u1__p1_0},
nuclear@1 109 {0,0,&_16u1__p2_0},
nuclear@1 110 {0,0,&_16u1__p3_0},
nuclear@1 111 {0,0,&_16u1__p4_0},
nuclear@1 112 {0,0,&_16u1__p5_0},
nuclear@1 113 {0,0,&_16u1__p6_0},
nuclear@1 114 {&_16u1__p7_0,&_16u1__p7_1},
nuclear@1 115 {&_16u1__p8_0,&_16u1__p8_1},
nuclear@1 116 {&_16u1__p9_0,&_16u1__p9_1,&_16u1__p9_2}
nuclear@1 117 }
nuclear@1 118 };
nuclear@1 119 static const static_bookblock _resbook_16u_2={
nuclear@1 120 {
nuclear@1 121 {0},
nuclear@1 122 {0,0,&_16u2_p1_0},
nuclear@1 123 {0,0,&_16u2_p2_0},
nuclear@1 124 {0,0,&_16u2_p3_0},
nuclear@1 125 {0,0,&_16u2_p4_0},
nuclear@1 126 {&_16u2_p5_0,&_16u2_p5_1},
nuclear@1 127 {&_16u2_p6_0,&_16u2_p6_1},
nuclear@1 128 {&_16u2_p7_0,&_16u2_p7_1},
nuclear@1 129 {&_16u2_p8_0,&_16u2_p8_1},
nuclear@1 130 {&_16u2_p9_0,&_16u2_p9_1,&_16u2_p9_2}
nuclear@1 131 }
nuclear@1 132 };
nuclear@1 133
nuclear@1 134 static const vorbis_residue_template _res_16u_0[]={
nuclear@1 135 {1,0,32, &_residue_44_low_un,
nuclear@1 136 &_huff_book__16u0__single,&_huff_book__16u0__single,
nuclear@1 137 &_resbook_16u_0,&_resbook_16u_0},
nuclear@1 138 };
nuclear@1 139 static const vorbis_residue_template _res_16u_1[]={
nuclear@1 140 {1,0,32, &_residue_44_mid_un,
nuclear@1 141 &_huff_book__16u1__short,&_huff_book__16u1__short,
nuclear@1 142 &_resbook_16u_1,&_resbook_16u_1},
nuclear@1 143
nuclear@1 144 {1,0,32, &_residue_44_mid_un,
nuclear@1 145 &_huff_book__16u1__long,&_huff_book__16u1__long,
nuclear@1 146 &_resbook_16u_1,&_resbook_16u_1}
nuclear@1 147 };
nuclear@1 148 static const vorbis_residue_template _res_16u_2[]={
nuclear@1 149 {1,0,32, &_residue_44_hi_un,
nuclear@1 150 &_huff_book__16u2__short,&_huff_book__16u2__short,
nuclear@1 151 &_resbook_16u_2,&_resbook_16u_2},
nuclear@1 152
nuclear@1 153 {1,0,32, &_residue_44_hi_un,
nuclear@1 154 &_huff_book__16u2__long,&_huff_book__16u2__long,
nuclear@1 155 &_resbook_16u_2,&_resbook_16u_2}
nuclear@1 156 };
nuclear@1 157
nuclear@1 158
nuclear@1 159 static const vorbis_mapping_template _mapres_template_16_uncoupled[3]={
nuclear@1 160 { _map_nominal_u, _res_16u_0 }, /* 0 */
nuclear@1 161 { _map_nominal_u, _res_16u_1 }, /* 1 */
nuclear@1 162 { _map_nominal_u, _res_16u_2 }, /* 2 */
nuclear@1 163 };