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