gosu 0.7.45 → 0.7.46
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +6 -11
- data/Gosu/{ButtonsWin.hpp → Buttons.hpp} +91 -4
- data/Gosu/ButtonsMac.hpp +91 -4
- data/Gosu/Graphics.hpp +10 -0
- data/Gosu/ImageData.hpp +1 -0
- data/Gosu/Input.hpp +2 -3
- data/Gosu/Version.hpp +2 -2
- data/Gosu/Window.hpp +1 -1
- data/GosuImpl/Audio/AudioToolboxFile.hpp +4 -0
- data/GosuImpl/Graphics/BitmapApple.mm +5 -11
- data/GosuImpl/Graphics/ClipRectStack.hpp +2 -2
- data/GosuImpl/Graphics/Common.hpp +1 -1
- data/GosuImpl/Graphics/DrawOpQueue.hpp +30 -29
- data/GosuImpl/Graphics/Graphics.cpp +2 -3
- data/GosuImpl/Graphics/TextMac.cpp +9 -5
- data/GosuImpl/Graphics/TextTouch.mm +8 -4
- data/GosuImpl/Graphics/Texture.cpp +4 -1
- data/GosuImpl/InputMac.mm +24 -45
- data/GosuImpl/InputX.cpp +25 -39
- data/GosuImpl/RubyGosu.swg +11 -0
- data/GosuImpl/RubyGosu_wrap.cxx +109 -40
- data/GosuImpl/RubyGosu_wrap.h +1 -1
- data/GosuImpl/TextInputWin.cpp +1 -1
- data/GosuImpl/TextInputX.cpp +3 -1
- data/GosuImpl/WinMain.cpp +3 -4
- data/GosuImpl/WindowMac.mm +83 -73
- data/GosuImpl/WindowWin.cpp +65 -58
- data/dependencies/libogg/AUTHORS +4 -0
- data/dependencies/libogg/CHANGES +70 -0
- data/dependencies/libogg/COPYING +28 -0
- data/dependencies/libogg/include/ogg/ogg.h +209 -0
- data/dependencies/libogg/include/ogg/os_types.h +147 -0
- data/dependencies/libogg/src/bitwise.c +857 -0
- data/dependencies/libogg/src/framing.c +2089 -0
- data/dependencies/libvorbis/AUTHORS +3 -0
- data/dependencies/libvorbis/CHANGES +126 -0
- data/dependencies/libvorbis/COPYING +28 -0
- data/dependencies/libvorbis/include/vorbis/codec.h +243 -0
- data/dependencies/libvorbis/include/vorbis/vorbisenc.h +436 -0
- data/dependencies/libvorbis/include/vorbis/vorbisfile.h +206 -0
- data/dependencies/libvorbis/lib/analysis.c +120 -0
- data/dependencies/libvorbis/lib/backends.h +144 -0
- data/dependencies/libvorbis/lib/barkmel.c +64 -0
- data/dependencies/libvorbis/lib/bitrate.c +253 -0
- data/dependencies/libvorbis/lib/bitrate.h +59 -0
- data/dependencies/libvorbis/lib/block.c +1046 -0
- data/dependencies/libvorbis/lib/books/coupled/res_books_51.h +12257 -0
- data/dependencies/libvorbis/lib/books/coupled/res_books_stereo.h +15783 -0
- data/dependencies/libvorbis/lib/books/floor/floor_books.h +1547 -0
- data/dependencies/libvorbis/lib/books/uncoupled/res_books_uncoupled.h +7758 -0
- data/dependencies/libvorbis/lib/codebook.c +479 -0
- data/dependencies/libvorbis/lib/codebook.h +119 -0
- data/dependencies/libvorbis/lib/codec_internal.h +167 -0
- data/dependencies/libvorbis/lib/envelope.c +375 -0
- data/dependencies/libvorbis/lib/envelope.h +80 -0
- data/dependencies/libvorbis/lib/floor0.c +222 -0
- data/dependencies/libvorbis/lib/floor1.c +1099 -0
- data/dependencies/libvorbis/lib/highlevel.h +58 -0
- data/dependencies/libvorbis/lib/info.c +664 -0
- data/dependencies/libvorbis/lib/lookup.c +94 -0
- data/dependencies/libvorbis/lib/lookup.h +32 -0
- data/dependencies/libvorbis/lib/lookup_data.h +192 -0
- data/dependencies/libvorbis/lib/lpc.c +160 -0
- data/dependencies/libvorbis/lib/lpc.h +29 -0
- data/dependencies/libvorbis/lib/lsp.c +456 -0
- data/dependencies/libvorbis/lib/lsp.h +28 -0
- data/dependencies/libvorbis/lib/mapping0.c +816 -0
- data/dependencies/libvorbis/lib/masking.h +785 -0
- data/dependencies/libvorbis/lib/mdct.c +563 -0
- data/dependencies/libvorbis/lib/mdct.h +71 -0
- data/dependencies/libvorbis/lib/misc.h +57 -0
- data/dependencies/libvorbis/lib/modes/floor_all.h +260 -0
- data/dependencies/libvorbis/lib/modes/psych_11.h +51 -0
- data/dependencies/libvorbis/lib/modes/psych_16.h +133 -0
- data/dependencies/libvorbis/lib/modes/psych_44.h +642 -0
- data/dependencies/libvorbis/lib/modes/psych_8.h +101 -0
- data/dependencies/libvorbis/lib/modes/residue_16.h +163 -0
- data/dependencies/libvorbis/lib/modes/residue_44.h +292 -0
- data/dependencies/libvorbis/lib/modes/residue_44p51.h +451 -0
- data/dependencies/libvorbis/lib/modes/residue_44u.h +318 -0
- data/dependencies/libvorbis/lib/modes/residue_8.h +109 -0
- data/dependencies/libvorbis/lib/modes/setup_11.h +143 -0
- data/dependencies/libvorbis/lib/modes/setup_16.h +153 -0
- data/dependencies/libvorbis/lib/modes/setup_22.h +128 -0
- data/dependencies/libvorbis/lib/modes/setup_32.h +132 -0
- data/dependencies/libvorbis/lib/modes/setup_44.h +117 -0
- data/dependencies/libvorbis/lib/modes/setup_44p51.h +74 -0
- data/dependencies/libvorbis/lib/modes/setup_44u.h +74 -0
- data/dependencies/libvorbis/lib/modes/setup_8.h +149 -0
- data/dependencies/libvorbis/lib/modes/setup_X.h +225 -0
- data/dependencies/libvorbis/lib/os.h +186 -0
- data/dependencies/libvorbis/lib/psy.c +1203 -0
- data/dependencies/libvorbis/lib/psy.h +154 -0
- data/dependencies/libvorbis/lib/psytune.c +524 -0
- data/dependencies/libvorbis/lib/registry.c +45 -0
- data/dependencies/libvorbis/lib/registry.h +32 -0
- data/dependencies/libvorbis/lib/res0.c +889 -0
- data/dependencies/libvorbis/lib/scales.h +90 -0
- data/dependencies/libvorbis/lib/sharedbook.c +579 -0
- data/dependencies/libvorbis/lib/smallft.c +1255 -0
- data/dependencies/libvorbis/lib/smallft.h +34 -0
- data/dependencies/libvorbis/lib/synthesis.c +184 -0
- data/dependencies/libvorbis/lib/tone.c +54 -0
- data/dependencies/libvorbis/lib/vorbisenc.c +1215 -0
- data/dependencies/libvorbis/lib/vorbisfile.c +2337 -0
- data/dependencies/libvorbis/lib/window.c +2135 -0
- data/dependencies/libvorbis/lib/window.h +26 -0
- data/dependencies/ogg_vorbis.license +28 -0
- data/lib/gosu/swig_patches.rb +2 -2
- data/linux/extconf.rb +17 -3
- metadata +96 -17
- data/Gosu/ButtonsX.hpp +0 -141
- data/GosuImpl/Audio/AudioSDL.cpp +0 -315
@@ -0,0 +1,101 @@
|
|
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-2009 *
|
9
|
+
* by the Xiph.Org Foundation http://www.xiph.org/ *
|
10
|
+
* *
|
11
|
+
********************************************************************
|
12
|
+
|
13
|
+
function: 8kHz psychoacoustic settings
|
14
|
+
last mod: $Id: psych_8.h 16227 2009-07-08 06:58:46Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
static const att3 _psy_tone_masteratt_8[3]={
|
19
|
+
{{ 32, 25, 12}, 0, 0}, /* 0 */
|
20
|
+
{{ 30, 25, 12}, 0, 0}, /* 0 */
|
21
|
+
{{ 20, 0, -14}, 0, 0}, /* 0 */
|
22
|
+
};
|
23
|
+
|
24
|
+
static const vp_adjblock _vp_tonemask_adj_8[3]={
|
25
|
+
/* adjust for mode zero */
|
26
|
+
/* 63 125 250 500 1 2 4 8 16 */
|
27
|
+
{{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
|
28
|
+
{{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0,10, 0, 0,99,99,99}}, /* 1 */
|
29
|
+
{{-15,-15,-15,-15,-10,-10, -6, 0, 0, 0, 0, 0, 0, 0,99,99,99}}, /* 1 */
|
30
|
+
};
|
31
|
+
|
32
|
+
|
33
|
+
static const noise3 _psy_noisebias_8[3]={
|
34
|
+
/* 63 125 250 500 1k 2k 4k 8k 16k*/
|
35
|
+
{{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 8, 8, 8, 10, 10, 99, 99, 99},
|
36
|
+
{-10,-10,-10,-10, -5, -5, -5, 0, 0, 4, 4, 4, 4, 4, 99, 99, 99},
|
37
|
+
{-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
|
38
|
+
|
39
|
+
{{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 8, 8, 8, 10, 10, 99, 99, 99},
|
40
|
+
{-10,-10,-10,-10,-10,-10, -5, -5, -5, 0, 0, 0, 0, 0, 99, 99, 99},
|
41
|
+
{-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
|
42
|
+
|
43
|
+
{{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 99, 99, 99},
|
44
|
+
{-30,-30,-30,-30,-26,-22,-20,-14,-12,-12,-10,-10,-10,-10, 99, 99, 99},
|
45
|
+
{-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24, 99, 99, 99}}},
|
46
|
+
};
|
47
|
+
|
48
|
+
/* stereo mode by base quality level */
|
49
|
+
static const adj_stereo _psy_stereo_modes_8[3]={
|
50
|
+
/* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 */
|
51
|
+
{{ 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
|
52
|
+
{ 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
|
53
|
+
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
|
54
|
+
{ 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
|
55
|
+
{{ 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
|
56
|
+
{ 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
|
57
|
+
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
|
58
|
+
{ 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
|
59
|
+
{{ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
|
60
|
+
{ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
|
61
|
+
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
|
62
|
+
{ 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
|
63
|
+
};
|
64
|
+
|
65
|
+
static const noiseguard _psy_noiseguards_8[2]={
|
66
|
+
{10,10,-1},
|
67
|
+
{10,10,-1},
|
68
|
+
};
|
69
|
+
|
70
|
+
static const compandblock _psy_compand_8[2]={
|
71
|
+
{{
|
72
|
+
0, 1, 2, 3, 4, 5, 6, 7, /* 7dB */
|
73
|
+
8, 8, 9, 9,10,10,11, 11, /* 15dB */
|
74
|
+
12,12,13,13,14,14,15, 15, /* 23dB */
|
75
|
+
16,16,17,17,17,18,18, 19, /* 31dB */
|
76
|
+
19,19,20,21,22,23,24, 25, /* 39dB */
|
77
|
+
}},
|
78
|
+
{{
|
79
|
+
0, 1, 2, 3, 4, 5, 6, 6, /* 7dB */
|
80
|
+
7, 7, 6, 6, 5, 5, 4, 4, /* 15dB */
|
81
|
+
3, 3, 3, 4, 5, 6, 7, 8, /* 23dB */
|
82
|
+
9,10,11,12,13,14,15, 16, /* 31dB */
|
83
|
+
17,18,19,20,21,22,23, 24, /* 39dB */
|
84
|
+
}},
|
85
|
+
};
|
86
|
+
|
87
|
+
static const double _psy_lowpass_8[3]={3.,4.,4.};
|
88
|
+
static const int _noise_start_8[2]={
|
89
|
+
64,64,
|
90
|
+
};
|
91
|
+
static const int _noise_part_8[2]={
|
92
|
+
8,8,
|
93
|
+
};
|
94
|
+
|
95
|
+
static const int _psy_ath_floater_8[3]={
|
96
|
+
-100,-100,-105,
|
97
|
+
};
|
98
|
+
|
99
|
+
static const int _psy_ath_abs_8[3]={
|
100
|
+
-130,-130,-140,
|
101
|
+
};
|
@@ -0,0 +1,163 @@
|
|
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-2009 *
|
9
|
+
* by the Xiph.Org Foundation http://www.xiph.org/ *
|
10
|
+
* *
|
11
|
+
********************************************************************
|
12
|
+
|
13
|
+
function: toplevel residue templates 16/22kHz
|
14
|
+
last mod: $Id: residue_16.h 16962 2010-03-11 07:30:34Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
/***** residue backends *********************************************/
|
19
|
+
|
20
|
+
static const static_bookblock _resbook_16s_0={
|
21
|
+
{
|
22
|
+
{0},
|
23
|
+
{0,0,&_16c0_s_p1_0},
|
24
|
+
{0},
|
25
|
+
{0,0,&_16c0_s_p3_0},
|
26
|
+
{0,0,&_16c0_s_p4_0},
|
27
|
+
{0,0,&_16c0_s_p5_0},
|
28
|
+
{0,0,&_16c0_s_p6_0},
|
29
|
+
{&_16c0_s_p7_0,&_16c0_s_p7_1},
|
30
|
+
{&_16c0_s_p8_0,&_16c0_s_p8_1},
|
31
|
+
{&_16c0_s_p9_0,&_16c0_s_p9_1,&_16c0_s_p9_2}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
static const static_bookblock _resbook_16s_1={
|
35
|
+
{
|
36
|
+
{0},
|
37
|
+
{0,0,&_16c1_s_p1_0},
|
38
|
+
{0},
|
39
|
+
{0,0,&_16c1_s_p3_0},
|
40
|
+
{0,0,&_16c1_s_p4_0},
|
41
|
+
{0,0,&_16c1_s_p5_0},
|
42
|
+
{0,0,&_16c1_s_p6_0},
|
43
|
+
{&_16c1_s_p7_0,&_16c1_s_p7_1},
|
44
|
+
{&_16c1_s_p8_0,&_16c1_s_p8_1},
|
45
|
+
{&_16c1_s_p9_0,&_16c1_s_p9_1,&_16c1_s_p9_2}
|
46
|
+
}
|
47
|
+
};
|
48
|
+
static const static_bookblock _resbook_16s_2={
|
49
|
+
{
|
50
|
+
{0},
|
51
|
+
{0,0,&_16c2_s_p1_0},
|
52
|
+
{0,0,&_16c2_s_p2_0},
|
53
|
+
{0,0,&_16c2_s_p3_0},
|
54
|
+
{0,0,&_16c2_s_p4_0},
|
55
|
+
{&_16c2_s_p5_0,&_16c2_s_p5_1},
|
56
|
+
{&_16c2_s_p6_0,&_16c2_s_p6_1},
|
57
|
+
{&_16c2_s_p7_0,&_16c2_s_p7_1},
|
58
|
+
{&_16c2_s_p8_0,&_16c2_s_p8_1},
|
59
|
+
{&_16c2_s_p9_0,&_16c2_s_p9_1,&_16c2_s_p9_2}
|
60
|
+
}
|
61
|
+
};
|
62
|
+
|
63
|
+
static const vorbis_residue_template _res_16s_0[]={
|
64
|
+
{2,0,32, &_residue_44_mid,
|
65
|
+
&_huff_book__16c0_s_single,&_huff_book__16c0_s_single,
|
66
|
+
&_resbook_16s_0,&_resbook_16s_0},
|
67
|
+
};
|
68
|
+
static const vorbis_residue_template _res_16s_1[]={
|
69
|
+
{2,0,32, &_residue_44_mid,
|
70
|
+
&_huff_book__16c1_s_short,&_huff_book__16c1_s_short,
|
71
|
+
&_resbook_16s_1,&_resbook_16s_1},
|
72
|
+
|
73
|
+
{2,0,32, &_residue_44_mid,
|
74
|
+
&_huff_book__16c1_s_long,&_huff_book__16c1_s_long,
|
75
|
+
&_resbook_16s_1,&_resbook_16s_1}
|
76
|
+
};
|
77
|
+
static const vorbis_residue_template _res_16s_2[]={
|
78
|
+
{2,0,32, &_residue_44_high,
|
79
|
+
&_huff_book__16c2_s_short,&_huff_book__16c2_s_short,
|
80
|
+
&_resbook_16s_2,&_resbook_16s_2},
|
81
|
+
|
82
|
+
{2,0,32, &_residue_44_high,
|
83
|
+
&_huff_book__16c2_s_long,&_huff_book__16c2_s_long,
|
84
|
+
&_resbook_16s_2,&_resbook_16s_2}
|
85
|
+
};
|
86
|
+
|
87
|
+
static const vorbis_mapping_template _mapres_template_16_stereo[3]={
|
88
|
+
{ _map_nominal, _res_16s_0 }, /* 0 */
|
89
|
+
{ _map_nominal, _res_16s_1 }, /* 1 */
|
90
|
+
{ _map_nominal, _res_16s_2 }, /* 2 */
|
91
|
+
};
|
92
|
+
|
93
|
+
static const static_bookblock _resbook_16u_0={
|
94
|
+
{
|
95
|
+
{0},
|
96
|
+
{0,0,&_16u0__p1_0},
|
97
|
+
{0,0,&_16u0__p2_0},
|
98
|
+
{0,0,&_16u0__p3_0},
|
99
|
+
{0,0,&_16u0__p4_0},
|
100
|
+
{0,0,&_16u0__p5_0},
|
101
|
+
{&_16u0__p6_0,&_16u0__p6_1},
|
102
|
+
{&_16u0__p7_0,&_16u0__p7_1,&_16u0__p7_2}
|
103
|
+
}
|
104
|
+
};
|
105
|
+
static const static_bookblock _resbook_16u_1={
|
106
|
+
{
|
107
|
+
{0},
|
108
|
+
{0,0,&_16u1__p1_0},
|
109
|
+
{0,0,&_16u1__p2_0},
|
110
|
+
{0,0,&_16u1__p3_0},
|
111
|
+
{0,0,&_16u1__p4_0},
|
112
|
+
{0,0,&_16u1__p5_0},
|
113
|
+
{0,0,&_16u1__p6_0},
|
114
|
+
{&_16u1__p7_0,&_16u1__p7_1},
|
115
|
+
{&_16u1__p8_0,&_16u1__p8_1},
|
116
|
+
{&_16u1__p9_0,&_16u1__p9_1,&_16u1__p9_2}
|
117
|
+
}
|
118
|
+
};
|
119
|
+
static const static_bookblock _resbook_16u_2={
|
120
|
+
{
|
121
|
+
{0},
|
122
|
+
{0,0,&_16u2_p1_0},
|
123
|
+
{0,0,&_16u2_p2_0},
|
124
|
+
{0,0,&_16u2_p3_0},
|
125
|
+
{0,0,&_16u2_p4_0},
|
126
|
+
{&_16u2_p5_0,&_16u2_p5_1},
|
127
|
+
{&_16u2_p6_0,&_16u2_p6_1},
|
128
|
+
{&_16u2_p7_0,&_16u2_p7_1},
|
129
|
+
{&_16u2_p8_0,&_16u2_p8_1},
|
130
|
+
{&_16u2_p9_0,&_16u2_p9_1,&_16u2_p9_2}
|
131
|
+
}
|
132
|
+
};
|
133
|
+
|
134
|
+
static const vorbis_residue_template _res_16u_0[]={
|
135
|
+
{1,0,32, &_residue_44_low_un,
|
136
|
+
&_huff_book__16u0__single,&_huff_book__16u0__single,
|
137
|
+
&_resbook_16u_0,&_resbook_16u_0},
|
138
|
+
};
|
139
|
+
static const vorbis_residue_template _res_16u_1[]={
|
140
|
+
{1,0,32, &_residue_44_mid_un,
|
141
|
+
&_huff_book__16u1__short,&_huff_book__16u1__short,
|
142
|
+
&_resbook_16u_1,&_resbook_16u_1},
|
143
|
+
|
144
|
+
{1,0,32, &_residue_44_mid_un,
|
145
|
+
&_huff_book__16u1__long,&_huff_book__16u1__long,
|
146
|
+
&_resbook_16u_1,&_resbook_16u_1}
|
147
|
+
};
|
148
|
+
static const vorbis_residue_template _res_16u_2[]={
|
149
|
+
{1,0,32, &_residue_44_hi_un,
|
150
|
+
&_huff_book__16u2__short,&_huff_book__16u2__short,
|
151
|
+
&_resbook_16u_2,&_resbook_16u_2},
|
152
|
+
|
153
|
+
{1,0,32, &_residue_44_hi_un,
|
154
|
+
&_huff_book__16u2__long,&_huff_book__16u2__long,
|
155
|
+
&_resbook_16u_2,&_resbook_16u_2}
|
156
|
+
};
|
157
|
+
|
158
|
+
|
159
|
+
static const vorbis_mapping_template _mapres_template_16_uncoupled[3]={
|
160
|
+
{ _map_nominal_u, _res_16u_0 }, /* 0 */
|
161
|
+
{ _map_nominal_u, _res_16u_1 }, /* 1 */
|
162
|
+
{ _map_nominal_u, _res_16u_2 }, /* 2 */
|
163
|
+
};
|
@@ -0,0 +1,292 @@
|
|
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-2009 *
|
9
|
+
* by the Xiph.Org Foundation http://www.xiph.org/ *
|
10
|
+
* *
|
11
|
+
********************************************************************
|
12
|
+
|
13
|
+
function: toplevel residue templates for 32/44.1/48kHz
|
14
|
+
last mod: $Id: residue_44.h 16962 2010-03-11 07:30:34Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "vorbis/codec.h"
|
19
|
+
#include "backends.h"
|
20
|
+
#include "books/coupled/res_books_stereo.h"
|
21
|
+
|
22
|
+
/***** residue backends *********************************************/
|
23
|
+
|
24
|
+
static const vorbis_info_residue0 _residue_44_low={
|
25
|
+
0,-1, -1, 9,-1,-1,
|
26
|
+
/* 0 1 2 3 4 5 6 7 */
|
27
|
+
{0},
|
28
|
+
{-1},
|
29
|
+
{ 0, 1, 2, 2, 4, 8, 16, 32},
|
30
|
+
{ 0, 0, 0,999, 4, 8, 16, 32},
|
31
|
+
};
|
32
|
+
|
33
|
+
static const vorbis_info_residue0 _residue_44_mid={
|
34
|
+
0,-1, -1, 10,-1,-1,
|
35
|
+
/* 0 1 2 3 4 5 6 7 8 */
|
36
|
+
{0},
|
37
|
+
{-1},
|
38
|
+
{ 0, 1, 1, 2, 2, 4, 8, 16, 32},
|
39
|
+
{ 0, 0,999, 0,999, 4, 8, 16, 32},
|
40
|
+
};
|
41
|
+
|
42
|
+
static const vorbis_info_residue0 _residue_44_high={
|
43
|
+
0,-1, -1, 10,-1,-1,
|
44
|
+
/* 0 1 2 3 4 5 6 7 8 */
|
45
|
+
{0},
|
46
|
+
{-1},
|
47
|
+
{ 0, 1, 2, 4, 8, 16, 32, 71,157},
|
48
|
+
{ 0, 1, 2, 3, 4, 8, 16, 71,157},
|
49
|
+
};
|
50
|
+
|
51
|
+
static const static_bookblock _resbook_44s_n1={
|
52
|
+
{
|
53
|
+
{0},{0,0,&_44cn1_s_p1_0},{0,0,&_44cn1_s_p2_0},
|
54
|
+
{0,0,&_44cn1_s_p3_0},{0,0,&_44cn1_s_p4_0},{0,0,&_44cn1_s_p5_0},
|
55
|
+
{&_44cn1_s_p6_0,&_44cn1_s_p6_1},{&_44cn1_s_p7_0,&_44cn1_s_p7_1},
|
56
|
+
{&_44cn1_s_p8_0,&_44cn1_s_p8_1,&_44cn1_s_p8_2}
|
57
|
+
}
|
58
|
+
};
|
59
|
+
static const static_bookblock _resbook_44sm_n1={
|
60
|
+
{
|
61
|
+
{0},{0,0,&_44cn1_sm_p1_0},{0,0,&_44cn1_sm_p2_0},
|
62
|
+
{0,0,&_44cn1_sm_p3_0},{0,0,&_44cn1_sm_p4_0},{0,0,&_44cn1_sm_p5_0},
|
63
|
+
{&_44cn1_sm_p6_0,&_44cn1_sm_p6_1},{&_44cn1_sm_p7_0,&_44cn1_sm_p7_1},
|
64
|
+
{&_44cn1_sm_p8_0,&_44cn1_sm_p8_1,&_44cn1_sm_p8_2}
|
65
|
+
}
|
66
|
+
};
|
67
|
+
|
68
|
+
static const static_bookblock _resbook_44s_0={
|
69
|
+
{
|
70
|
+
{0},{0,0,&_44c0_s_p1_0},{0,0,&_44c0_s_p2_0},
|
71
|
+
{0,0,&_44c0_s_p3_0},{0,0,&_44c0_s_p4_0},{0,0,&_44c0_s_p5_0},
|
72
|
+
{&_44c0_s_p6_0,&_44c0_s_p6_1},{&_44c0_s_p7_0,&_44c0_s_p7_1},
|
73
|
+
{&_44c0_s_p8_0,&_44c0_s_p8_1,&_44c0_s_p8_2}
|
74
|
+
}
|
75
|
+
};
|
76
|
+
static const static_bookblock _resbook_44sm_0={
|
77
|
+
{
|
78
|
+
{0},{0,0,&_44c0_sm_p1_0},{0,0,&_44c0_sm_p2_0},
|
79
|
+
{0,0,&_44c0_sm_p3_0},{0,0,&_44c0_sm_p4_0},{0,0,&_44c0_sm_p5_0},
|
80
|
+
{&_44c0_sm_p6_0,&_44c0_sm_p6_1},{&_44c0_sm_p7_0,&_44c0_sm_p7_1},
|
81
|
+
{&_44c0_sm_p8_0,&_44c0_sm_p8_1,&_44c0_sm_p8_2}
|
82
|
+
}
|
83
|
+
};
|
84
|
+
|
85
|
+
static const static_bookblock _resbook_44s_1={
|
86
|
+
{
|
87
|
+
{0},{0,0,&_44c1_s_p1_0},{0,0,&_44c1_s_p2_0},
|
88
|
+
{0,0,&_44c1_s_p3_0},{0,0,&_44c1_s_p4_0},{0,0,&_44c1_s_p5_0},
|
89
|
+
{&_44c1_s_p6_0,&_44c1_s_p6_1},{&_44c1_s_p7_0,&_44c1_s_p7_1},
|
90
|
+
{&_44c1_s_p8_0,&_44c1_s_p8_1,&_44c1_s_p8_2}
|
91
|
+
}
|
92
|
+
};
|
93
|
+
static const static_bookblock _resbook_44sm_1={
|
94
|
+
{
|
95
|
+
{0},{0,0,&_44c1_sm_p1_0},{0,0,&_44c1_sm_p2_0},
|
96
|
+
{0,0,&_44c1_sm_p3_0},{0,0,&_44c1_sm_p4_0},{0,0,&_44c1_sm_p5_0},
|
97
|
+
{&_44c1_sm_p6_0,&_44c1_sm_p6_1},{&_44c1_sm_p7_0,&_44c1_sm_p7_1},
|
98
|
+
{&_44c1_sm_p8_0,&_44c1_sm_p8_1,&_44c1_sm_p8_2}
|
99
|
+
}
|
100
|
+
};
|
101
|
+
|
102
|
+
static const static_bookblock _resbook_44s_2={
|
103
|
+
{
|
104
|
+
{0},{0,0,&_44c2_s_p1_0},{0,0,&_44c2_s_p2_0},{0,0,&_44c2_s_p3_0},
|
105
|
+
{0,0,&_44c2_s_p4_0},{0,0,&_44c2_s_p5_0},{0,0,&_44c2_s_p6_0},
|
106
|
+
{&_44c2_s_p7_0,&_44c2_s_p7_1},{&_44c2_s_p8_0,&_44c2_s_p8_1},
|
107
|
+
{&_44c2_s_p9_0,&_44c2_s_p9_1,&_44c2_s_p9_2}
|
108
|
+
}
|
109
|
+
};
|
110
|
+
static const static_bookblock _resbook_44s_3={
|
111
|
+
{
|
112
|
+
{0},{0,0,&_44c3_s_p1_0},{0,0,&_44c3_s_p2_0},{0,0,&_44c3_s_p3_0},
|
113
|
+
{0,0,&_44c3_s_p4_0},{0,0,&_44c3_s_p5_0},{0,0,&_44c3_s_p6_0},
|
114
|
+
{&_44c3_s_p7_0,&_44c3_s_p7_1},{&_44c3_s_p8_0,&_44c3_s_p8_1},
|
115
|
+
{&_44c3_s_p9_0,&_44c3_s_p9_1,&_44c3_s_p9_2}
|
116
|
+
}
|
117
|
+
};
|
118
|
+
static const static_bookblock _resbook_44s_4={
|
119
|
+
{
|
120
|
+
{0},{0,0,&_44c4_s_p1_0},{0,0,&_44c4_s_p2_0},{0,0,&_44c4_s_p3_0},
|
121
|
+
{0,0,&_44c4_s_p4_0},{0,0,&_44c4_s_p5_0},{0,0,&_44c4_s_p6_0},
|
122
|
+
{&_44c4_s_p7_0,&_44c4_s_p7_1},{&_44c4_s_p8_0,&_44c4_s_p8_1},
|
123
|
+
{&_44c4_s_p9_0,&_44c4_s_p9_1,&_44c4_s_p9_2}
|
124
|
+
}
|
125
|
+
};
|
126
|
+
static const static_bookblock _resbook_44s_5={
|
127
|
+
{
|
128
|
+
{0},{0,0,&_44c5_s_p1_0},{0,0,&_44c5_s_p2_0},{0,0,&_44c5_s_p3_0},
|
129
|
+
{0,0,&_44c5_s_p4_0},{0,0,&_44c5_s_p5_0},{0,0,&_44c5_s_p6_0},
|
130
|
+
{&_44c5_s_p7_0,&_44c5_s_p7_1},{&_44c5_s_p8_0,&_44c5_s_p8_1},
|
131
|
+
{&_44c5_s_p9_0,&_44c5_s_p9_1,&_44c5_s_p9_2}
|
132
|
+
}
|
133
|
+
};
|
134
|
+
static const static_bookblock _resbook_44s_6={
|
135
|
+
{
|
136
|
+
{0},{0,0,&_44c6_s_p1_0},{0,0,&_44c6_s_p2_0},{0,0,&_44c6_s_p3_0},
|
137
|
+
{0,0,&_44c6_s_p4_0},
|
138
|
+
{&_44c6_s_p5_0,&_44c6_s_p5_1},
|
139
|
+
{&_44c6_s_p6_0,&_44c6_s_p6_1},
|
140
|
+
{&_44c6_s_p7_0,&_44c6_s_p7_1},
|
141
|
+
{&_44c6_s_p8_0,&_44c6_s_p8_1},
|
142
|
+
{&_44c6_s_p9_0,&_44c6_s_p9_1,&_44c6_s_p9_2}
|
143
|
+
}
|
144
|
+
};
|
145
|
+
static const static_bookblock _resbook_44s_7={
|
146
|
+
{
|
147
|
+
{0},{0,0,&_44c7_s_p1_0},{0,0,&_44c7_s_p2_0},{0,0,&_44c7_s_p3_0},
|
148
|
+
{0,0,&_44c7_s_p4_0},
|
149
|
+
{&_44c7_s_p5_0,&_44c7_s_p5_1},
|
150
|
+
{&_44c7_s_p6_0,&_44c7_s_p6_1},
|
151
|
+
{&_44c7_s_p7_0,&_44c7_s_p7_1},
|
152
|
+
{&_44c7_s_p8_0,&_44c7_s_p8_1},
|
153
|
+
{&_44c7_s_p9_0,&_44c7_s_p9_1,&_44c7_s_p9_2}
|
154
|
+
}
|
155
|
+
};
|
156
|
+
static const static_bookblock _resbook_44s_8={
|
157
|
+
{
|
158
|
+
{0},{0,0,&_44c8_s_p1_0},{0,0,&_44c8_s_p2_0},{0,0,&_44c8_s_p3_0},
|
159
|
+
{0,0,&_44c8_s_p4_0},
|
160
|
+
{&_44c8_s_p5_0,&_44c8_s_p5_1},
|
161
|
+
{&_44c8_s_p6_0,&_44c8_s_p6_1},
|
162
|
+
{&_44c8_s_p7_0,&_44c8_s_p7_1},
|
163
|
+
{&_44c8_s_p8_0,&_44c8_s_p8_1},
|
164
|
+
{&_44c8_s_p9_0,&_44c8_s_p9_1,&_44c8_s_p9_2}
|
165
|
+
}
|
166
|
+
};
|
167
|
+
static const static_bookblock _resbook_44s_9={
|
168
|
+
{
|
169
|
+
{0},{0,0,&_44c9_s_p1_0},{0,0,&_44c9_s_p2_0},{0,0,&_44c9_s_p3_0},
|
170
|
+
{0,0,&_44c9_s_p4_0},
|
171
|
+
{&_44c9_s_p5_0,&_44c9_s_p5_1},
|
172
|
+
{&_44c9_s_p6_0,&_44c9_s_p6_1},
|
173
|
+
{&_44c9_s_p7_0,&_44c9_s_p7_1},
|
174
|
+
{&_44c9_s_p8_0,&_44c9_s_p8_1},
|
175
|
+
{&_44c9_s_p9_0,&_44c9_s_p9_1,&_44c9_s_p9_2}
|
176
|
+
}
|
177
|
+
};
|
178
|
+
|
179
|
+
static const vorbis_residue_template _res_44s_n1[]={
|
180
|
+
{2,0,32, &_residue_44_low,
|
181
|
+
&_huff_book__44cn1_s_short,&_huff_book__44cn1_sm_short,
|
182
|
+
&_resbook_44s_n1,&_resbook_44sm_n1},
|
183
|
+
|
184
|
+
{2,0,32, &_residue_44_low,
|
185
|
+
&_huff_book__44cn1_s_long,&_huff_book__44cn1_sm_long,
|
186
|
+
&_resbook_44s_n1,&_resbook_44sm_n1}
|
187
|
+
};
|
188
|
+
static const vorbis_residue_template _res_44s_0[]={
|
189
|
+
{2,0,16, &_residue_44_low,
|
190
|
+
&_huff_book__44c0_s_short,&_huff_book__44c0_sm_short,
|
191
|
+
&_resbook_44s_0,&_resbook_44sm_0},
|
192
|
+
|
193
|
+
{2,0,32, &_residue_44_low,
|
194
|
+
&_huff_book__44c0_s_long,&_huff_book__44c0_sm_long,
|
195
|
+
&_resbook_44s_0,&_resbook_44sm_0}
|
196
|
+
};
|
197
|
+
static const vorbis_residue_template _res_44s_1[]={
|
198
|
+
{2,0,16, &_residue_44_low,
|
199
|
+
&_huff_book__44c1_s_short,&_huff_book__44c1_sm_short,
|
200
|
+
&_resbook_44s_1,&_resbook_44sm_1},
|
201
|
+
|
202
|
+
{2,0,32, &_residue_44_low,
|
203
|
+
&_huff_book__44c1_s_long,&_huff_book__44c1_sm_long,
|
204
|
+
&_resbook_44s_1,&_resbook_44sm_1}
|
205
|
+
};
|
206
|
+
|
207
|
+
static const vorbis_residue_template _res_44s_2[]={
|
208
|
+
{2,0,16, &_residue_44_mid,
|
209
|
+
&_huff_book__44c2_s_short,&_huff_book__44c2_s_short,
|
210
|
+
&_resbook_44s_2,&_resbook_44s_2},
|
211
|
+
|
212
|
+
{2,0,32, &_residue_44_mid,
|
213
|
+
&_huff_book__44c2_s_long,&_huff_book__44c2_s_long,
|
214
|
+
&_resbook_44s_2,&_resbook_44s_2}
|
215
|
+
};
|
216
|
+
static const vorbis_residue_template _res_44s_3[]={
|
217
|
+
{2,0,16, &_residue_44_mid,
|
218
|
+
&_huff_book__44c3_s_short,&_huff_book__44c3_s_short,
|
219
|
+
&_resbook_44s_3,&_resbook_44s_3},
|
220
|
+
|
221
|
+
{2,0,32, &_residue_44_mid,
|
222
|
+
&_huff_book__44c3_s_long,&_huff_book__44c3_s_long,
|
223
|
+
&_resbook_44s_3,&_resbook_44s_3}
|
224
|
+
};
|
225
|
+
static const vorbis_residue_template _res_44s_4[]={
|
226
|
+
{2,0,16, &_residue_44_mid,
|
227
|
+
&_huff_book__44c4_s_short,&_huff_book__44c4_s_short,
|
228
|
+
&_resbook_44s_4,&_resbook_44s_4},
|
229
|
+
|
230
|
+
{2,0,32, &_residue_44_mid,
|
231
|
+
&_huff_book__44c4_s_long,&_huff_book__44c4_s_long,
|
232
|
+
&_resbook_44s_4,&_resbook_44s_4}
|
233
|
+
};
|
234
|
+
static const vorbis_residue_template _res_44s_5[]={
|
235
|
+
{2,0,16, &_residue_44_mid,
|
236
|
+
&_huff_book__44c5_s_short,&_huff_book__44c5_s_short,
|
237
|
+
&_resbook_44s_5,&_resbook_44s_5},
|
238
|
+
|
239
|
+
{2,0,32, &_residue_44_mid,
|
240
|
+
&_huff_book__44c5_s_long,&_huff_book__44c5_s_long,
|
241
|
+
&_resbook_44s_5,&_resbook_44s_5}
|
242
|
+
};
|
243
|
+
static const vorbis_residue_template _res_44s_6[]={
|
244
|
+
{2,0,16, &_residue_44_high,
|
245
|
+
&_huff_book__44c6_s_short,&_huff_book__44c6_s_short,
|
246
|
+
&_resbook_44s_6,&_resbook_44s_6},
|
247
|
+
|
248
|
+
{2,0,32, &_residue_44_high,
|
249
|
+
&_huff_book__44c6_s_long,&_huff_book__44c6_s_long,
|
250
|
+
&_resbook_44s_6,&_resbook_44s_6}
|
251
|
+
};
|
252
|
+
static const vorbis_residue_template _res_44s_7[]={
|
253
|
+
{2,0,16, &_residue_44_high,
|
254
|
+
&_huff_book__44c7_s_short,&_huff_book__44c7_s_short,
|
255
|
+
&_resbook_44s_7,&_resbook_44s_7},
|
256
|
+
|
257
|
+
{2,0,32, &_residue_44_high,
|
258
|
+
&_huff_book__44c7_s_long,&_huff_book__44c7_s_long,
|
259
|
+
&_resbook_44s_7,&_resbook_44s_7}
|
260
|
+
};
|
261
|
+
static const vorbis_residue_template _res_44s_8[]={
|
262
|
+
{2,0,16, &_residue_44_high,
|
263
|
+
&_huff_book__44c8_s_short,&_huff_book__44c8_s_short,
|
264
|
+
&_resbook_44s_8,&_resbook_44s_8},
|
265
|
+
|
266
|
+
{2,0,32, &_residue_44_high,
|
267
|
+
&_huff_book__44c8_s_long,&_huff_book__44c8_s_long,
|
268
|
+
&_resbook_44s_8,&_resbook_44s_8}
|
269
|
+
};
|
270
|
+
static const vorbis_residue_template _res_44s_9[]={
|
271
|
+
{2,0,16, &_residue_44_high,
|
272
|
+
&_huff_book__44c9_s_short,&_huff_book__44c9_s_short,
|
273
|
+
&_resbook_44s_9,&_resbook_44s_9},
|
274
|
+
|
275
|
+
{2,0,32, &_residue_44_high,
|
276
|
+
&_huff_book__44c9_s_long,&_huff_book__44c9_s_long,
|
277
|
+
&_resbook_44s_9,&_resbook_44s_9}
|
278
|
+
};
|
279
|
+
|
280
|
+
static const vorbis_mapping_template _mapres_template_44_stereo[]={
|
281
|
+
{ _map_nominal, _res_44s_n1 }, /* -1 */
|
282
|
+
{ _map_nominal, _res_44s_0 }, /* 0 */
|
283
|
+
{ _map_nominal, _res_44s_1 }, /* 1 */
|
284
|
+
{ _map_nominal, _res_44s_2 }, /* 2 */
|
285
|
+
{ _map_nominal, _res_44s_3 }, /* 3 */
|
286
|
+
{ _map_nominal, _res_44s_4 }, /* 4 */
|
287
|
+
{ _map_nominal, _res_44s_5 }, /* 5 */
|
288
|
+
{ _map_nominal, _res_44s_6 }, /* 6 */
|
289
|
+
{ _map_nominal, _res_44s_7 }, /* 7 */
|
290
|
+
{ _map_nominal, _res_44s_8 }, /* 8 */
|
291
|
+
{ _map_nominal, _res_44s_9 }, /* 9 */
|
292
|
+
};
|