gosu 0.8.0.pre3 → 0.8.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/Gosu/Buttons.hpp +13 -11
  3. data/{linux → ext/gosu}/extconf.rb +25 -47
  4. data/{GosuImpl/RubyGosu_wrap.cxx → ext/gosu/gosu_wrap.cxx} +3 -2
  5. data/{GosuImpl/RubyGosu_wrap.h → ext/gosu/gosu_wrap.h} +0 -0
  6. data/lib/gosu.rb +6 -7
  7. data/lib/gosu/zen.rb +12 -0
  8. data/{GosuImpl → src}/Audio/ALChannelManagement.hpp +0 -0
  9. data/{GosuImpl → src}/Audio/AudioFile.hpp +0 -0
  10. data/{GosuImpl → src}/Audio/AudioOpenAL.cpp +0 -0
  11. data/{GosuImpl → src}/Audio/AudioOpenAL.mm +0 -0
  12. data/{GosuImpl → src}/Audio/AudioToolboxFile.hpp +0 -0
  13. data/{GosuImpl → src}/Audio/OggFile.hpp +0 -0
  14. data/{GosuImpl → src}/Audio/SndFile.hpp +0 -0
  15. data/{GosuImpl/Graphics → src/Bitmap}/Bitmap.cpp +2 -0
  16. data/{GosuImpl/Graphics → src/Bitmap}/BitmapApple.mm +0 -0
  17. data/{GosuImpl/Graphics → src/Bitmap}/BitmapBMP.cpp +0 -0
  18. data/{GosuImpl/Graphics → src/Bitmap}/BitmapColorKey.cpp +0 -0
  19. data/{GosuImpl/Graphics → src/Bitmap}/BitmapFreeImage.cpp +0 -0
  20. data/{GosuImpl/Graphics → src/Bitmap}/BitmapGDIplus.cpp +0 -0
  21. data/{GosuImpl/Graphics → src/Bitmap}/BitmapUtils.cpp +0 -0
  22. data/{GosuImpl → src}/DirectoriesMac.mm +0 -0
  23. data/{GosuImpl → src}/DirectoriesTouch.mm +0 -0
  24. data/{GosuImpl → src}/DirectoriesUnix.cpp +0 -0
  25. data/{GosuImpl → src}/DirectoriesWin.cpp +0 -0
  26. data/{GosuImpl → src}/FileUnix.cpp +0 -0
  27. data/{GosuImpl → src}/FileWin.cpp +0 -0
  28. data/{GosuImpl/Graphics → src}/GosuView.hpp +0 -0
  29. data/{GosuImpl/Graphics → src}/GosuView.mm +0 -0
  30. data/{GosuImpl → src}/Graphics/BlockAllocator.cpp +0 -0
  31. data/{GosuImpl → src}/Graphics/BlockAllocator.hpp +0 -0
  32. data/{GosuImpl → src}/Graphics/ClipRectStack.hpp +0 -0
  33. data/{GosuImpl → src}/Graphics/Color.cpp +0 -0
  34. data/{GosuImpl → src}/Graphics/Common.hpp +0 -0
  35. data/{GosuImpl → src}/Graphics/DrawOp.hpp +0 -0
  36. data/{GosuImpl → src}/Graphics/DrawOpQueue.hpp +0 -0
  37. data/{GosuImpl → src}/Graphics/Graphics.cpp +0 -0
  38. data/{GosuImpl → src}/Graphics/Image.cpp +0 -0
  39. data/{GosuImpl → src}/Graphics/LargeImageData.cpp +0 -0
  40. data/{GosuImpl → src}/Graphics/LargeImageData.hpp +0 -0
  41. data/{GosuImpl → src}/Graphics/Macro.hpp +0 -0
  42. data/{GosuImpl → src}/Graphics/RenderState.hpp +0 -0
  43. data/{GosuImpl → src}/Graphics/TexChunk.cpp +0 -0
  44. data/{GosuImpl → src}/Graphics/TexChunk.hpp +0 -0
  45. data/{GosuImpl → src}/Graphics/Texture.cpp +0 -0
  46. data/{GosuImpl → src}/Graphics/Texture.hpp +0 -0
  47. data/{GosuImpl → src}/Graphics/Transform.cpp +0 -0
  48. data/{GosuImpl → src}/Graphics/TransformStack.hpp +0 -0
  49. data/{GosuImpl → src}/IO.cpp +0 -0
  50. data/{GosuImpl → src}/Iconv.hpp +0 -0
  51. data/{GosuImpl → src}/Input/AccelerometerReader.hpp +0 -0
  52. data/{GosuImpl → src}/Input/AccelerometerReader.mm +0 -0
  53. data/{GosuImpl → src/Input}/Input.cpp +0 -0
  54. data/{GosuImpl → src/Input}/InputTouch.mm +0 -0
  55. data/{GosuImpl → src/Input}/TextInput.cpp +0 -0
  56. data/{GosuImpl → src/Input}/TextInputMac.mm +0 -0
  57. data/{GosuImpl → src}/Inspection.cpp +0 -0
  58. data/{GosuImpl → src}/MacUtility.hpp +0 -0
  59. data/{GosuImpl → src}/Math.cpp +0 -0
  60. data/{GosuImpl → src}/Sockets/CommSocket.cpp +0 -0
  61. data/{GosuImpl → src}/Sockets/ListenerSocket.cpp +0 -0
  62. data/{GosuImpl → src}/Sockets/MessageSocket.cpp +0 -0
  63. data/{GosuImpl → src}/Sockets/Socket.cpp +0 -0
  64. data/{GosuImpl → src}/Sockets/Socket.hpp +0 -0
  65. data/{GosuImpl/Graphics → src/Text}/Font.cpp +1 -1
  66. data/{GosuImpl/Graphics → src/Text}/FormattedString.hpp +0 -0
  67. data/{GosuImpl/Graphics → src/Text}/Text.cpp +1 -1
  68. data/{GosuImpl/Graphics/TextTouch.mm → src/Text/TextApple.mm} +0 -0
  69. data/{GosuImpl/Graphics → src/Text}/TextMac.cpp +1 -1
  70. data/{GosuImpl/Graphics → src/Text}/TextTTFWin.cpp +0 -0
  71. data/{GosuImpl/Graphics → src/Text}/TextUnix.cpp +0 -0
  72. data/{GosuImpl/Graphics → src/Text}/TextWin.cpp +0 -0
  73. data/{GosuImpl → src}/TimingApple.cpp +0 -0
  74. data/{GosuImpl → src}/TimingUnix.cpp +0 -0
  75. data/{GosuImpl → src}/TimingWin.cpp +0 -0
  76. data/{GosuImpl → src}/Utility.cpp +0 -0
  77. data/{GosuImpl → src}/UtilityApple.mm +0 -0
  78. data/{GosuImpl → src}/UtilityWin.cpp +0 -0
  79. data/{GosuImpl → src}/WinMain.cpp +0 -0
  80. data/{GosuImpl → src}/WinUtility.cpp +0 -0
  81. data/{GosuImpl → src}/Window.cpp +0 -0
  82. data/{GosuImpl → src}/WindowTouch.mm +0 -0
  83. data/{GosuImpl → src}/X11vroot.h +0 -0
  84. metadata +97 -193
  85. data/.yardopts +0 -1
  86. data/COPYING +0 -29
  87. data/GosuImpl/InputMac.mm +0 -733
  88. data/GosuImpl/InputWin.cpp +0 -483
  89. data/GosuImpl/InputX.cpp +0 -243
  90. data/GosuImpl/RubyGosu.swg +0 -821
  91. data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +0 -126
  92. data/GosuImpl/RubyGosu_SWIG_RENAME_PATCH.patch +0 -62
  93. data/GosuImpl/TextInputWin.cpp +0 -211
  94. data/GosuImpl/TextInputX.cpp +0 -217
  95. data/GosuImpl/WindowWin.cpp +0 -534
  96. data/GosuImpl/WindowX.cpp +0 -458
  97. data/README.txt +0 -25
  98. data/dependencies/libogg/AUTHORS +0 -4
  99. data/dependencies/libogg/CHANGES +0 -70
  100. data/dependencies/libogg/COPYING +0 -28
  101. data/dependencies/libogg/include/ogg/ogg.h +0 -209
  102. data/dependencies/libogg/include/ogg/os_types.h +0 -147
  103. data/dependencies/libogg/src/bitwise.c +0 -857
  104. data/dependencies/libogg/src/framing.c +0 -2089
  105. data/dependencies/libvorbis/AUTHORS +0 -3
  106. data/dependencies/libvorbis/CHANGES +0 -126
  107. data/dependencies/libvorbis/COPYING +0 -28
  108. data/dependencies/libvorbis/include/vorbis/codec.h +0 -243
  109. data/dependencies/libvorbis/include/vorbis/vorbisenc.h +0 -436
  110. data/dependencies/libvorbis/include/vorbis/vorbisfile.h +0 -206
  111. data/dependencies/libvorbis/lib/analysis.c +0 -120
  112. data/dependencies/libvorbis/lib/backends.h +0 -144
  113. data/dependencies/libvorbis/lib/barkmel.c +0 -64
  114. data/dependencies/libvorbis/lib/bitrate.c +0 -253
  115. data/dependencies/libvorbis/lib/bitrate.h +0 -59
  116. data/dependencies/libvorbis/lib/block.c +0 -1046
  117. data/dependencies/libvorbis/lib/books/coupled/res_books_51.h +0 -12257
  118. data/dependencies/libvorbis/lib/books/coupled/res_books_stereo.h +0 -15783
  119. data/dependencies/libvorbis/lib/books/floor/floor_books.h +0 -1547
  120. data/dependencies/libvorbis/lib/books/uncoupled/res_books_uncoupled.h +0 -7758
  121. data/dependencies/libvorbis/lib/codebook.c +0 -479
  122. data/dependencies/libvorbis/lib/codebook.h +0 -119
  123. data/dependencies/libvorbis/lib/codec_internal.h +0 -167
  124. data/dependencies/libvorbis/lib/envelope.c +0 -375
  125. data/dependencies/libvorbis/lib/envelope.h +0 -80
  126. data/dependencies/libvorbis/lib/floor0.c +0 -222
  127. data/dependencies/libvorbis/lib/floor1.c +0 -1099
  128. data/dependencies/libvorbis/lib/highlevel.h +0 -58
  129. data/dependencies/libvorbis/lib/info.c +0 -664
  130. data/dependencies/libvorbis/lib/lookup.c +0 -94
  131. data/dependencies/libvorbis/lib/lookup.h +0 -32
  132. data/dependencies/libvorbis/lib/lookup_data.h +0 -192
  133. data/dependencies/libvorbis/lib/lpc.c +0 -160
  134. data/dependencies/libvorbis/lib/lpc.h +0 -29
  135. data/dependencies/libvorbis/lib/lsp.c +0 -456
  136. data/dependencies/libvorbis/lib/lsp.h +0 -28
  137. data/dependencies/libvorbis/lib/mapping0.c +0 -816
  138. data/dependencies/libvorbis/lib/masking.h +0 -785
  139. data/dependencies/libvorbis/lib/mdct.c +0 -563
  140. data/dependencies/libvorbis/lib/mdct.h +0 -71
  141. data/dependencies/libvorbis/lib/misc.h +0 -57
  142. data/dependencies/libvorbis/lib/modes/floor_all.h +0 -260
  143. data/dependencies/libvorbis/lib/modes/psych_11.h +0 -51
  144. data/dependencies/libvorbis/lib/modes/psych_16.h +0 -133
  145. data/dependencies/libvorbis/lib/modes/psych_44.h +0 -642
  146. data/dependencies/libvorbis/lib/modes/psych_8.h +0 -101
  147. data/dependencies/libvorbis/lib/modes/residue_16.h +0 -163
  148. data/dependencies/libvorbis/lib/modes/residue_44.h +0 -292
  149. data/dependencies/libvorbis/lib/modes/residue_44p51.h +0 -451
  150. data/dependencies/libvorbis/lib/modes/residue_44u.h +0 -318
  151. data/dependencies/libvorbis/lib/modes/residue_8.h +0 -109
  152. data/dependencies/libvorbis/lib/modes/setup_11.h +0 -143
  153. data/dependencies/libvorbis/lib/modes/setup_16.h +0 -153
  154. data/dependencies/libvorbis/lib/modes/setup_22.h +0 -128
  155. data/dependencies/libvorbis/lib/modes/setup_32.h +0 -132
  156. data/dependencies/libvorbis/lib/modes/setup_44.h +0 -117
  157. data/dependencies/libvorbis/lib/modes/setup_44p51.h +0 -74
  158. data/dependencies/libvorbis/lib/modes/setup_44u.h +0 -74
  159. data/dependencies/libvorbis/lib/modes/setup_8.h +0 -149
  160. data/dependencies/libvorbis/lib/modes/setup_X.h +0 -225
  161. data/dependencies/libvorbis/lib/os.h +0 -186
  162. data/dependencies/libvorbis/lib/psy.c +0 -1203
  163. data/dependencies/libvorbis/lib/psy.h +0 -154
  164. data/dependencies/libvorbis/lib/psytune.c +0 -524
  165. data/dependencies/libvorbis/lib/registry.c +0 -45
  166. data/dependencies/libvorbis/lib/registry.h +0 -32
  167. data/dependencies/libvorbis/lib/res0.c +0 -889
  168. data/dependencies/libvorbis/lib/scales.h +0 -90
  169. data/dependencies/libvorbis/lib/sharedbook.c +0 -579
  170. data/dependencies/libvorbis/lib/smallft.c +0 -1255
  171. data/dependencies/libvorbis/lib/smallft.h +0 -34
  172. data/dependencies/libvorbis/lib/synthesis.c +0 -184
  173. data/dependencies/libvorbis/lib/tone.c +0 -54
  174. data/dependencies/libvorbis/lib/vorbisenc.c +0 -1215
  175. data/dependencies/libvorbis/lib/vorbisfile.c +0 -2337
  176. data/dependencies/libvorbis/lib/window.c +0 -2135
  177. data/dependencies/libvorbis/lib/window.h +0 -26
  178. data/dependencies/ogg_vorbis.license +0 -28
  179. data/reference/gosu.rb +0 -1284
