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,109 @@
|
|
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 http://www.xiph.org/ *
|
10
|
+
* *
|
11
|
+
********************************************************************
|
12
|
+
|
13
|
+
function: toplevel residue templates 8/11kHz
|
14
|
+
last mod: $Id: residue_8.h 16962 2010-03-11 07:30:34Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "vorbis/codec.h"
|
19
|
+
#include "backends.h"
|
20
|
+
|
21
|
+
/***** residue backends *********************************************/
|
22
|
+
|
23
|
+
static const static_bookblock _resbook_8s_0={
|
24
|
+
{
|
25
|
+
{0},
|
26
|
+
{0,0,&_8c0_s_p1_0},
|
27
|
+
{0},
|
28
|
+
{0,0,&_8c0_s_p3_0},
|
29
|
+
{0,0,&_8c0_s_p4_0},
|
30
|
+
{0,0,&_8c0_s_p5_0},
|
31
|
+
{0,0,&_8c0_s_p6_0},
|
32
|
+
{&_8c0_s_p7_0,&_8c0_s_p7_1},
|
33
|
+
{&_8c0_s_p8_0,&_8c0_s_p8_1},
|
34
|
+
{&_8c0_s_p9_0,&_8c0_s_p9_1,&_8c0_s_p9_2}
|
35
|
+
}
|
36
|
+
};
|
37
|
+
static const static_bookblock _resbook_8s_1={
|
38
|
+
{
|
39
|
+
{0},
|
40
|
+
{0,0,&_8c1_s_p1_0},
|
41
|
+
{0},
|
42
|
+
{0,0,&_8c1_s_p3_0},
|
43
|
+
{0,0,&_8c1_s_p4_0},
|
44
|
+
{0,0,&_8c1_s_p5_0},
|
45
|
+
{0,0,&_8c1_s_p6_0},
|
46
|
+
{&_8c1_s_p7_0,&_8c1_s_p7_1},
|
47
|
+
{&_8c1_s_p8_0,&_8c1_s_p8_1},
|
48
|
+
{&_8c1_s_p9_0,&_8c1_s_p9_1,&_8c1_s_p9_2}
|
49
|
+
}
|
50
|
+
};
|
51
|
+
|
52
|
+
static const vorbis_residue_template _res_8s_0[]={
|
53
|
+
{2,0,32, &_residue_44_mid,
|
54
|
+
&_huff_book__8c0_s_single,&_huff_book__8c0_s_single,
|
55
|
+
&_resbook_8s_0,&_resbook_8s_0},
|
56
|
+
};
|
57
|
+
static const vorbis_residue_template _res_8s_1[]={
|
58
|
+
{2,0,32, &_residue_44_mid,
|
59
|
+
&_huff_book__8c1_s_single,&_huff_book__8c1_s_single,
|
60
|
+
&_resbook_8s_1,&_resbook_8s_1},
|
61
|
+
};
|
62
|
+
|
63
|
+
static const vorbis_mapping_template _mapres_template_8_stereo[2]={
|
64
|
+
{ _map_nominal, _res_8s_0 }, /* 0 */
|
65
|
+
{ _map_nominal, _res_8s_1 }, /* 1 */
|
66
|
+
};
|
67
|
+
|
68
|
+
static const static_bookblock _resbook_8u_0={
|
69
|
+
{
|
70
|
+
{0},
|
71
|
+
{0,0,&_8u0__p1_0},
|
72
|
+
{0,0,&_8u0__p2_0},
|
73
|
+
{0,0,&_8u0__p3_0},
|
74
|
+
{0,0,&_8u0__p4_0},
|
75
|
+
{0,0,&_8u0__p5_0},
|
76
|
+
{&_8u0__p6_0,&_8u0__p6_1},
|
77
|
+
{&_8u0__p7_0,&_8u0__p7_1,&_8u0__p7_2}
|
78
|
+
}
|
79
|
+
};
|
80
|
+
static const static_bookblock _resbook_8u_1={
|
81
|
+
{
|
82
|
+
{0},
|
83
|
+
{0,0,&_8u1__p1_0},
|
84
|
+
{0,0,&_8u1__p2_0},
|
85
|
+
{0,0,&_8u1__p3_0},
|
86
|
+
{0,0,&_8u1__p4_0},
|
87
|
+
{0,0,&_8u1__p5_0},
|
88
|
+
{0,0,&_8u1__p6_0},
|
89
|
+
{&_8u1__p7_0,&_8u1__p7_1},
|
90
|
+
{&_8u1__p8_0,&_8u1__p8_1},
|
91
|
+
{&_8u1__p9_0,&_8u1__p9_1,&_8u1__p9_2}
|
92
|
+
}
|
93
|
+
};
|
94
|
+
|
95
|
+
static const vorbis_residue_template _res_8u_0[]={
|
96
|
+
{1,0,32, &_residue_44_low_un,
|
97
|
+
&_huff_book__8u0__single,&_huff_book__8u0__single,
|
98
|
+
&_resbook_8u_0,&_resbook_8u_0},
|
99
|
+
};
|
100
|
+
static const vorbis_residue_template _res_8u_1[]={
|
101
|
+
{1,0,32, &_residue_44_mid_un,
|
102
|
+
&_huff_book__8u1__single,&_huff_book__8u1__single,
|
103
|
+
&_resbook_8u_1,&_resbook_8u_1},
|
104
|
+
};
|
105
|
+
|
106
|
+
static const vorbis_mapping_template _mapres_template_8_uncoupled[2]={
|
107
|
+
{ _map_nominal_u, _res_8u_0 }, /* 0 */
|
108
|
+
{ _map_nominal_u, _res_8u_1 }, /* 1 */
|
109
|
+
};
|
@@ -0,0 +1,143 @@
|
|
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: 11kHz settings
|
14
|
+
last mod: $Id: setup_11.h 16894 2010-02-12 20:32:12Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "psych_11.h"
|
19
|
+
|
20
|
+
static const int blocksize_11[2]={
|
21
|
+
512,512
|
22
|
+
};
|
23
|
+
|
24
|
+
static const int _floor_mapping_11a[]={
|
25
|
+
6,6
|
26
|
+
};
|
27
|
+
static const int *_floor_mapping_11[]={
|
28
|
+
_floor_mapping_11a
|
29
|
+
};
|
30
|
+
|
31
|
+
static const double rate_mapping_11[3]={
|
32
|
+
8000.,13000.,44000.,
|
33
|
+
};
|
34
|
+
|
35
|
+
static const double rate_mapping_11_uncoupled[3]={
|
36
|
+
12000.,20000.,50000.,
|
37
|
+
};
|
38
|
+
|
39
|
+
static const double quality_mapping_11[3]={
|
40
|
+
-.1,.0,1.
|
41
|
+
};
|
42
|
+
|
43
|
+
static const ve_setup_data_template ve_setup_11_stereo={
|
44
|
+
2,
|
45
|
+
rate_mapping_11,
|
46
|
+
quality_mapping_11,
|
47
|
+
2,
|
48
|
+
9000,
|
49
|
+
15000,
|
50
|
+
|
51
|
+
blocksize_11,
|
52
|
+
blocksize_11,
|
53
|
+
|
54
|
+
_psy_tone_masteratt_11,
|
55
|
+
_psy_tone_0dB,
|
56
|
+
_psy_tone_suppress,
|
57
|
+
|
58
|
+
_vp_tonemask_adj_11,
|
59
|
+
NULL,
|
60
|
+
_vp_tonemask_adj_11,
|
61
|
+
|
62
|
+
_psy_noiseguards_8,
|
63
|
+
_psy_noisebias_11,
|
64
|
+
_psy_noisebias_11,
|
65
|
+
NULL,
|
66
|
+
NULL,
|
67
|
+
_psy_noise_suppress,
|
68
|
+
|
69
|
+
_psy_compand_8,
|
70
|
+
_psy_compand_8_mapping,
|
71
|
+
NULL,
|
72
|
+
|
73
|
+
{_noise_start_8,_noise_start_8},
|
74
|
+
{_noise_part_8,_noise_part_8},
|
75
|
+
_noise_thresh_11,
|
76
|
+
|
77
|
+
_psy_ath_floater_8,
|
78
|
+
_psy_ath_abs_8,
|
79
|
+
|
80
|
+
_psy_lowpass_11,
|
81
|
+
|
82
|
+
_psy_global_44,
|
83
|
+
_global_mapping_8,
|
84
|
+
_psy_stereo_modes_8,
|
85
|
+
|
86
|
+
_floor_books,
|
87
|
+
_floor,
|
88
|
+
1,
|
89
|
+
_floor_mapping_11,
|
90
|
+
|
91
|
+
_mapres_template_8_stereo
|
92
|
+
};
|
93
|
+
|
94
|
+
static const ve_setup_data_template ve_setup_11_uncoupled={
|
95
|
+
2,
|
96
|
+
rate_mapping_11_uncoupled,
|
97
|
+
quality_mapping_11,
|
98
|
+
-1,
|
99
|
+
9000,
|
100
|
+
15000,
|
101
|
+
|
102
|
+
blocksize_11,
|
103
|
+
blocksize_11,
|
104
|
+
|
105
|
+
_psy_tone_masteratt_11,
|
106
|
+
_psy_tone_0dB,
|
107
|
+
_psy_tone_suppress,
|
108
|
+
|
109
|
+
_vp_tonemask_adj_11,
|
110
|
+
NULL,
|
111
|
+
_vp_tonemask_adj_11,
|
112
|
+
|
113
|
+
_psy_noiseguards_8,
|
114
|
+
_psy_noisebias_11,
|
115
|
+
_psy_noisebias_11,
|
116
|
+
NULL,
|
117
|
+
NULL,
|
118
|
+
_psy_noise_suppress,
|
119
|
+
|
120
|
+
_psy_compand_8,
|
121
|
+
_psy_compand_8_mapping,
|
122
|
+
NULL,
|
123
|
+
|
124
|
+
{_noise_start_8,_noise_start_8},
|
125
|
+
{_noise_part_8,_noise_part_8},
|
126
|
+
_noise_thresh_11,
|
127
|
+
|
128
|
+
_psy_ath_floater_8,
|
129
|
+
_psy_ath_abs_8,
|
130
|
+
|
131
|
+
_psy_lowpass_11,
|
132
|
+
|
133
|
+
_psy_global_44,
|
134
|
+
_global_mapping_8,
|
135
|
+
_psy_stereo_modes_8,
|
136
|
+
|
137
|
+
_floor_books,
|
138
|
+
_floor,
|
139
|
+
1,
|
140
|
+
_floor_mapping_11,
|
141
|
+
|
142
|
+
_mapres_template_8_uncoupled
|
143
|
+
};
|
@@ -0,0 +1,153 @@
|
|
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: 16kHz settings
|
14
|
+
last mod: $Id: setup_16.h 16894 2010-02-12 20:32:12Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "psych_16.h"
|
19
|
+
#include "residue_16.h"
|
20
|
+
|
21
|
+
static const int blocksize_16_short[3]={
|
22
|
+
1024,512,512
|
23
|
+
};
|
24
|
+
static const int blocksize_16_long[3]={
|
25
|
+
1024,1024,1024
|
26
|
+
};
|
27
|
+
|
28
|
+
static const int _floor_mapping_16a[]={
|
29
|
+
9,3,3
|
30
|
+
};
|
31
|
+
static const int _floor_mapping_16b[]={
|
32
|
+
9,9,9
|
33
|
+
};
|
34
|
+
static const int *_floor_mapping_16[]={
|
35
|
+
_floor_mapping_16a,
|
36
|
+
_floor_mapping_16b
|
37
|
+
};
|
38
|
+
|
39
|
+
static const double rate_mapping_16[4]={
|
40
|
+
12000.,20000.,44000.,86000.
|
41
|
+
};
|
42
|
+
|
43
|
+
static const double rate_mapping_16_uncoupled[4]={
|
44
|
+
16000.,28000.,64000.,100000.
|
45
|
+
};
|
46
|
+
|
47
|
+
static const double _global_mapping_16[4]={ 1., 2., 3., 4. };
|
48
|
+
|
49
|
+
static const double quality_mapping_16[4]={ -.1,.05,.5,1. };
|
50
|
+
|
51
|
+
static const double _psy_compand_16_mapping[4]={ 0., .8, 1., 1.};
|
52
|
+
|
53
|
+
static const ve_setup_data_template ve_setup_16_stereo={
|
54
|
+
3,
|
55
|
+
rate_mapping_16,
|
56
|
+
quality_mapping_16,
|
57
|
+
2,
|
58
|
+
15000,
|
59
|
+
19000,
|
60
|
+
|
61
|
+
blocksize_16_short,
|
62
|
+
blocksize_16_long,
|
63
|
+
|
64
|
+
_psy_tone_masteratt_16,
|
65
|
+
_psy_tone_0dB,
|
66
|
+
_psy_tone_suppress,
|
67
|
+
|
68
|
+
_vp_tonemask_adj_16,
|
69
|
+
_vp_tonemask_adj_16,
|
70
|
+
_vp_tonemask_adj_16,
|
71
|
+
|
72
|
+
_psy_noiseguards_16,
|
73
|
+
_psy_noisebias_16_impulse,
|
74
|
+
_psy_noisebias_16_short,
|
75
|
+
_psy_noisebias_16_short,
|
76
|
+
_psy_noisebias_16,
|
77
|
+
_psy_noise_suppress,
|
78
|
+
|
79
|
+
_psy_compand_8,
|
80
|
+
_psy_compand_16_mapping,
|
81
|
+
_psy_compand_16_mapping,
|
82
|
+
|
83
|
+
{_noise_start_16,_noise_start_16},
|
84
|
+
{ _noise_part_16, _noise_part_16},
|
85
|
+
_noise_thresh_16,
|
86
|
+
|
87
|
+
_psy_ath_floater_16,
|
88
|
+
_psy_ath_abs_16,
|
89
|
+
|
90
|
+
_psy_lowpass_16,
|
91
|
+
|
92
|
+
_psy_global_44,
|
93
|
+
_global_mapping_16,
|
94
|
+
_psy_stereo_modes_16,
|
95
|
+
|
96
|
+
_floor_books,
|
97
|
+
_floor,
|
98
|
+
2,
|
99
|
+
_floor_mapping_16,
|
100
|
+
|
101
|
+
_mapres_template_16_stereo
|
102
|
+
};
|
103
|
+
|
104
|
+
static const ve_setup_data_template ve_setup_16_uncoupled={
|
105
|
+
3,
|
106
|
+
rate_mapping_16_uncoupled,
|
107
|
+
quality_mapping_16,
|
108
|
+
-1,
|
109
|
+
15000,
|
110
|
+
19000,
|
111
|
+
|
112
|
+
blocksize_16_short,
|
113
|
+
blocksize_16_long,
|
114
|
+
|
115
|
+
_psy_tone_masteratt_16,
|
116
|
+
_psy_tone_0dB,
|
117
|
+
_psy_tone_suppress,
|
118
|
+
|
119
|
+
_vp_tonemask_adj_16,
|
120
|
+
_vp_tonemask_adj_16,
|
121
|
+
_vp_tonemask_adj_16,
|
122
|
+
|
123
|
+
_psy_noiseguards_16,
|
124
|
+
_psy_noisebias_16_impulse,
|
125
|
+
_psy_noisebias_16_short,
|
126
|
+
_psy_noisebias_16_short,
|
127
|
+
_psy_noisebias_16,
|
128
|
+
_psy_noise_suppress,
|
129
|
+
|
130
|
+
_psy_compand_8,
|
131
|
+
_psy_compand_16_mapping,
|
132
|
+
_psy_compand_16_mapping,
|
133
|
+
|
134
|
+
{_noise_start_16,_noise_start_16},
|
135
|
+
{ _noise_part_16, _noise_part_16},
|
136
|
+
_noise_thresh_16,
|
137
|
+
|
138
|
+
_psy_ath_floater_16,
|
139
|
+
_psy_ath_abs_16,
|
140
|
+
|
141
|
+
_psy_lowpass_16,
|
142
|
+
|
143
|
+
_psy_global_44,
|
144
|
+
_global_mapping_16,
|
145
|
+
_psy_stereo_modes_16,
|
146
|
+
|
147
|
+
_floor_books,
|
148
|
+
_floor,
|
149
|
+
2,
|
150
|
+
_floor_mapping_16,
|
151
|
+
|
152
|
+
_mapres_template_16_uncoupled
|
153
|
+
};
|
@@ -0,0 +1,128 @@
|
|
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: 22kHz settings
|
14
|
+
last mod: $Id: setup_22.h 17026 2010-03-25 05:00:27Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
static const double rate_mapping_22[4]={
|
19
|
+
15000.,20000.,44000.,86000.
|
20
|
+
};
|
21
|
+
|
22
|
+
static const double rate_mapping_22_uncoupled[4]={
|
23
|
+
16000.,28000.,50000.,90000.
|
24
|
+
};
|
25
|
+
|
26
|
+
static const double _psy_lowpass_22[4]={9.5,11.,30.,99.};
|
27
|
+
|
28
|
+
static const ve_setup_data_template ve_setup_22_stereo={
|
29
|
+
3,
|
30
|
+
rate_mapping_22,
|
31
|
+
quality_mapping_16,
|
32
|
+
2,
|
33
|
+
19000,
|
34
|
+
26000,
|
35
|
+
|
36
|
+
blocksize_16_short,
|
37
|
+
blocksize_16_long,
|
38
|
+
|
39
|
+
_psy_tone_masteratt_16,
|
40
|
+
_psy_tone_0dB,
|
41
|
+
_psy_tone_suppress,
|
42
|
+
|
43
|
+
_vp_tonemask_adj_16,
|
44
|
+
_vp_tonemask_adj_16,
|
45
|
+
_vp_tonemask_adj_16,
|
46
|
+
|
47
|
+
_psy_noiseguards_16,
|
48
|
+
_psy_noisebias_16_impulse,
|
49
|
+
_psy_noisebias_16_short,
|
50
|
+
_psy_noisebias_16_short,
|
51
|
+
_psy_noisebias_16,
|
52
|
+
_psy_noise_suppress,
|
53
|
+
|
54
|
+
_psy_compand_8,
|
55
|
+
_psy_compand_16_mapping,
|
56
|
+
_psy_compand_16_mapping,
|
57
|
+
|
58
|
+
{_noise_start_16,_noise_start_16},
|
59
|
+
{ _noise_part_16, _noise_part_16},
|
60
|
+
_noise_thresh_16,
|
61
|
+
|
62
|
+
_psy_ath_floater_16,
|
63
|
+
_psy_ath_abs_16,
|
64
|
+
|
65
|
+
_psy_lowpass_22,
|
66
|
+
|
67
|
+
_psy_global_44,
|
68
|
+
_global_mapping_16,
|
69
|
+
_psy_stereo_modes_16,
|
70
|
+
|
71
|
+
_floor_books,
|
72
|
+
_floor,
|
73
|
+
2,
|
74
|
+
_floor_mapping_16,
|
75
|
+
|
76
|
+
_mapres_template_16_stereo
|
77
|
+
};
|
78
|
+
|
79
|
+
static const ve_setup_data_template ve_setup_22_uncoupled={
|
80
|
+
3,
|
81
|
+
rate_mapping_22_uncoupled,
|
82
|
+
quality_mapping_16,
|
83
|
+
-1,
|
84
|
+
19000,
|
85
|
+
26000,
|
86
|
+
|
87
|
+
blocksize_16_short,
|
88
|
+
blocksize_16_long,
|
89
|
+
|
90
|
+
_psy_tone_masteratt_16,
|
91
|
+
_psy_tone_0dB,
|
92
|
+
_psy_tone_suppress,
|
93
|
+
|
94
|
+
_vp_tonemask_adj_16,
|
95
|
+
_vp_tonemask_adj_16,
|
96
|
+
_vp_tonemask_adj_16,
|
97
|
+
|
98
|
+
_psy_noiseguards_16,
|
99
|
+
_psy_noisebias_16_impulse,
|
100
|
+
_psy_noisebias_16_short,
|
101
|
+
_psy_noisebias_16_short,
|
102
|
+
_psy_noisebias_16,
|
103
|
+
_psy_noise_suppress,
|
104
|
+
|
105
|
+
_psy_compand_8,
|
106
|
+
_psy_compand_16_mapping,
|
107
|
+
_psy_compand_16_mapping,
|
108
|
+
|
109
|
+
{_noise_start_16,_noise_start_16},
|
110
|
+
{ _noise_part_16, _noise_part_16},
|
111
|
+
_noise_thresh_16,
|
112
|
+
|
113
|
+
_psy_ath_floater_16,
|
114
|
+
_psy_ath_abs_16,
|
115
|
+
|
116
|
+
_psy_lowpass_22,
|
117
|
+
|
118
|
+
_psy_global_44,
|
119
|
+
_global_mapping_16,
|
120
|
+
_psy_stereo_modes_16,
|
121
|
+
|
122
|
+
_floor_books,
|
123
|
+
_floor,
|
124
|
+
2,
|
125
|
+
_floor_mapping_16,
|
126
|
+
|
127
|
+
_mapres_template_16_uncoupled
|
128
|
+
};
|