residue_16.h 4.72 KB
Newer Older
Monty's avatar
 
Monty committed
1 2
/********************************************************************
 *                                                                  *
3
 * This FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
Monty's avatar
 
Monty committed
4 5 6 7
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
 *                                                                  *
Monty's avatar
Monty committed
8
 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009             *
9
 * by the Xiph.Org Foundation http://www.xiph.org/                  *
Monty's avatar
 
Monty committed
10 11 12 13 14 15 16 17 18
 *                                                                  *
 ********************************************************************

 function: toplevel residue templates 16/22kHz

 ********************************************************************/

/***** residue backends *********************************************/

19
static const static_bookblock _resbook_16s_0={
Monty's avatar
 
Monty committed
20
  {
Monty's avatar
 
Monty committed
21 22
    {0},
    {0,0,&_16c0_s_p1_0},
23
    {0},
Monty's avatar
 
Monty committed
24 25 26 27 28 29
    {0,0,&_16c0_s_p3_0},
    {0,0,&_16c0_s_p4_0},
    {0,0,&_16c0_s_p5_0},
    {0,0,&_16c0_s_p6_0},
    {&_16c0_s_p7_0,&_16c0_s_p7_1},
    {&_16c0_s_p8_0,&_16c0_s_p8_1},
Monty's avatar
 
Monty committed
30 31 32
    {&_16c0_s_p9_0,&_16c0_s_p9_1,&_16c0_s_p9_2}
   }
};
33
static const static_bookblock _resbook_16s_1={
Monty's avatar
 
Monty committed
34
  {
Monty's avatar
 
Monty committed
35 36
    {0},
    {0,0,&_16c1_s_p1_0},
37
    {0},
Monty's avatar
 
Monty committed
38 39 40 41 42 43
    {0,0,&_16c1_s_p3_0},
    {0,0,&_16c1_s_p4_0},
    {0,0,&_16c1_s_p5_0},
    {0,0,&_16c1_s_p6_0},
    {&_16c1_s_p7_0,&_16c1_s_p7_1},
    {&_16c1_s_p8_0,&_16c1_s_p8_1},
Monty's avatar
 
Monty committed
44 45 46
    {&_16c1_s_p9_0,&_16c1_s_p9_1,&_16c1_s_p9_2}
   }
};
47
static const static_bookblock _resbook_16s_2={
Monty's avatar
 
Monty committed
48 49 50 51 52 53 54 55 56 57 58 59 60
  {
    {0},
    {0,0,&_16c2_s_p1_0},
    {0,0,&_16c2_s_p2_0},
    {0,0,&_16c2_s_p3_0},
    {0,0,&_16c2_s_p4_0},
    {&_16c2_s_p5_0,&_16c2_s_p5_1},
    {&_16c2_s_p6_0,&_16c2_s_p6_1},
    {&_16c2_s_p7_0,&_16c2_s_p7_1},
    {&_16c2_s_p8_0,&_16c2_s_p8_1},
    {&_16c2_s_p9_0,&_16c2_s_p9_1,&_16c2_s_p9_2}
   }
};
Monty's avatar
 
Monty committed
61

62
static const vorbis_residue_template _res_16s_0[]={
Monty's avatar
Monty committed
63
  {2,0,32,  &_residue_44_mid,
Monty's avatar
 
Monty committed
64
   &_huff_book__16c0_s_single,&_huff_book__16c0_s_single,
Monty's avatar
 
Monty committed
65
   &_resbook_16s_0,&_resbook_16s_0},
Monty's avatar
 
Monty committed
66
};
67
static const vorbis_residue_template _res_16s_1[]={
Monty's avatar
Monty committed
68
  {2,0,32,  &_residue_44_mid,
Monty's avatar
 
Monty committed
69 70
   &_huff_book__16c1_s_short,&_huff_book__16c1_s_short,
   &_resbook_16s_1,&_resbook_16s_1},
Monty's avatar
Monty committed
71

Monty's avatar
Monty committed
72
  {2,0,32,  &_residue_44_mid,
Monty's avatar
 
Monty committed
73 74 75
   &_huff_book__16c1_s_long,&_huff_book__16c1_s_long,
   &_resbook_16s_1,&_resbook_16s_1}
};
76
static const vorbis_residue_template _res_16s_2[]={
Monty's avatar
Monty committed
77
  {2,0,32,  &_residue_44_high,
Monty's avatar
 
Monty committed
78 79
   &_huff_book__16c2_s_short,&_huff_book__16c2_s_short,
   &_resbook_16s_2,&_resbook_16s_2},
Monty's avatar
Monty committed
80

Monty's avatar
Monty committed
81
  {2,0,32,  &_residue_44_high,
Monty's avatar
 
Monty committed
82 83 84
   &_huff_book__16c2_s_long,&_huff_book__16c2_s_long,
   &_resbook_16s_2,&_resbook_16s_2}
};
Monty's avatar
 
