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,132 @@
|
|
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 settings for 32kHz
|
14
|
+
last mod: $Id: setup_32.h 16894 2010-02-12 20:32:12Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
static const double rate_mapping_32[12]={
|
19
|
+
18000.,28000.,35000.,45000.,56000.,60000.,
|
20
|
+
75000.,90000.,100000.,115000.,150000.,190000.,
|
21
|
+
};
|
22
|
+
|
23
|
+
static const double rate_mapping_32_un[12]={
|
24
|
+
30000.,42000.,52000.,64000.,72000.,78000.,
|
25
|
+
86000.,92000.,110000.,120000.,140000.,190000.,
|
26
|
+
};
|
27
|
+
|
28
|
+
static const double _psy_lowpass_32[12]={
|
29
|
+
12.3,13.,13.,14.,15.,99.,99.,99.,99.,99.,99.,99.
|
30
|
+
};
|
31
|
+
|
32
|
+
static const ve_setup_data_template ve_setup_32_stereo={
|
33
|
+
11,
|
34
|
+
rate_mapping_32,
|
35
|
+
quality_mapping_44,
|
36
|
+
2,
|
37
|
+
26000,
|
38
|
+
40000,
|
39
|
+
|
40
|
+
blocksize_short_44,
|
41
|
+
blocksize_long_44,
|
42
|
+
|
43
|
+
_psy_tone_masteratt_44,
|
44
|
+
_psy_tone_0dB,
|
45
|
+
_psy_tone_suppress,
|
46
|
+
|
47
|
+
_vp_tonemask_adj_otherblock,
|
48
|
+
_vp_tonemask_adj_longblock,
|
49
|
+
_vp_tonemask_adj_otherblock,
|
50
|
+
|
51
|
+
_psy_noiseguards_44,
|
52
|
+
_psy_noisebias_impulse,
|
53
|
+
_psy_noisebias_padding,
|
54
|
+
_psy_noisebias_trans,
|
55
|
+
_psy_noisebias_long,
|
56
|
+
_psy_noise_suppress,
|
57
|
+
|
58
|
+
_psy_compand_44,
|
59
|
+
_psy_compand_short_mapping,
|
60
|
+
_psy_compand_long_mapping,
|
61
|
+
|
62
|
+
{_noise_start_short_44,_noise_start_long_44},
|
63
|
+
{_noise_part_short_44,_noise_part_long_44},
|
64
|
+
_noise_thresh_44,
|
65
|
+
|
66
|
+
_psy_ath_floater,
|
67
|
+
_psy_ath_abs,
|
68
|
+
|
69
|
+
_psy_lowpass_32,
|
70
|
+
|
71
|
+
_psy_global_44,
|
72
|
+
_global_mapping_44,
|
73
|
+
_psy_stereo_modes_44,
|
74
|
+
|
75
|
+
_floor_books,
|
76
|
+
_floor,
|
77
|
+
2,
|
78
|
+
_floor_mapping_44,
|
79
|
+
|
80
|
+
_mapres_template_44_stereo
|
81
|
+
};
|
82
|
+
|
83
|
+
static const ve_setup_data_template ve_setup_32_uncoupled={
|
84
|
+
11,
|
85
|
+
rate_mapping_32_un,
|
86
|
+
quality_mapping_44,
|
87
|
+
-1,
|
88
|
+
26000,
|
89
|
+
40000,
|
90
|
+
|
91
|
+
blocksize_short_44,
|
92
|
+
blocksize_long_44,
|
93
|
+
|
94
|
+
_psy_tone_masteratt_44,
|
95
|
+
_psy_tone_0dB,
|
96
|
+
_psy_tone_suppress,
|
97
|
+
|
98
|
+
_vp_tonemask_adj_otherblock,
|
99
|
+
_vp_tonemask_adj_longblock,
|
100
|
+
_vp_tonemask_adj_otherblock,
|
101
|
+
|
102
|
+
_psy_noiseguards_44,
|
103
|
+
_psy_noisebias_impulse,
|
104
|
+
_psy_noisebias_padding,
|
105
|
+
_psy_noisebias_trans,
|
106
|
+
_psy_noisebias_long,
|
107
|
+
_psy_noise_suppress,
|
108
|
+
|
109
|
+
_psy_compand_44,
|
110
|
+
_psy_compand_short_mapping,
|
111
|
+
_psy_compand_long_mapping,
|
112
|
+
|
113
|
+
{_noise_start_short_44,_noise_start_long_44},
|
114
|
+
{_noise_part_short_44,_noise_part_long_44},
|
115
|
+
_noise_thresh_44,
|
116
|
+
|
117
|
+
_psy_ath_floater,
|
118
|
+
_psy_ath_abs,
|
119
|
+
|
120
|
+
_psy_lowpass_32,
|
121
|
+
|
122
|
+
_psy_global_44,
|
123
|
+
_global_mapping_44,
|
124
|
+
NULL,
|
125
|
+
|
126
|
+
_floor_books,
|
127
|
+
_floor,
|
128
|
+
2,
|
129
|
+
_floor_mapping_44,
|
130
|
+
|
131
|
+
_mapres_template_44_uncoupled
|
132
|
+
};
|
@@ -0,0 +1,117 @@
|
|
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 settings for 44.1/48kHz
|
14
|
+
last mod: $Id: setup_44.h 16962 2010-03-11 07:30:34Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "modes/floor_all.h"
|
19
|
+
#include "modes/residue_44.h"
|
20
|
+
#include "modes/psych_44.h"
|
21
|
+
|
22
|
+
static const double rate_mapping_44_stereo[12]={
|
23
|
+
22500.,32000.,40000.,48000.,56000.,64000.,
|
24
|
+
80000.,96000.,112000.,128000.,160000.,250001.
|
25
|
+
};
|
26
|
+
|
27
|
+
static const double quality_mapping_44[12]={
|
28
|
+
-.1,.0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1.0
|
29
|
+
};
|
30
|
+
|
31
|
+
static const int blocksize_short_44[11]={
|
32
|
+
512,256,256,256,256,256,256,256,256,256,256
|
33
|
+
};
|
34
|
+
static const int blocksize_long_44[11]={
|
35
|
+
4096,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048
|
36
|
+
};
|
37
|
+
|
38
|
+
static const double _psy_compand_short_mapping[12]={
|
39
|
+
0.5, 1., 1., 1.3, 1.6, 2., 2., 2., 2., 2., 2., 2.
|
40
|
+
};
|
41
|
+
static const double _psy_compand_long_mapping[12]={
|
42
|
+
3.5, 4., 4., 4.3, 4.6, 5., 5., 5., 5., 5., 5., 5.
|
43
|
+
};
|
44
|
+
|
45
|
+
static const double _global_mapping_44[12]={
|
46
|
+
/* 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.5, 4., 4. */
|
47
|
+
0., 1., 1., 1.5, 2., 2., 2.5, 2.7, 3.0, 3.7, 4., 4.
|
48
|
+
};
|
49
|
+
|
50
|
+
static const int _floor_mapping_44a[11]={
|
51
|
+
1,0,0,2,2,4,5,5,5,5,5
|
52
|
+
};
|
53
|
+
|
54
|
+
static const int _floor_mapping_44b[11]={
|
55
|
+
8,7,7,7,7,7,7,7,7,7,7
|
56
|
+
};
|
57
|
+
|
58
|
+
static const int _floor_mapping_44c[11]={
|
59
|
+
10,10,10,10,10,10,10,10,10,10,10
|
60
|
+
};
|
61
|
+
|
62
|
+
static const int *_floor_mapping_44[]={
|
63
|
+
_floor_mapping_44a,
|
64
|
+
_floor_mapping_44b,
|
65
|
+
_floor_mapping_44c,
|
66
|
+
};
|
67
|
+
|
68
|
+
static const ve_setup_data_template ve_setup_44_stereo={
|
69
|
+
11,
|
70
|
+
rate_mapping_44_stereo,
|
71
|
+
quality_mapping_44,
|
72
|
+
2,
|
73
|
+
40000,
|
74
|
+
50000,
|
75
|
+
|
76
|
+
blocksize_short_44,
|
77
|
+
blocksize_long_44,
|
78
|
+
|
79
|
+
_psy_tone_masteratt_44,
|
80
|
+
_psy_tone_0dB,
|
81
|
+
_psy_tone_suppress,
|
82
|
+
|
83
|
+
_vp_tonemask_adj_otherblock,
|
84
|
+
_vp_tonemask_adj_longblock,
|
85
|
+
_vp_tonemask_adj_otherblock,
|
86
|
+
|
87
|
+
_psy_noiseguards_44,
|
88
|
+
_psy_noisebias_impulse,
|
89
|
+
_psy_noisebias_padding,
|
90
|
+
_psy_noisebias_trans,
|
91
|
+
_psy_noisebias_long,
|
92
|
+
_psy_noise_suppress,
|
93
|
+
|
94
|
+
_psy_compand_44,
|
95
|
+
_psy_compand_short_mapping,
|
96
|
+
_psy_compand_long_mapping,
|
97
|
+
|
98
|
+
{_noise_start_short_44,_noise_start_long_44},
|
99
|
+
{_noise_part_short_44,_noise_part_long_44},
|
100
|
+
_noise_thresh_44,
|
101
|
+
|
102
|
+
_psy_ath_floater,
|
103
|
+
_psy_ath_abs,
|
104
|
+
|
105
|
+
_psy_lowpass_44,
|
106
|
+
|
107
|
+
_psy_global_44,
|
108
|
+
_global_mapping_44,
|
109
|
+
_psy_stereo_modes_44,
|
110
|
+
|
111
|
+
_floor_books,
|
112
|
+
_floor,
|
113
|
+
2,
|
114
|
+
_floor_mapping_44,
|
115
|
+
|
116
|
+
_mapres_template_44_stereo
|
117
|
+
};
|
@@ -0,0 +1,74 @@
|
|
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-2010 *
|
9
|
+
* by the Xiph.Org Foundation http://www.xiph.org/ *
|
10
|
+
* *
|
11
|
+
********************************************************************
|
12
|
+
|
13
|
+
function: toplevel settings for 44.1/48kHz 5.1 surround modes
|
14
|
+
last mod: $Id$
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "modes/residue_44p51.h"
|
19
|
+
|
20
|
+
static const double rate_mapping_44p51[12]={
|
21
|
+
14000.,20000.,28000.,38000.,46000.,54000.,
|
22
|
+
75000.,96000.,120000.,140000.,180000.,240001.
|
23
|
+
};
|
24
|
+
|
25
|
+
static const ve_setup_data_template ve_setup_44_51={
|
26
|
+
11,
|
27
|
+
rate_mapping_44p51,
|
28
|
+
quality_mapping_44,
|
29
|
+
6,
|
30
|
+
40000,
|
31
|
+
70000,
|
32
|
+
|
33
|
+
blocksize_short_44,
|
34
|
+
blocksize_long_44,
|
35
|
+
|
36
|
+
_psy_tone_masteratt_44,
|
37
|
+
_psy_tone_0dB,
|
38
|
+
_psy_tone_suppress,
|
39
|
+
|
40
|
+
_vp_tonemask_adj_otherblock,
|
41
|
+
_vp_tonemask_adj_longblock,
|
42
|
+
_vp_tonemask_adj_otherblock,
|
43
|
+
|
44
|
+
_psy_noiseguards_44,
|
45
|
+
_psy_noisebias_impulse,
|
46
|
+
_psy_noisebias_padding,
|
47
|
+
_psy_noisebias_trans,
|
48
|
+
_psy_noisebias_long,
|
49
|
+
_psy_noise_suppress,
|
50
|
+
|
51
|
+
_psy_compand_44,
|
52
|
+
_psy_compand_short_mapping,
|
53
|
+
_psy_compand_long_mapping,
|
54
|
+
|
55
|
+
{_noise_start_short_44,_noise_start_long_44},
|
56
|
+
{_noise_part_short_44,_noise_part_long_44},
|
57
|
+
_noise_thresh_44,
|
58
|
+
|
59
|
+
_psy_ath_floater,
|
60
|
+
_psy_ath_abs,
|
61
|
+
|
62
|
+
_psy_lowpass_44,
|
63
|
+
|
64
|
+
_psy_global_44,
|
65
|
+
_global_mapping_44,
|
66
|
+
_psy_stereo_modes_44,
|
67
|
+
|
68
|
+
_floor_books,
|
69
|
+
_floor,
|
70
|
+
3,
|
71
|
+
_floor_mapping_44,
|
72
|
+
|
73
|
+
_mapres_template_44_51
|
74
|
+
};
|
@@ -0,0 +1,74 @@
|
|
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 settings for 44.1/48kHz uncoupled modes
|
14
|
+
last mod: $Id: setup_44u.h 16962 2010-03-11 07:30:34Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "modes/residue_44u.h"
|
19
|
+
|
20
|
+
static const double rate_mapping_44_un[12]={
|
21
|
+
32000.,48000.,60000.,70000.,80000.,86000.,
|
22
|
+
96000.,110000.,120000.,140000.,160000.,240001.
|
23
|
+
};
|
24
|
+
|
25
|
+
static const ve_setup_data_template ve_setup_44_uncoupled={
|
26
|
+
11,
|
27
|
+
rate_mapping_44_un,
|
28
|
+
quality_mapping_44,
|
29
|
+
-1,
|
30
|
+
40000,
|
31
|
+
50000,
|
32
|
+
|
33
|
+
blocksize_short_44,
|
34
|
+
blocksize_long_44,
|
35
|
+
|
36
|
+
_psy_tone_masteratt_44,
|
37
|
+
_psy_tone_0dB,
|
38
|
+
_psy_tone_suppress,
|
39
|
+
|
40
|
+
_vp_tonemask_adj_otherblock,
|
41
|
+
_vp_tonemask_adj_longblock,
|
42
|
+
_vp_tonemask_adj_otherblock,
|
43
|
+
|
44
|
+
_psy_noiseguards_44,
|
45
|
+
_psy_noisebias_impulse,
|
46
|
+
_psy_noisebias_padding,
|
47
|
+
_psy_noisebias_trans,
|
48
|
+
_psy_noisebias_long,
|
49
|
+
_psy_noise_suppress,
|
50
|
+
|
51
|
+
_psy_compand_44,
|
52
|
+
_psy_compand_short_mapping,
|
53
|
+
_psy_compand_long_mapping,
|
54
|
+
|
55
|
+
{_noise_start_short_44,_noise_start_long_44},
|
56
|
+
{_noise_part_short_44,_noise_part_long_44},
|
57
|
+
_noise_thresh_44,
|
58
|
+
|
59
|
+
_psy_ath_floater,
|
60
|
+
_psy_ath_abs,
|
61
|
+
|
62
|
+
_psy_lowpass_44,
|
63
|
+
|
64
|
+
_psy_global_44,
|
65
|
+
_global_mapping_44,
|
66
|
+
_psy_stereo_modes_44,
|
67
|
+
|
68
|
+
_floor_books,
|
69
|
+
_floor,
|
70
|
+
2,
|
71
|
+
_floor_mapping_44,
|
72
|
+
|
73
|
+
_mapres_template_44_uncoupled
|
74
|
+
};
|
@@ -0,0 +1,149 @@
|
|
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 settings
|
14
|
+
last mod: $Id: setup_8.h 16894 2010-02-12 20:32:12Z xiphmont $
|
15
|
+
|
16
|
+
********************************************************************/
|
17
|
+
|
18
|
+
#include "psych_8.h"
|
19
|
+
#include "residue_8.h"
|
20
|
+
|
21
|
+
static const int blocksize_8[2]={
|
22
|
+
512,512
|
23
|
+
};
|
24
|
+
|
25
|
+
static const int _floor_mapping_8a[]={
|
26
|
+
6,6
|
27
|
+
};
|
28
|
+
|
29
|
+
static const int *_floor_mapping_8[]={
|
30
|
+
_floor_mapping_8a
|
31
|
+
};
|
32
|
+
|
33
|
+
static const double rate_mapping_8[3]={
|
34
|
+
6000.,9000.,32000.,
|
35
|
+
};
|
36
|
+
|
37
|
+
static const double rate_mapping_8_uncoupled[3]={
|
38
|
+
8000.,14000.,42000.,
|
39
|
+
};
|
40
|
+
|
41
|
+
static const double quality_mapping_8[3]={
|
42
|
+
-.1,.0,1.
|
43
|
+
};
|
44
|
+
|
45
|
+
static const double _psy_compand_8_mapping[3]={ 0., 1., 1.};
|
46
|
+
|
47
|
+
static const double _global_mapping_8[3]={ 1., 2., 3. };
|
48
|
+
|
49
|
+
static const ve_setup_data_template ve_setup_8_stereo={
|
50
|
+
2,
|
51
|
+
rate_mapping_8,
|
52
|
+
quality_mapping_8,
|
53
|
+
2,
|
54
|
+
8000,
|
55
|
+
9000,
|
56
|
+
|
57
|
+
blocksize_8,
|
58
|
+
blocksize_8,
|
59
|
+
|
60
|
+
_psy_tone_masteratt_8,
|
61
|
+
_psy_tone_0dB,
|
62
|
+
_psy_tone_suppress,
|
63
|
+
|
64
|
+
_vp_tonemask_adj_8,
|
65
|
+
NULL,
|
66
|
+
_vp_tonemask_adj_8,
|
67
|
+
|
68
|
+
_psy_noiseguards_8,
|
69
|
+
_psy_noisebias_8,
|
70
|
+
_psy_noisebias_8,
|
71
|
+
NULL,
|
72
|
+
NULL,
|
73
|
+
_psy_noise_suppress,
|
74
|
+
|
75
|
+
_psy_compand_8,
|
76
|
+
_psy_compand_8_mapping,
|
77
|
+
NULL,
|
78
|
+
|
79
|
+
{_noise_start_8,_noise_start_8},
|
80
|
+
{_noise_part_8,_noise_part_8},
|
81
|
+
_noise_thresh_5only,
|
82
|
+
|
83
|
+
_psy_ath_floater_8,
|
84
|
+
_psy_ath_abs_8,
|
85
|
+
|
86
|
+
_psy_lowpass_8,
|
87
|
+
|
88
|
+
_psy_global_44,
|
89
|
+
_global_mapping_8,
|
90
|
+
_psy_stereo_modes_8,
|
91
|
+
|
92
|
+
_floor_books,
|
93
|
+
_floor,
|
94
|
+
1,
|
95
|
+
_floor_mapping_8,
|
96
|
+
|
97
|
+
_mapres_template_8_stereo
|
98
|
+
};
|
99
|
+
|
100
|
+
static const ve_setup_data_template ve_setup_8_uncoupled={
|
101
|
+
2,
|
102
|
+
rate_mapping_8_uncoupled,
|
103
|
+
quality_mapping_8,
|
104
|
+
-1,
|
105
|
+
8000,
|
106
|
+
9000,
|
107
|
+
|
108
|
+
blocksize_8,
|
109
|
+
blocksize_8,
|
110
|
+
|
111
|
+
_psy_tone_masteratt_8,
|
112
|
+
_psy_tone_0dB,
|
113
|
+
_psy_tone_suppress,
|
114
|
+
|
115
|
+
_vp_tonemask_adj_8,
|
116
|
+
NULL,
|
117
|
+
_vp_tonemask_adj_8,
|
118
|
+
|
119
|
+
_psy_noiseguards_8,
|
120
|
+
_psy_noisebias_8,
|
121
|
+
_psy_noisebias_8,
|
122
|
+
NULL,
|
123
|
+
NULL,
|
124
|
+
_psy_noise_suppress,
|
125
|
+
|
126
|
+
_psy_compand_8,
|
127
|
+
_psy_compand_8_mapping,
|
128
|
+
NULL,
|
129
|
+
|
130
|
+
{_noise_start_8,_noise_start_8},
|
131
|
+
{_noise_part_8,_noise_part_8},
|
132
|
+
_noise_thresh_5only,
|
133
|
+
|
134
|
+
_psy_ath_floater_8,
|
135
|
+
_psy_ath_abs_8,
|
136
|
+
|
137
|
+
_psy_lowpass_8,
|
138
|
+
|
139
|
+
_psy_global_44,
|
140
|
+
_global_mapping_8,
|
141
|
+
_psy_stereo_modes_8,
|
142
|
+
|
143
|
+
_floor_books,
|
144
|
+
_floor,
|
145
|
+
1,
|
146
|
+
_floor_mapping_8,
|
147
|
+
|
148
|
+
_mapres_template_8_uncoupled
|
149
|
+
};
|