rev |
line source |
nuclear@0
|
1 /********************************************************************
|
nuclear@0
|
2 * *
|
nuclear@0
|
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
|
nuclear@0
|
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
|
nuclear@0
|
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
|
nuclear@0
|
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
|
nuclear@0
|
7 * *
|
nuclear@0
|
8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
|
nuclear@0
|
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
|
nuclear@0
|
10 * *
|
nuclear@0
|
11 ********************************************************************
|
nuclear@0
|
12
|
nuclear@0
|
13 function: toplevel residue templates 8/11kHz
|
nuclear@0
|
14 last mod: $Id: residue_8.h 16962 2010-03-11 07:30:34Z xiphmont $
|
nuclear@0
|
15
|
nuclear@0
|
16 ********************************************************************/
|
nuclear@0
|
17
|
nuclear@0
|
18 #include "vorbis/codec.h"
|
nuclear@0
|
19 #include "backends.h"
|
nuclear@0
|
20
|
nuclear@0
|
21 /***** residue backends *********************************************/
|
nuclear@0
|
22
|
nuclear@0
|
23 static const static_bookblock _resbook_8s_0={
|
nuclear@0
|
24 {
|
nuclear@0
|
25 {0},
|
nuclear@0
|
26 {0,0,&_8c0_s_p1_0},
|
nuclear@0
|
27 {0},
|
nuclear@0
|
28 {0,0,&_8c0_s_p3_0},
|
nuclear@0
|
29 {0,0,&_8c0_s_p4_0},
|
nuclear@0
|
30 {0,0,&_8c0_s_p5_0},
|
nuclear@0
|
31 {0,0,&_8c0_s_p6_0},
|
nuclear@0
|
32 {&_8c0_s_p7_0,&_8c0_s_p7_1},
|
nuclear@0
|
33 {&_8c0_s_p8_0,&_8c0_s_p8_1},
|
nuclear@0
|
34 {&_8c0_s_p9_0,&_8c0_s_p9_1,&_8c0_s_p9_2}
|
nuclear@0
|
35 }
|
nuclear@0
|
36 };
|
nuclear@0
|
37 static const static_bookblock _resbook_8s_1={
|
nuclear@0
|
38 {
|
nuclear@0
|
39 {0},
|
nuclear@0
|
40 {0,0,&_8c1_s_p1_0},
|
nuclear@0
|
41 {0},
|
nuclear@0
|
42 {0,0,&_8c1_s_p3_0},
|
nuclear@0
|
43 {0,0,&_8c1_s_p4_0},
|
nuclear@0
|
44 {0,0,&_8c1_s_p5_0},
|
nuclear@0
|
45 {0,0,&_8c1_s_p6_0},
|
nuclear@0
|
46 {&_8c1_s_p7_0,&_8c1_s_p7_1},
|
nuclear@0
|
47 {&_8c1_s_p8_0,&_8c1_s_p8_1},
|
nuclear@0
|
48 {&_8c1_s_p9_0,&_8c1_s_p9_1,&_8c1_s_p9_2}
|
nuclear@0
|
49 }
|
nuclear@0
|
50 };
|
nuclear@0
|
51
|
nuclear@0
|
52 static const vorbis_residue_template _res_8s_0[]={
|
nuclear@0
|
53 {2,0,32, &_residue_44_mid,
|
nuclear@0
|
54 &_huff_book__8c0_s_single,&_huff_book__8c0_s_single,
|
nuclear@0
|
55 &_resbook_8s_0,&_resbook_8s_0},
|
nuclear@0
|
56 };
|
nuclear@0
|
57 static const vorbis_residue_template _res_8s_1[]={
|
nuclear@0
|
58 {2,0,32, &_residue_44_mid,
|
nuclear@0
|
59 &_huff_book__8c1_s_single,&_huff_book__8c1_s_single,
|
nuclear@0
|
60 &_resbook_8s_1,&_resbook_8s_1},
|
nuclear@0
|
61 };
|
nuclear@0
|
62
|
nuclear@0
|
63 static const vorbis_mapping_template _mapres_template_8_stereo[2]={
|
nuclear@0
|
64 { _map_nominal, _res_8s_0 }, /* 0 */
|
nuclear@0
|
65 { _map_nominal, _res_8s_1 }, /* 1 */
|
nuclear@0
|
66 };
|
nuclear@0
|
67
|
nuclear@0
|
68 static const static_bookblock _resbook_8u_0={
|
nuclear@0
|
69 {
|
nuclear@0
|
70 {0},
|
nuclear@0
|
71 {0,0,&_8u0__p1_0},
|
nuclear@0
|
72 {0,0,&_8u0__p2_0},
|
nuclear@0
|
73 {0,0,&_8u0__p3_0},
|
nuclear@0
|
74 {0,0,&_8u0__p4_0},
|
nuclear@0
|
75 {0,0,&_8u0__p5_0},
|
nuclear@0
|
76 {&_8u0__p6_0,&_8u0__p6_1},
|
nuclear@0
|
77 {&_8u0__p7_0,&_8u0__p7_1,&_8u0__p7_2}
|
nuclear@0
|
78 }
|
nuclear@0
|
79 };
|
nuclear@0
|
80 static const static_bookblock _resbook_8u_1={
|
nuclear@0
|
81 {
|
nuclear@0
|
82 {0},
|
nuclear@0
|
83 {0,0,&_8u1__p1_0},
|
nuclear@0
|
84 {0,0,&_8u1__p2_0},
|
nuclear@0
|
85 {0,0,&_8u1__p3_0},
|
nuclear@0
|
86 {0,0,&_8u1__p4_0},
|
nuclear@0
|
87 {0,0,&_8u1__p5_0},
|
nuclear@0
|
88 {0,0,&_8u1__p6_0},
|
nuclear@0
|
89 {&_8u1__p7_0,&_8u1__p7_1},
|
nuclear@0
|
90 {&_8u1__p8_0,&_8u1__p8_1},
|
nuclear@0
|
91 {&_8u1__p9_0,&_8u1__p9_1,&_8u1__p9_2}
|
nuclear@0
|
92 }
|
nuclear@0
|
93 };
|
nuclear@0
|
94
|
nuclear@0
|
95 static const vorbis_residue_template _res_8u_0[]={
|
nuclear@0
|
96 {1,0,32, &_residue_44_low_un,
|
nuclear@0
|
97 &_huff_book__8u0__single,&_huff_book__8u0__single,
|
nuclear@0
|
98 &_resbook_8u_0,&_resbook_8u_0},
|
nuclear@0
|
99 };
|
nuclear@0
|
100 static const vorbis_residue_template _res_8u_1[]={
|
nuclear@0
|
101 {1,0,32, &_residue_44_mid_un,
|
nuclear@0
|
102 &_huff_book__8u1__single,&_huff_book__8u1__single,
|
nuclear@0
|
103 &_resbook_8u_1,&_resbook_8u_1},
|
nuclear@0
|
104 };
|
nuclear@0
|
105
|
nuclear@0
|
106 static const vorbis_mapping_template _mapres_template_8_uncoupled[2]={
|
nuclear@0
|
107 { _map_nominal_u, _res_8u_0 }, /* 0 */
|
nuclear@0
|
108 { _map_nominal_u, _res_8u_1 }, /* 1 */
|
nuclear@0
|
109 };
|