Monty committed
85

86
static const vorbis_mapping_template _mapres_template_16_stereo[3]={
Monty's avatar
 
Monty committed
87 88 89 90 91
  { _map_nominal, _res_16s_0 }, /* 0 */
  { _map_nominal, _res_16s_1 }, /* 1 */
  { _map_nominal, _res_16s_2 }, /* 2 */
};

92
static const static_bookblock _resbook_16u_0={
Monty's avatar
 
Monty committed
93 94 95 96 97 98 99 100 101 102
  {
    {0},
    {0,0,&_16u0__p1_0},
    {0,0,&_16u0__p2_0},
    {0,0,&_16u0__p3_0},
    {0,0,&_16u0__p4_0},
    {0,0,&_16u0__p5_0},
    {&_16u0__p6_0,&_16u0__p6_1},
    {&_16u0__p7_0,&_16u0__p7_1,&_16u0__p7_2}
   }
Monty's avatar
 
Monty committed
103
};
104
static const static_bookblock _resbook_16u_1={
Monty's avatar
 
Monty committed
105 106 107 108 109 110 111 112 113 114 115 116 117
  {
    {0},
    {0,0,&_16u1__p1_0},
    {0,0,&_16u1__p2_0},
    {0,0,&_16u1__p3_0},
    {0,0,&_16u1__p4_0},
    {0,0,&_16u1__p5_0},
    {0,0,&_16u1__p6_0},
    {&_16u1__p7_0,&_16u1__p7_1},
    {&_16u1__p8_0,&_16u1__p8_1},
    {&_16u1__p9_0,&_16u1__p9_1,&_16u1__p9_2}
   }
};
118
static const static_bookblock _resbook_16u_2={
Monty's avatar
 
Monty committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132
  {
    {0},
    {0,0,&_16u2_p1_0},
    {0,0,&_16u2_p2_0},
    {0,0,&_16u2_p3_0},
    {0,0,&_16u2_p4_0},
    {&_16u2_p5_0,&_16u2_p5_1},
    {&_16u2_p6_0,&_16u2_p6_1},
    {&_16u2_p7_0,&_16u2_p7_1},
    {&_16u2_p8_0,&_16u2_p8_1},
    {&_16u2_p9_0,&_16u2_p9_1,&_16u2_p9_2}
   }
};

133
static const vorbis_residue_template _res_16u_0[]={
Monty's avatar
Monty committed
134
  {1,0,32,  &_residue_44_low_un,
Monty's avatar
 
Monty committed
135 136 137
   &_huff_book__16u0__single,&_huff_book__16u0__single,
   &_resbook_16u_0,&_resbook_16u_0},
};
138
static const vorbis_residue_template _res_16u_1[]={
Monty's avatar
Monty committed
139
  {1,0,32,  &_residue_44_mid_un,
Monty's avatar
 
Monty committed
140 141
   &_huff_book__16u1__short,&_huff_book__16u1__short,
   &_resbook_16u_1,&_resbook_16u_1},
Monty's avatar
Monty committed
142

Monty's avatar
Monty committed
143
  {1,0,32,  &_residue_44_mid_un,
Monty's avatar
 
Monty committed
144 145 146
   &_huff_book__16u1__long,&_huff_book__16u1__long,
   &_resbook_16u_1,&_resbook_16u_1}
};
147
static const vorbis_residue_template _res_16u_2[]={
Monty's avatar
Monty committed
148
  {1,0,32,  &_residue_44_hi_un,
Monty's avatar
 
Monty committed
149 150
   &_huff_book__16u2__short,&_huff_book__16u2__short,
   &_resbook_16u_2,&_resbook_16u_2},
Monty's avatar
Monty committed
151

Monty's avatar
Monty committed
152
  {1,0,32,  &_residue_44_hi_un,
Monty's avatar
 
Monty committed
153 154 155 156 157
   &_huff_book__16u2__long,&_huff_book__16u2__long,
   &_resbook_16u_2,&_resbook_16u_2}
};


158
static const vorbis_mapping_template _mapres_template_16_uncoupled[3]={
Monty's avatar
 
Monty committed
159 160 161
  { _map_nominal_u, _res_16u_0 }, /* 0 */
  { _map_nominal_u, _res_16u_1 }, /* 1 */
  { _map_nominal_u, _res_16u_2 }, /* 2 */
Monty's avatar
 
Monty committed
162
};