@@ -1,71 +0,0 @@
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: modified discrete cosine transform prototypes
14
- last mod: $Id: mdct.h 16227 2009-07-08 06:58:46Z xiphmont $
15
-
16
- ********************************************************************/
17
-
18
- #ifndef _OGG_mdct_H_
19
- #define _OGG_mdct_H_
20
-
21
- #include "vorbis/codec.h"
22
-
23
-
24
-
25
-
26
-
27
- /*#define MDCT_INTEGERIZED <- be warned there could be some hurt left here*/
28
- #ifdef MDCT_INTEGERIZED
29
-
30
- #define DATA_TYPE int
31
- #define REG_TYPE register int
32
- #define TRIGBITS 14
33
- #define cPI3_8 6270
34
- #define cPI2_8 11585
35
- #define cPI1_8 15137
36
-
37
- #define FLOAT_CONV(x) ((int)((x)*(1<<TRIGBITS)+.5))
38
- #define MULT_NORM(x) ((x)>>TRIGBITS)
39
- #define HALVE(x) ((x)>>1)
40
-
41
- #else
42
-
43
- #define DATA_TYPE float
44
- #define REG_TYPE float
45
- #define cPI3_8 .38268343236508977175F
46
- #define cPI2_8 .70710678118654752441F
47
- #define cPI1_8 .92387953251128675613F
48
-
49
- #define FLOAT_CONV(x) (x)
50
- #define MULT_NORM(x) (x)
51
- #define HALVE(x) ((x)*.5f)
52
-
53
- #endif
54
-
55
-
56
- typedef struct {
57
- int n;
58
- int log2n;
59
-
60
- DATA_TYPE *trig;
61
- int *bitrev;
62
-
63
- DATA_TYPE scale;
64
- } mdct_lookup;
65
-
66
- extern void mdct_init(mdct_lookup *lookup,int n);
67
- extern void mdct_clear(mdct_lookup *l);
68
- extern void mdct_forward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out);
69
- extern void mdct_backward(mdct_lookup *init, DATA_TYPE *in, DATA_TYPE *out);
70
-
71
- #endif
@@ -1,57 +0,0 @@
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: miscellaneous prototypes
14
- last mod: $Id: misc.h 16227 2009-07-08 06:58:46Z xiphmont $
15
-
16
- ********************************************************************/
17
-
18
- #ifndef _V_RANDOM_H_
19
- #define _V_RANDOM_H_
20
- #include "vorbis/codec.h"
21
-
22
- extern void *_vorbis_block_alloc(vorbis_block *vb,long bytes);
23
- extern void _vorbis_block_ripcord(vorbis_block *vb);
24
-
25
- #ifdef ANALYSIS
26
- extern int analysis_noisy;
27
- extern void _analysis_output(char *base,int i,float *v,int n,int bark,int dB,
28
- ogg_int64_t off);
29
- extern void _analysis_output_always(char *base,int i,float *v,int n,int bark,int dB,
30
- ogg_int64_t off);
31
- #endif
32
-
33
- #ifdef DEBUG_MALLOC
34
-
35
- #define _VDBG_GRAPHFILE "malloc.m"
36
- #undef _VDBG_GRAPHFILE
37
- extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line);
38
- extern void _VDBG_free(void *ptr,char *file,long line);
39
-
40
- #ifndef MISC_C
41
- #undef _ogg_malloc
42
- #undef _ogg_calloc
43
- #undef _ogg_realloc
44
- #undef _ogg_free
45
-
46
- #define _ogg_malloc(x) _VDBG_malloc(NULL,(x),__FILE__,__LINE__)
47
- #define _ogg_calloc(x,y) _VDBG_malloc(NULL,(x)*(y),__FILE__,__LINE__)
48
- #define _ogg_realloc(x,y) _VDBG_malloc((x),(y),__FILE__,__LINE__)
49
- #define _ogg_free(x) _VDBG_free((x),__FILE__,__LINE__)
50
- #endif
51
- #endif
52
-
53
- #endif
54
-
55
-
56
-
57
-
@@ -1,260 +0,0 @@
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: key floor settings
14
- last mod: $Id: floor_all.h 17050 2010-03-26 01:34:42Z xiphmont $
15
-
16
- ********************************************************************/
17
-
18
- #include "vorbis/codec.h"
19
- #include "backends.h"
20
- #include "books/floor/floor_books.h"
21
-
22
- static const static_codebook*const _floor_128x4_books[]={
23
- &_huff_book_line_128x4_class0,
24
- &_huff_book_line_128x4_0sub0,
25
- &_huff_book_line_128x4_0sub1,
26
- &_huff_book_line_128x4_0sub2,
27
- &_huff_book_line_128x4_0sub3,
28
- };
29
- static const static_codebook*const _floor_256x4_books[]={
30
- &_huff_book_line_256x4_class0,
31
- &_huff_book_line_256x4_0sub0,
32
- &_huff_book_line_256x4_0sub1,
33
- &_huff_book_line_256x4_0sub2,
34
- &_huff_book_line_256x4_0sub3,
35
- };
36
- static const static_codebook*const _floor_128x7_books[]={
37
- &_huff_book_line_128x7_class0,
38
- &_huff_book_line_128x7_class1,
39
-
40
- &_huff_book_line_128x7_0sub1,
41
- &_huff_book_line_128x7_0sub2,
42
- &_huff_book_line_128x7_0sub3,
43
- &_huff_book_line_128x7_1sub1,
44
- &_huff_book_line_128x7_1sub2,
45
- &_huff_book_line_128x7_1sub3,
46
- };
47
- static const static_codebook*const _floor_256x7_books[]={
48
- &_huff_book_line_256x7_class0,
49
- &_huff_book_line_256x7_class1,
50
-
51
- &_huff_book_line_256x7_0sub1,
52
- &_huff_book_line_256x7_0sub2,
53
- &_huff_book_line_256x7_0sub3,
54
- &_huff_book_line_256x7_1sub1,
55
- &_huff_book_line_256x7_1sub2,
56
- &_huff_book_line_256x7_1sub3,
57
- };
58
- static const static_codebook*const _floor_128x11_books[]={
59
- &_huff_book_line_128x11_class1,
60
- &_huff_book_line_128x11_class2,
61
- &_huff_book_line_128x11_class3,
62
-
63
- &_huff_book_line_128x11_0sub0,
64
- &_huff_book_line_128x11_1sub0,
65
- &_huff_book_line_128x11_1sub1,
66
- &_huff_book_line_128x11_2sub1,
67
- &_huff_book_line_128x11_2sub2,
68
- &_huff_book_line_128x11_2sub3,
69
- &_huff_book_line_128x11_3sub1,
70
- &_huff_book_line_128x11_3sub2,
71
- &_huff_book_line_128x11_3sub3,
72
- };
73
- static const static_codebook*const _floor_128x17_books[]={
74
- &_huff_book_line_128x17_class1,
75
- &_huff_book_line_128x17_class2,
76
- &_huff_book_line_128x17_class3,
77
-
78
- &_huff_book_line_128x17_0sub0,
79
- &_huff_book_line_128x17_1sub0,
80
- &_huff_book_line_128x17_1sub1,
81
- &_huff_book_line_128x17_2sub1,
82
- &_huff_book_line_128x17_2sub2,
83
- &_huff_book_line_128x17_2sub3,
84
- &_huff_book_line_128x17_3sub1,
85
- &_huff_book_line_128x17_3sub2,
86
- &_huff_book_line_128x17_3sub3,
87
- };
88
- static const static_codebook*const _floor_256x4low_books[]={
89
- &_huff_book_line_256x4low_class0,
90
- &_huff_book_line_256x4low_0sub0,
91
- &_huff_book_line_256x4low_0sub1,
92
- &_huff_book_line_256x4low_0sub2,
93
- &_huff_book_line_256x4low_0sub3,
94
- };
95
- static const static_codebook*const _floor_1024x27_books[]={
96
- &_huff_book_line_1024x27_class1,
97
- &_huff_book_line_1024x27_class2,
98
- &_huff_book_line_1024x27_class3,
99
- &_huff_book_line_1024x27_class4,
100
-
101
- &_huff_book_line_1024x27_0sub0,
102
- &_huff_book_line_1024x27_1sub0,
103
- &_huff_book_line_1024x27_1sub1,
104
- &_huff_book_line_1024x27_2sub0,
105
- &_huff_book_line_1024x27_2sub1,
106
- &_huff_book_line_1024x27_3sub1,
107
- &_huff_book_line_1024x27_3sub2,
108
- &_huff_book_line_1024x27_3sub3,
109
- &_huff_book_line_1024x27_4sub1,
110
- &_huff_book_line_1024x27_4sub2,
111
- &_huff_book_line_1024x27_4sub3,
112
- };
113
- static const static_codebook*const _floor_2048x27_books[]={
114
- &_huff_book_line_2048x27_class1,
115
- &_huff_book_line_2048x27_class2,
116
- &_huff_book_line_2048x27_class3,
117
- &_huff_book_line_2048x27_class4,
118
-
119
- &_huff_book_line_2048x27_0sub0,
120
- &_huff_book_line_2048x27_1sub0,
121
- &_huff_book_line_2048x27_1sub1,
122
- &_huff_book_line_2048x27_2sub0,
123
- &_huff_book_line_2048x27_2sub1,
124
- &_huff_book_line_2048x27_3sub1,
125
- &_huff_book_line_2048x27_3sub2,
126
- &_huff_book_line_2048x27_3sub3,
127
- &_huff_book_line_2048x27_4sub1,
128
- &_huff_book_line_2048x27_4sub2,
129
- &_huff_book_line_2048x27_4sub3,
130
- };
131
-
132
- static const static_codebook*const _floor_512x17_books[]={
133
- &_huff_book_line_512x17_class1,
134
- &_huff_book_line_512x17_class2,
135
- &_huff_book_line_512x17_class3,
136
-
137
- &_huff_book_line_512x17_0sub0,
138
- &_huff_book_line_512x17_1sub0,
139
- &_huff_book_line_512x17_1sub1,
140
- &_huff_book_line_512x17_2sub1,
141
- &_huff_book_line_512x17_2sub2,
142
- &_huff_book_line_512x17_2sub3,
143
- &_huff_book_line_512x17_3sub1,
144
- &_huff_book_line_512x17_3sub2,
145
- &_huff_book_line_512x17_3sub3,
146
- };
147
-
148
- static const static_codebook*const _floor_Xx0_books[]={
149
- 0
150
- };
151
-
152
- static const static_codebook*const *const _floor_books[11]={
153
- _floor_128x4_books,
154
- _floor_256x4_books,
155
- _floor_128x7_books,
156
- _floor_256x7_books,
157
- _floor_128x11_books,
158
- _floor_128x17_books,
159
- _floor_256x4low_books,
160
- _floor_1024x27_books,
161
- _floor_2048x27_books,
162
- _floor_512x17_books,
163
- _floor_Xx0_books,
164
- };
165
-
166
- static const vorbis_info_floor1 _floor[11]={
167
- /* 0: 128 x 4 */
168
- {
169
- 1,{0},{4},{2},{0},
170
- {{1,2,3,4}},
171
- 4,{0,128, 33,8,16,70},
172
-
173
- 60,30,500, 1.,18., 128
174
- },
175
- /* 1: 256 x 4 */
176
- {
177
- 1,{0},{4},{2},{0},
178
- {{1,2,3,4}},
179
- 4,{0,256, 66,16,32,140},
180
-
181
- 60,30,500, 1.,18., 256
182
- },
183
- /* 2: 128 x 7 */
184
- {
185
- 2,{0,1},{3,4},{2,2},{0,1},
186
- {{-1,2,3,4},{-1,5,6,7}},
187
- 4,{0,128, 14,4,58, 2,8,28,90},
188
-
189
- 60,30,500, 1.,18., 128
190
- },
191
- /* 3: 256 x 7 */
192
- {
193
- 2,{0,1},{3,4},{2,2},{0,1},
194
- {{-1,2,3,4},{-1,5,6,7}},
195
- 4,{0,256, 28,8,116, 4,16,56,180},
196
-
197
- 60,30,500, 1.,18., 256
198
- },
199
- /* 4: 128 x 11 */
200
- {
201
- 4,{0,1,2,3},{2,3,3,3},{0,1,2,2},{-1,0,1,2},
202
- {{3},{4,5},{-1,6,7,8},{-1,9,10,11}},
203
-
204
- 2,{0,128, 8,33, 4,16,70, 2,6,12, 23,46,90},
205
-
206
- 60,30,500, 1,18., 128
207
- },
208
- /* 5: 128 x 17 */
209
- {
210
- 6,{0,1,1,2,3,3},{2,3,3,3},{0,1,2,2},{-1,0,1,2},
211
- {{3},{4,5},{-1,6,7,8},{-1,9,10,11}},
212
- 2,{0,128, 12,46, 4,8,16, 23,33,70, 2,6,10, 14,19,28, 39,58,90},
213
-
214
- 60,30,500, 1,18., 128
215
- },
216
- /* 6: 256 x 4 (low bitrate version) */
217
- {
218
- 1,{0},{4},{2},{0},
219
- {{1,2,3,4}},
220
- 4,{0,256, 66,16,32,140},
221
-
222
- 60,30,500, 1.,18., 256
223
- },
224
- /* 7: 1024 x 27 */
225
- {
226
- 8,{0,1,2,2,3,3,4,4},{3,4,3,4,3},{0,1,1,2,2},{-1,0,1,2,3},
227
- {{4},{5,6},{7,8},{-1,9,10,11},{-1,12,13,14}},
228
- 2,{0,1024, 93,23,372, 6,46,186,750, 14,33,65, 130,260,556,
229
- 3,10,18,28, 39,55,79,111, 158,220,312, 464,650,850},
230
-
231
- 60,30,500, 3,18., 1024
232
- },
233
- /* 8: 2048 x 27 */
234
- {
235
- 8,{0,1,2,2,3,3,4,4},{3,4,3,4,3},{0,1,1,2,2},{-1,0,1,2,3},
236
- {{4},{5,6},{7,8},{-1,9,10,11},{-1,12,13,14}},
237
- 2,{0,2048, 186,46,744, 12,92,372,1500, 28,66,130, 260,520,1112,
238
- 6,20,36,56, 78,110,158,222, 316,440,624, 928,1300,1700},
239
-
240
- 60,30,500, 3,18., 2048
241
- },
242
- /* 9: 512 x 17 */
243
- {
244
- 6,{0,1,1,2,3,3},{2,3,3,3},{0,1,2,2},{-1,0,1,2},
245
- {{3},{4,5},{-1,6,7,8},{-1,9,10,11}},
246
- 2,{0,512, 46,186, 16,33,65, 93,130,278,
247
- 7,23,39, 55,79,110, 156,232,360},
248
-
249
- 60,30,500, 1,18., 512
250
- },
251
-
252
- /* 10: X x 0 (LFE floor; edge posts only) */
253
- {
254
- 0,{0}, {0},{0},{-1},
255
- {{-1}},
256
- 2,{0,12},
257
- 60,30,500, 1.,18., 10
258
- },
259
-
260
- };
@@ -1,51 +0,0 @@
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: psych_11.h 16227 2009-07-08 06:58:46Z xiphmont $
15
-
16
- ********************************************************************/
17
-
18
- static const double _psy_lowpass_11[3]={4.5,5.5,30.,};
19
-
20
- static const att3 _psy_tone_masteratt_11[3]={
21
- {{ 30, 25, 12}, 0, 0}, /* 0 */
22
- {{ 30, 25, 12}, 0, 0}, /* 0 */
23
- {{ 20, 0, -14}, 0, 0}, /* 0 */
24
- };
25
-
26
- static const vp_adjblock _vp_tonemask_adj_11[3]={
27
- /* adjust for mode zero */
28
- /* 63 125 250 500 1 2 4 8 16 */
29
- {{-20,-20,-20,-20,-20,-16,-10, 0, 0, 0, 0,10, 2, 0,99,99,99}}, /* 0 */
30
- {{-20,-20,-20,-20,-20,-16,-10, 0, 0, 0, 0, 5, 0, 0,99,99,99}}, /* 1 */
31
- {{-20,-20,-20,-20,-20,-16,-10, 0, 0, 0, 0, 0, 0, 0,99,99,99}}, /* 2 */
32
- };
33
-
34
-
35
- static const noise3 _psy_noisebias_11[3]={
36
- /* 63 125 250 500 1k 2k 4k 8k 16k*/
37
- {{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 10, 10, 12, 12, 12, 99, 99, 99},
38
- {-15,-15,-15,-15,-10,-10, -5, 0, 0, 4, 4, 5, 5, 10, 99, 99, 99},
39
- {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
40
-
41
- {{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 10, 10, 12, 12, 12, 99, 99, 99},
42
- {-15,-15,-15,-15,-10,-10, -5, -5, -5, 0, 0, 0, 0, 0, 99, 99, 99},
43
- {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, 99, 99, 99}}},
44
-
45
- {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 99, 99, 99},
46
- {-30,-30,-30,-30,-26,-22,-20,-14,-12,-12,-10,-10,-10,-10, 99, 99, 99},
47
- {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24, 99, 99, 99}}},
48
- };
49
-
50
- static const double _noise_thresh_11[3]={ .3,.5,.5 };
51
-
@@ -1,133 +0,0 @@
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: psych_16.h 16227 2009-07-08 06:58:46Z xiphmont $
15
-
16
- ********************************************************************/
17
-
18
- /* stereo mode by base quality level */
19
- static const adj_stereo _psy_stereo_modes_16[4]={
20
- /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 */
21
- {{ 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
22
- { 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
23
- { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 4, 4},
24
- { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
25
- {{ 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
26
- { 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
27
- { 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4},
28
- { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
29
- {{ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
30
- { 5, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
31
- { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4},
32
- { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
33
- {{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
34
- { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
35
- { 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8},
36
- { 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99}},
37
- };
38
-
39
- static const double _psy_lowpass_16[4]={6.5,8,30.,99.};
40
-
41
- static const att3 _psy_tone_masteratt_16[4]={
42
- {{ 30, 25, 12}, 0, 0}, /* 0 */
43
- {{ 25, 22, 12}, 0, 0}, /* 0 */
44
- {{ 20, 12, 0}, 0, 0}, /* 0 */
45
- {{ 15, 0, -14}, 0, 0}, /* 0 */
46
- };
47
-
48
- static const vp_adjblock _vp_tonemask_adj_16[4]={
49
- /* adjust for mode zero */
50
- /* 63 125 250 500 1 2 4 8 16 */
51
- {{-20,-20,-20,-20,-20,-16,-10, 0, 0, 0, 0,10, 0, 0, 0, 0, 0}}, /* 0 */
52
- {{-20,-20,-20,-20,-20,-16,-10, 0, 0, 0, 0,10, 0, 0, 0, 0, 0}}, /* 1 */
53
- {{-20,-20,-20,-20,-20,-16,-10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, /* 2 */
54
- {{-30,-30,-30,-30,-30,-26,-20,-10, -5, 0, 0, 0, 0, 0, 0, 0, 0}}, /* 2 */
55
- };
56
-
57
-
58
- static const noise3 _psy_noisebias_16_short[4]={
59
- /* 63 125 250 500 1k 2k 4k 8k 16k*/
60
- {{{-15,-15,-15,-15,-15,-10,-10,-5, 4, 10, 10, 10, 10, 12, 12, 14, 20},
61
- {-15,-15,-15,-15,-15,-10,-10, -5, 0, 0, 4, 5, 5, 6, 8, 8, 15},
62
- {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -6, -6}}},
63
-
64
- {{{-15,-15,-15,-15,-15,-10,-10,-5, 4, 6, 6, 6, 6, 8, 10, 12, 20},
65
- {-15,-15,-15,-15,-15,-15,-15,-10, -5, -5, -5, 4, 5, 6, 8, 8, 15},
66
- {-30,-30,-30,-30,-30,-24,-20,-14,-10,-10,-10,-10,-10,-10,-10,-10,-10}}},
67
-
68
- {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 5, 8, 12},
69
- {-20,-20,-20,-20,-16,-12,-20,-14,-10,-10, -8, 0, 0, 0, 0, 2, 5},
70
- {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24,-20,-20,-20}}},
71
-
72
- {{{-15,-15,-15,-15,-15,-12,-10, -8, -5, -5, -5, -5, -5, 0, 0, 0, 6},
73
- {-30,-30,-30,-30,-26,-22,-20,-14,-12,-12,-10,-10,-10,-10,-10,-10, -6},
74
- {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24,-20,-20,-20}}},
75
- };
76
-
77
- static const noise3 _psy_noisebias_16_impulse[4]={
78
- /* 63 125 250 500 1k 2k 4k 8k 16k*/
79
- {{{-15,-15,-15,-15,-15,-10,-10,-5, 4, 10, 10, 10, 10, 12, 12, 14, 20},
80
- {-15,-15,-15,-15,-15,-10,-10, -5, 0, 0, 4, 5, 5, 6, 8, 8, 15},
81
- {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -6, -6}}},
82
-
83
- {{{-15,-15,-15,-15,-15,-10,-10,-5, 4, 4, 4, 4, 5, 5, 6, 8, 15},
84
- {-15,-15,-15,-15,-15,-15,-15,-10, -5, -5, -5, 0, 0, 0, 0, 4, 10},
85
- {-30,-30,-30,-30,-30,-24,-20,-14,-10,-10,-10,-10,-10,-10,-10,-10,-10}}},
86
-
87
- {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 0, 0, 0, 0, 0, 0, 4, 10},
88
- {-20,-20,-20,-20,-16,-12,-20,-14,-10,-10,-10,-10,-10,-10,-10, -7, -5},
89
- {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24,-20,-20,-20}}},
90
-
91
- {{{-15,-15,-15,-15,-15,-12,-10, -8, -5, -5, -5, -5, -5, 0, 0, 0, 6},
92
- {-30,-30,-30,-30,-26,-22,-20,-18,-18,-18,-20,-20,-20,-20,-20,-20,-16},
93
- {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24,-20,-20,-20}}},
94
- };
95
-
96
- static const noise3 _psy_noisebias_16[4]={
97
- /* 63 125 250 500 1k 2k 4k 8k 16k*/
98
- {{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 6, 8, 8, 10, 10, 10, 14, 20},
99
- {-10,-10,-10,-10,-10, -5, -2, -2, 0, 0, 0, 4, 5, 6, 8, 8, 15},
100
- {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -6, -6}}},
101
-
102
- {{{-10,-10,-10,-10, -5, -5, -5, 0, 4, 6, 6, 6, 6, 8, 10, 12, 20},
103
- {-15,-15,-15,-15,-15,-10, -5, -5, 0, 0, 0, 4, 5, 6, 8, 8, 15},
104
- {-30,-30,-30,-30,-30,-24,-20,-14,-10, -6, -8, -8, -6, -6, -6, -6, -6}}},
105
-
106
- {{{-15,-15,-15,-15,-15,-12,-10, -8, 0, 2, 4, 4, 5, 5, 5, 8, 12},
107
- {-20,-20,-20,-20,-16,-12,-20,-10, -5, -5, 0, 0, 0, 0, 0, 2, 5},
108
- {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24,-20,-20,-20}}},
109
-
110
- {{{-15,-15,-15,-15,-15,-12,-10, -8, -5, -5, -5, -5, -5, 0, 0, 0, 6},
111
- {-30,-30,-30,-30,-26,-22,-20,-14,-12,-12,-10,-10,-10,-10,-10,-10, -6},
112
- {-30,-30,-30,-30,-26,-26,-26,-26,-26,-26,-26,-26,-26,-24,-20,-20,-20}}},
113
- };
114
-
115
- static const noiseguard _psy_noiseguards_16[4]={
116
- {10,10,-1},
117
- {10,10,-1},
118
- {20,20,-1},
119
- {20,20,-1},
120
- };
121
-
122
- static const double _noise_thresh_16[4]={ .3,.5,.5,.5 };
123
-
124
- static const int _noise_start_16[3]={ 256,256,9999 };
125
- static const int _noise_part_16[4]={ 8,8,8,8 };
126
-
127
- static const int _psy_ath_floater_16[4]={
128
- -100,-100,-100,-105,
129
- };
130
-
131
- static const int _psy_ath_abs_16[4]={
132
- -130,-130,-130,-140,
133
- };