Browse files

Source release of Wolfenstein 3D Classic Platinum for iOS, 1.1

  • Loading branch information...
1 parent e20e553 commit a82aba6b94e47c9f0a9b7a08a61a5929ad1e4eb4 @tbradshaw tbradshaw committed Jan 31, 2012
Showing with 21,631 additions and 0 deletions.
  1. BIN wolf3d/base/iphone/0.5551
  2. BIN wolf3d/base/iphone/1.5551
  3. BIN wolf3d/base/iphone/2.5551
  4. BIN wolf3d/base/iphone/3.5551
  5. BIN wolf3d/base/iphone/4.5551
  6. BIN wolf3d/base/iphone/5.5551
  7. BIN wolf3d/base/iphone/6.5551
  8. BIN wolf3d/base/iphone/7.5551
  9. BIN wolf3d/base/iphone/8.5551
  10. BIN wolf3d/base/iphone/9.5551
  11. BIN wolf3d/base/iphone/FACE1APIC.5551
  12. BIN wolf3d/base/iphone/FACE1BPIC.5551
  13. BIN wolf3d/base/iphone/FACE1CPIC.5551
  14. BIN wolf3d/base/iphone/FACE2APIC.5551
  15. BIN wolf3d/base/iphone/FACE2BPIC.5551
  16. BIN wolf3d/base/iphone/FACE2CPIC.5551
  17. BIN wolf3d/base/iphone/FACE3APIC.5551
  18. BIN wolf3d/base/iphone/FACE3BPIC.5551
  19. BIN wolf3d/base/iphone/FACE3CPIC.5551
  20. BIN wolf3d/base/iphone/FACE4APIC.5551
  21. BIN wolf3d/base/iphone/FACE4BPIC.5551
  22. BIN wolf3d/base/iphone/FACE4CPIC.5551
  23. BIN wolf3d/base/iphone/FACE5APIC.5551
  24. BIN wolf3d/base/iphone/FACE5BPIC.5551
  25. BIN wolf3d/base/iphone/FACE5CPIC.5551
  26. BIN wolf3d/base/iphone/FACE6APIC.5551
  27. BIN wolf3d/base/iphone/FACE6BPIC.5551
  28. BIN wolf3d/base/iphone/FACE6CPIC.5551
  29. BIN wolf3d/base/iphone/FACE7APIC.5551
  30. BIN wolf3d/base/iphone/FACE7BPIC.5551
  31. BIN wolf3d/base/iphone/FACE7CPIC.5551
  32. BIN wolf3d/base/iphone/FACE8APIC.5551
  33. BIN wolf3d/base/iphone/GOTGATLINGPIC.5551
  34. BIN wolf3d/base/iphone/L_damage.5551
  35. BIN wolf3d/base/iphone/R_damage.5551
  36. BIN wolf3d/base/iphone/advanced_button.5551
  37. BIN wolf3d/base/iphone/background_1.5551
  38. BIN wolf3d/base/iphone/button_back.5551
  39. BIN wolf3d/base/iphone/button_control.5551
  40. BIN wolf3d/base/iphone/button_ep1.5551
  41. BIN wolf3d/base/iphone/button_ep2.5551
  42. BIN wolf3d/base/iphone/button_ep3.5551
  43. BIN wolf3d/base/iphone/button_ep4.5551
  44. BIN wolf3d/base/iphone/button_ep5.5551
  45. BIN wolf3d/base/iphone/button_ep6.5551
  46. BIN wolf3d/base/iphone/button_levels.5551
  47. BIN wolf3d/base/iphone/button_new.5551
  48. BIN wolf3d/base/iphone/button_resume.5551
  49. BIN wolf3d/base/iphone/button_skill1.5551
  50. BIN wolf3d/base/iphone/button_skill2.5551
  51. BIN wolf3d/base/iphone/button_skill3.5551
  52. BIN wolf3d/base/iphone/button_skill4.5551
  53. BIN wolf3d/base/iphone/button_web.5551
  54. BIN wolf3d/base/iphone/diractional_01.5551
  55. BIN wolf3d/base/iphone/diractional_02.5551
  56. BIN wolf3d/base/iphone/diractional_03.5551
  57. BIN wolf3d/base/iphone/ep_1.5551
  58. BIN wolf3d/base/iphone/ep_1_6.5551
  59. BIN wolf3d/base/iphone/font1.5551
  60. BIN wolf3d/base/iphone/gold_key.5551
  61. BIN wolf3d/base/iphone/intermission_256.5551
  62. BIN wolf3d/base/iphone/kills.5551
  63. BIN wolf3d/base/iphone/layout_1.5551
  64. BIN wolf3d/base/iphone/layout_2.5551
  65. BIN wolf3d/base/iphone/layout_3.5551
  66. BIN wolf3d/base/iphone/layout_4.5551
  67. BIN wolf3d/base/iphone/map.5551
  68. BIN wolf3d/base/iphone/menu.5551
  69. BIN wolf3d/base/iphone/music_off.5551
  70. BIN wolf3d/base/iphone/music_on.5551
  71. BIN wolf3d/base/iphone/partime.5551
  72. BIN wolf3d/base/iphone/secrets.5551
  73. BIN wolf3d/base/iphone/shoot.5551
  74. BIN wolf3d/base/iphone/side_2_side.5551
  75. BIN wolf3d/base/iphone/silver_key.5551
  76. BIN wolf3d/base/iphone/stat_bar_1.5551
  77. BIN wolf3d/base/iphone/stat_bar_2.5551
  78. BIN wolf3d/base/iphone/stats.5551
  79. BIN wolf3d/base/iphone/status_hud.5551
  80. BIN wolf3d/base/iphone/treasure.5551
  81. BIN wolf3d/base/iphone/up_down.5551
  82. BIN wolf3d/base/iphone/victory_256.5551
  83. BIN wolf3d/base/iphone/wolf_logo.5551
  84. BIN wolf3d/base/sprites/002.5551
  85. BIN wolf3d/base/sprites/003.5551
  86. BIN wolf3d/base/sprites/005.5551
  87. BIN wolf3d/base/sprites/006.5551
  88. BIN wolf3d/base/sprites/008.5551
  89. BIN wolf3d/base/sprites/009.5551
  90. BIN wolf3d/base/sprites/010.5551
  91. BIN wolf3d/base/sprites/013.5551
  92. BIN wolf3d/base/sprites/014.5551
  93. BIN wolf3d/base/sprites/015.5551
  94. BIN wolf3d/base/sprites/016.5551
  95. BIN wolf3d/base/sprites/018.5551
  96. BIN wolf3d/base/sprites/019.5551
  97. BIN wolf3d/base/sprites/021.5551
  98. BIN wolf3d/base/sprites/022.5551
  99. BIN wolf3d/base/sprites/023.5551
  100. BIN wolf3d/base/sprites/025.5551
  101. BIN wolf3d/base/sprites/026.5551
  102. BIN wolf3d/base/sprites/028.5551
  103. BIN wolf3d/base/sprites/029.5551
  104. BIN wolf3d/base/sprites/030.5551
  105. BIN wolf3d/base/sprites/031.5551
  106. BIN wolf3d/base/sprites/032.5551
  107. BIN wolf3d/base/sprites/033.5551
  108. BIN wolf3d/base/sprites/034.5551
  109. BIN wolf3d/base/sprites/035.5551
  110. BIN wolf3d/base/sprites/037.5551
  111. BIN wolf3d/base/sprites/038.5551
  112. BIN wolf3d/base/sprites/041.5551
  113. BIN wolf3d/base/sprites/514.5551
  114. BIN wolf3d/base/sprites/515.5551
  115. BIN wolf3d/base/sprites/516.5551
  116. BIN wolf3d/base/sprites/517.5551
  117. BIN wolf3d/base/sprites/518.5551
  118. BIN wolf3d/base/sprites/519.5551
  119. BIN wolf3d/base/sprites/520.5551
  120. BIN wolf3d/base/sprites/521.5551
  121. BIN wolf3d/base/sprites/522.5551
  122. BIN wolf3d/base/sprites/523.5551
  123. BIN wolf3d/base/sprites/524.5551
  124. BIN wolf3d/base/sprites/525.5551
  125. BIN wolf3d/base/sprites/526.5551
  126. BIN wolf3d/base/sprites/527.5551
  127. BIN wolf3d/base/sprites/528.5551
  128. BIN wolf3d/base/sprites/529.5551
  129. BIN wolf3d/base/walls/000.5551
  130. BIN wolf3d/base/walls/002.5551
  131. BIN wolf3d/base/walls/004.5551
  132. BIN wolf3d/base/walls/006.5551
  133. BIN wolf3d/base/walls/008.5551
  134. BIN wolf3d/base/walls/010.5551
  135. BIN wolf3d/base/walls/012.5551
  136. BIN wolf3d/base/walls/014.5551
  137. BIN wolf3d/base/walls/016.5551
  138. BIN wolf3d/base/walls/018.5551
  139. BIN wolf3d/base/walls/020.5551
  140. BIN wolf3d/base/walls/022.5551
  141. BIN wolf3d/base/walls/024.5551
  142. BIN wolf3d/base/walls/026.5551
  143. BIN wolf3d/base/walls/028.5551
  144. BIN wolf3d/base/walls/030.5551
  145. BIN wolf3d/base/walls/031.5551
  146. BIN wolf3d/base/walls/032.5551
  147. BIN wolf3d/base/walls/034.5551
  148. BIN wolf3d/base/walls/036.5551
  149. BIN wolf3d/base/walls/038.5551
  150. BIN wolf3d/base/walls/040.5551
  151. BIN wolf3d/base/walls/041.5551
  152. BIN wolf3d/base/walls/042.5551
  153. BIN wolf3d/base/walls/043.5551
  154. BIN wolf3d/base/walls/044.5551
  155. BIN wolf3d/base/walls/046.5551
  156. BIN wolf3d/base/walls/048.5551
  157. BIN wolf3d/base/walls/050.5551
  158. BIN wolf3d/base/walls/052.5551
  159. BIN wolf3d/base/walls/054.5551
  160. BIN wolf3d/base/walls/056.5551
  161. BIN wolf3d/base/walls/058.5551
  162. BIN wolf3d/base/walls/060.5551
  163. BIN wolf3d/base/walls/062.5551
  164. BIN wolf3d/base/walls/064.5551
  165. BIN wolf3d/base/walls/066.5551
  166. BIN wolf3d/base/walls/068.5551
  167. BIN wolf3d/base/walls/070.5551
  168. BIN wolf3d/base/walls/072.5551
  169. BIN wolf3d/base/walls/074.5551
  170. BIN wolf3d/base/walls/076.5551
  171. BIN wolf3d/base/walls/078.5551
  172. BIN wolf3d/base/walls/080.5551
  173. BIN wolf3d/base/walls/082.5551
  174. BIN wolf3d/base/walls/084.5551
  175. BIN wolf3d/base/walls/086.5551
  176. BIN wolf3d/base/walls/088.5551
  177. BIN wolf3d/base/walls/090.5551
  178. BIN wolf3d/base/walls/092.5551
  179. BIN wolf3d/base/walls/094.5551
  180. BIN wolf3d/base/walls/096.5551
  181. BIN wolf3d/base/walls/126.5551
  182. BIN wolf3d/base/walls/128.5551
  183. BIN wolf3d/base/walls/130.5551
  184. BIN wolf3d/base/walls/132.5551
  185. BIN wolf3d/base/walls/133.5551
  186. BIN wolf3d/code/.DS_Store
  187. +19 −0 wolf3d/code/Tremor/CHANGELOG
  188. +28 −0 wolf3d/code/Tremor/COPYING
  189. +38 −0 wolf3d/code/Tremor/Makefile.am
  190. +46 −0 wolf3d/code/Tremor/README
  191. +49 −0 wolf3d/code/Tremor/Version_script.in
  192. +243 −0 wolf3d/code/Tremor/asm_arm.h
  193. +120 −0 wolf3d/code/Tremor/autogen.sh
  194. +130 −0 wolf3d/code/Tremor/backends.h
  195. +265 −0 wolf3d/code/Tremor/bitwise.c
  196. +453 −0 wolf3d/code/Tremor/block.c
  197. +24 −0 wolf3d/code/Tremor/block.h
  198. +371 −0 wolf3d/code/Tremor/codebook.c
  199. +102 −0 wolf3d/code/Tremor/codebook.h
  200. +92 −0 wolf3d/code/Tremor/codec_internal.h
  201. +25 −0 wolf3d/code/Tremor/config_types.h
  202. +131 −0 wolf3d/code/Tremor/configure.in
  203. +6 −0 wolf3d/code/Tremor/debian/Makefile.am
  204. +9 −0 wolf3d/code/Tremor/debian/changelog
  205. +22 −0 wolf3d/code/Tremor/debian/control
  206. +37 −0 wolf3d/code/Tremor/debian/copyright
  207. +8 −0 wolf3d/code/Tremor/debian/libvorbisidec-dev.install
  208. +1 −0 wolf3d/code/Tremor/debian/libvorbisidec1.install
  209. +151 −0 wolf3d/code/Tremor/debian/rules
  210. +132 −0 wolf3d/code/Tremor/doc/OggVorbis_File.html
  211. +111 −0 wolf3d/code/Tremor/doc/build.html
  212. +113 −0 wolf3d/code/Tremor/doc/callbacks.html
  213. +61 −0 wolf3d/code/Tremor/doc/datastructures.html
  214. +82 −0 wolf3d/code/Tremor/doc/decoding.html
  215. +67 −0 wolf3d/code/Tremor/doc/diff.html
  216. +205 −0 wolf3d/code/Tremor/doc/example.html
  217. +95 −0 wolf3d/code/Tremor/doc/fileinfo.html
  218. +53 −0 wolf3d/code/Tremor/doc/index.html
  219. +101 −0 wolf3d/code/Tremor/doc/initialization.html
  220. +72 −0 wolf3d/code/Tremor/doc/ov_bitrate.html
  221. +65 −0 wolf3d/code/Tremor/doc/ov_bitrate_instant.html
  222. +78 −0 wolf3d/code/Tremor/doc/ov_callbacks.html
  223. +64 −0 wolf3d/code/Tremor/doc/ov_clear.html
  224. +66 −0 wolf3d/code/Tremor/doc/ov_comment.html
  225. +64 −0 wolf3d/code/Tremor/doc/ov_info.html
  226. +115 −0 wolf3d/code/Tremor/doc/ov_open.html
  227. +110 −0 wolf3d/code/Tremor/doc/ov_open_callbacks.html
  228. +81 −0 wolf3d/code/Tremor/doc/ov_pcm_seek.html
  229. +83 −0 wolf3d/code/Tremor/doc/ov_pcm_seek_page.html
  230. +63 −0 wolf3d/code/Tremor/doc/ov_pcm_tell.html
  231. +67 −0 wolf3d/code/Tremor/doc/ov_pcm_total.html
  232. +75 −0 wolf3d/code/Tremor/doc/ov_raw_seek.html
  233. +63 −0 wolf3d/code/Tremor/doc/ov_raw_tell.html
  234. +68 −0 wolf3d/code/Tremor/doc/ov_raw_total.html
  235. +115 −0 wolf3d/code/Tremor/doc/ov_read.html
  236. +63 −0 wolf3d/code/Tremor/doc/ov_seekable.html
  237. +67 −0 wolf3d/code/Tremor/doc/ov_serialnumber.html
  238. +64 −0 wolf3d/code/Tremor/doc/ov_streams.html
  239. +89 −0 wolf3d/code/Tremor/doc/ov_test.html
  240. +90 −0 wolf3d/code/Tremor/doc/ov_test_callbacks.html
  241. +82 −0 wolf3d/code/Tremor/doc/ov_test_open.html
  242. +70 −0 wolf3d/code/Tremor/doc/ov_time_seek.html
  243. +83 −0 wolf3d/code/Tremor/doc/ov_time_seek_page.html
  244. +63 −0 wolf3d/code/Tremor/doc/ov_time_tell.html
  245. +67 −0 wolf3d/code/Tremor/doc/ov_time_total.html
  246. +61 −0 wolf3d/code/Tremor/doc/overview.html
  247. +75 −0 wolf3d/code/Tremor/doc/reference.html
  248. +77 −0 wolf3d/code/Tremor/doc/return.html
  249. +74 −0 wolf3d/code/Tremor/doc/seeking.html
  250. +7 −0 wolf3d/code/Tremor/doc/style.css
  251. +50 −0 wolf3d/code/Tremor/doc/threads.html
  252. +70 −0 wolf3d/code/Tremor/doc/vorbis_comment.html
  253. +80 −0 wolf3d/code/Tremor/doc/vorbis_info.html
  254. +435 −0 wolf3d/code/Tremor/floor0.c
  255. +441 −0 wolf3d/code/Tremor/floor1.c
  256. +1,126 −0 wolf3d/code/Tremor/framing.c
  257. +356 −0 wolf3d/code/Tremor/info.c
  258. +202 −0 wolf3d/code/Tremor/ivorbiscodec.h
  259. +130 −0 wolf3d/code/Tremor/ivorbisfile.h
  260. +86 −0 wolf3d/code/Tremor/ivorbisfile_example.c
  261. +136 −0 wolf3d/code/Tremor/lsp_lookup.h
  262. +322 −0 wolf3d/code/Tremor/mapping0.c
  263. +510 −0 wolf3d/code/Tremor/mdct.c
  264. +52 −0 wolf3d/code/Tremor/mdct.h
  265. +540 −0 wolf3d/code/Tremor/mdct_lookup.h
  266. +244 −0 wolf3d/code/Tremor/misc.h
  267. +206 −0 wolf3d/code/Tremor/ogg.h
  268. +64 −0 wolf3d/code/Tremor/os.h
  269. +88 −0 wolf3d/code/Tremor/os_types.h
  270. +50 −0 wolf3d/code/Tremor/registry.c
  271. +40 −0 wolf3d/code/Tremor/registry.h
  272. +342 −0 wolf3d/code/Tremor/res012.c
  273. +439 −0 wolf3d/code/Tremor/sharedbook.c
  274. +113 −0 wolf3d/code/Tremor/synthesis.c
  275. +1,586 −0 wolf3d/code/Tremor/vorbisfile.c
  276. +83 −0 wolf3d/code/Tremor/window.c
  277. +27 −0 wolf3d/code/Tremor/window.h
  278. +2,084 −0 wolf3d/code/Tremor/window_lookup.h
  279. +172 −0 wolf3d/code/env/angle.c
  280. +53 −0 wolf3d/code/env/angle.h
  281. +50 −0 wolf3d/code/env/app_def.h
  282. +60 −0 wolf3d/code/env/arch.c
  283. +273 −0 wolf3d/code/env/arch.h
  284. +1,195 −0 wolf3d/code/env/cmd.c
  285. +150 −0 wolf3d/code/env/cmd.h
  286. +518 −0 wolf3d/code/env/com_string.c
  287. +87 −0 wolf3d/code/env/com_string.h
  288. +593 −0 wolf3d/code/env/common.c
  289. +207 −0 wolf3d/code/env/common.h
  290. +62 −0 wolf3d/code/env/common_utils.h
  291. +811 −0 wolf3d/code/env/console.c
  292. +86 −0 wolf3d/code/env/console.h
  293. +765 −0 wolf3d/code/env/cvar.c
  294. +162 −0 wolf3d/code/env/cvar.h
  295. +302 −0 wolf3d/code/env/fileio.c
  296. +162 −0 wolf3d/code/env/files.c
  297. +161 −0 wolf3d/code/env/filestring.c
  298. +55 −0 wolf3d/code/env/filestring.h
  299. +134 −0 wolf3d/code/env/filesystem.h
Sorry, we could not display the entire diff because too many files (421) changed.
View
BIN wolf3d/base/iphone/0.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/2.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/3.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/4.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/5.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/6.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/7.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/8.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/9.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE1APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE1BPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE1CPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE2APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE2BPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE2CPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE3APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE3BPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE3CPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE4APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE4BPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE4CPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE5APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE5BPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE5CPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE6APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE6BPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE6CPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE7APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE7BPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE7CPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/FACE8APIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/GOTGATLINGPIC.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/L_damage.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/R_damage.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/advanced_button.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/background_1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_back.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_control.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_ep1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_ep2.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_ep3.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_ep4.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_ep5.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_ep6.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_levels.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_new.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_resume.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_skill1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_skill2.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_skill3.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_skill4.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/button_web.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/diractional_01.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/diractional_02.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/diractional_03.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/ep_1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/ep_1_6.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/font1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/gold_key.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/intermission_256.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/kills.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/layout_1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/layout_2.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/layout_3.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/layout_4.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/map.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/menu.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/music_off.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/music_on.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/partime.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/secrets.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/shoot.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/side_2_side.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/silver_key.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/stat_bar_1.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/stat_bar_2.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/stats.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/status_hud.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/treasure.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/up_down.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/victory_256.5551
Binary file not shown.
View
BIN wolf3d/base/iphone/wolf_logo.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/002.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/003.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/005.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/006.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/008.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/009.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/010.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/013.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/014.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/015.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/016.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/018.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/019.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/021.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/022.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/023.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/025.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/026.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/028.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/029.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/030.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/031.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/032.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/033.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/034.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/035.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/037.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/038.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/041.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/514.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/515.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/516.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/517.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/518.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/519.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/520.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/521.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/522.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/523.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/524.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/525.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/526.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/527.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/528.5551
Binary file not shown.
View
BIN wolf3d/base/sprites/529.5551
Binary file not shown.
View
BIN wolf3d/base/walls/000.5551
Binary file not shown.
View
BIN wolf3d/base/walls/002.5551
Binary file not shown.
View
BIN wolf3d/base/walls/004.5551
Binary file not shown.
View
BIN wolf3d/base/walls/006.5551
Binary file not shown.
View
BIN wolf3d/base/walls/008.5551
Binary file not shown.
View
BIN wolf3d/base/walls/010.5551
Binary file not shown.
View
BIN wolf3d/base/walls/012.5551
Binary file not shown.
View
BIN wolf3d/base/walls/014.5551
Binary file not shown.
View
BIN wolf3d/base/walls/016.5551
Binary file not shown.
View
BIN wolf3d/base/walls/018.5551
Binary file not shown.
View
BIN wolf3d/base/walls/020.5551
Binary file not shown.
View
BIN wolf3d/base/walls/022.5551
Binary file not shown.
View
BIN wolf3d/base/walls/024.5551
Binary file not shown.
View
BIN wolf3d/base/walls/026.5551
Binary file not shown.
View
BIN wolf3d/base/walls/028.5551
Binary file not shown.
View
BIN wolf3d/base/walls/030.5551
Binary file not shown.
View
BIN wolf3d/base/walls/031.5551
Binary file not shown.
View
BIN wolf3d/base/walls/032.5551
Binary file not shown.
View
BIN wolf3d/base/walls/034.5551
Binary file not shown.
View
BIN wolf3d/base/walls/036.5551
Binary file not shown.
View
BIN wolf3d/base/walls/038.5551
Binary file not shown.
View
BIN wolf3d/base/walls/040.5551
Binary file not shown.
View
BIN wolf3d/base/walls/041.5551
Binary file not shown.
View
BIN wolf3d/base/walls/042.5551
Binary file not shown.
View
BIN wolf3d/base/walls/043.5551
Binary file not shown.
View
BIN wolf3d/base/walls/044.5551
Binary file not shown.
View
BIN wolf3d/base/walls/046.5551
Binary file not shown.
View
BIN wolf3d/base/walls/048.5551
Binary file not shown.
View
BIN wolf3d/base/walls/050.5551
Binary file not shown.
View
BIN wolf3d/base/walls/052.5551
Binary file not shown.
View
BIN wolf3d/base/walls/054.5551
Binary file not shown.
View
BIN wolf3d/base/walls/056.5551
Binary file not shown.
View
BIN wolf3d/base/walls/058.5551
Binary file not shown.
View
BIN wolf3d/base/walls/060.5551
Binary file not shown.
View
BIN wolf3d/base/walls/062.5551
Binary file not shown.
View
BIN wolf3d/base/walls/064.5551
Binary file not shown.
View
BIN wolf3d/base/walls/066.5551
Binary file not shown.
View
BIN wolf3d/base/walls/068.5551
Binary file not shown.
View
BIN wolf3d/base/walls/070.5551
Binary file not shown.
View
BIN wolf3d/base/walls/072.5551
Binary file not shown.
View
BIN wolf3d/base/walls/074.5551
Binary file not shown.
View
BIN wolf3d/base/walls/076.5551
Binary file not shown.
View
BIN wolf3d/base/walls/078.5551
Binary file not shown.
View
BIN wolf3d/base/walls/080.5551
Binary file not shown.
View
BIN wolf3d/base/walls/082.5551
Binary file not shown.
View
BIN wolf3d/base/walls/084.5551
Binary file not shown.
View
BIN wolf3d/base/walls/086.5551
Binary file not shown.
View
BIN wolf3d/base/walls/088.5551
Binary file not shown.
View
BIN wolf3d/base/walls/090.5551
Binary file not shown.
View
BIN wolf3d/base/walls/092.5551
Binary file not shown.
View
BIN wolf3d/base/walls/094.5551
Binary file not shown.
View
BIN wolf3d/base/walls/096.5551
Binary file not shown.
View
BIN wolf3d/base/walls/126.5551
Binary file not shown.
View
BIN wolf3d/base/walls/128.5551
Binary file not shown.
View
BIN wolf3d/base/walls/130.5551
Binary file not shown.
View
BIN wolf3d/base/walls/132.5551
Binary file not shown.
View
BIN wolf3d/base/walls/133.5551
Binary file not shown.
View
BIN wolf3d/code/.DS_Store
Binary file not shown.
View
19 wolf3d/code/Tremor/CHANGELOG
@@ -0,0 +1,19 @@
+*** 20020517: 1.0.2 ***
+
+ Playback bugfix to floor1; mode mistakenly used for sizing instead
+ of blockflag
+
+*** 20020515: 1.0.1 ***
+
+ Added complete API documentation to source tarball. No code
+ changes.
+
+*** 20020412: 1.0.1 ***
+
+ Fixed a clipping bug that affected ARM processors; negative
+ overflows were being properly clipped, but then clobbered to
+ positive by the positive overflow chec (asm_arm.h:CLIP_TO_15)
+
+*** 20020403: 1.0.0 ***
+
+ Initial version
View
28 wolf3d/code/Tremor/COPYING
@@ -0,0 +1,28 @@
+Copyright (c) 2002, Xiph.org Foundation
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+- Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+- Neither the name of the Xiph.org Foundation nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
38 wolf3d/code/Tremor/Makefile.am
@@ -0,0 +1,38 @@
+AUTOMAKE_OPTIONS = foreign
+
+INCLUDES = -I./
+
+lib_LTLIBRARIES = libvorbisidec.la
+
+libvorbisidec_la_SOURCES = mdct.c block.c window.c \
+ synthesis.c info.c \
+ floor1.c floor0.c vorbisfile.c \
+ res012.c mapping0.c registry.c codebook.c \
+ sharedbook.c framing.c bitwise.c \
+ codebook.h misc.h mdct_lookup.h\
+ os.h mdct.h block.h ivorbisfile.h lsp_lookup.h\
+ registry.h window.h window_lookup.h\
+ codec_internal.h backends.h ogg.h \
+ asm_arm.h ivorbiscodec.h
+libvorbisidec_la_LDFLAGS = -version-info @V_LIB_CURRENT@:@V_LIB_REVISION@:@V_LIB_AGE@
+
+EXTRA_PROGRAMS = ivorbisfile_example
+CLEANFILES = $(EXTRA_PROGRAMS) $(lib_LTLIBRARIES)
+
+ivorbisfile_example_SOURCES = ivorbisfile_example.c
+ivorbisfile_example_LDFLAGS = -static
+ivorbisfile_example_LDADD = libvorbisidec.la
+
+includedir = $(prefix)/include/tremor
+
+include_HEADERS = ivorbiscodec.h ivorbisfile.h ogg.h os_types.h config_types.h
+
+example:
+ -ln -fs . vorbis
+ $(MAKE) ivorbisfile_example
+
+debug:
+ $(MAKE) all CFLAGS="@DEBUG@"
+
+profile:
+ $(MAKE) all CFLAGS="@PROFILE@"
View
46 wolf3d/code/Tremor/README
@@ -0,0 +1,46 @@
+This README covers the Ogg Vorbis 'Tremor' integer playback codec
+source as of date 2002 09 02, version 1.0.0.
+
+ ******
+
+The C source in this package will build on any ANSI C compiler and
+function completely and properly on any platform. The included build
+system assumes GNU build system and make tools (m4, automake,
+autoconf, libtool and gmake). GCC is not required, although GCC is
+the most tested compiler. To build using GNU tools, type in the
+source directory:
+
+./autogen.sh
+make
+
+Currently, the source implements playback in pure C on all platforms
+except ARM, where a [currently] small amount of assembly (see
+asm_arm.h) is used to implement 64 bit math operations and fast LSP
+computation. If building on ARM without the benefit of GNU build
+system tools, be sure that '_ARM_ASSEM_' is #defined by the build
+system if this assembly is desired, else the resulting library will
+use whatever 64 bit math builtins the compiler implements.
+
+No math library is required by this source. No floating point
+operations are used at any point in either setup or decode. This
+decoder library will properly decode any past, current or future
+Vorbis I file or stream.
+
+ ********
+
+The build system produces a static and [when supported by the OS]
+dynamic library named 'libvorbisidec'. This library exposes an API
+nearly identical to the BSD reference library's 'libvorbisfile',
+including all the features familiar to users of vorbisfile. This API
+is similar enough that the proper header file to include is named
+'ivorbisfile.h' [included in the source build directory]. Lower level
+libvorbis-style headers and structures are in 'ivorbiscodec.h'
+[included in the source build directory]. A simple example program,
+ivorbisfile_example.c, can be built with 'make example'.
+
+ ********
+
+Detailed Tremor API Documentation begins at doc/index.html
+
+Monty
+xiph.org
View
49 wolf3d/code/Tremor/Version_script.in
@@ -0,0 +1,49 @@
+#
+# Export file for libvorbisidec
+#
+# Only the symbols listed in the global section will be callable from
+# applications linking to libvorbisidec.
+#
+
+@PACKAGE@.so.1
+{
+ global:
+ ov_clear;
+ ov_open;
+ ov_open_callbacks;
+ ov_test;
+ ov_test_callbacks;
+ ov_test_open;
+ ov_bitrate;
+ ov_bitrate_instant;
+ ov_streams;
+ ov_seekable;
+ ov_serialnumber;
+ ov_raw_total;
+ ov_pcm_total;
+ ov_time_total;
+ ov_raw_seek;
+ ov_pcm_seek;
+ ov_pcm_seek_page;
+ ov_time_seek;
+ ov_time_seek_page;
+ ov_raw_tell;
+ ov_pcm_tell;
+ ov_time_tell;
+ ov_info;
+ ov_comment;
+ ov_read;
+
+ vorbis_info_init;
+ vorbis_info_clear;
+ vorbis_info_blocksize;
+ vorbis_comment_init;
+ vorbis_comment_add;
+ vorbis_comment_add_tag;
+ vorbis_comment_query;
+ vorbis_comment_query_count;
+ vorbis_comment_clear;
+
+ local:
+ *;
+};
View
243 wolf3d/code/Tremor/asm_arm.h
@@ -0,0 +1,243 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
+ * *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
+ * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
+ * *
+ ********************************************************************
+
+ function: arm7 and later wide math functions
+
+ ********************************************************************/
+
+#ifdef _ARM_ASSEM_
+
+#if !defined(_V_WIDE_MATH) && !defined(_LOW_ACCURACY_)
+#define _V_WIDE_MATH
+
+static inline ogg_int32_t MULT32(ogg_int32_t x, ogg_int32_t y) {
+ int lo,hi;
+ asm volatile("smull\t%0, %1, %2, %3"
+ : "=&r"(lo),"=&r"(hi)
+ : "%r"(x),"r"(y)
+ : "cc");
+ return(hi);
+}
+
+static inline ogg_int32_t MULT31(ogg_int32_t x, ogg_int32_t y) {
+ return MULT32(x,y)<<1;
+}
+
+static inline ogg_int32_t MULT31_SHIFT15(ogg_int32_t x, ogg_int32_t y) {
+ int lo,hi;
+ asm volatile("smull %0, %1, %2, %3\n\t"
+ "movs %0, %0, lsr #15\n\t"
+ "adc %1, %0, %1, lsl #17\n\t"
+ : "=&r"(lo),"=&r"(hi)
+ : "%r"(x),"r"(y)
+ : "cc");
+ return(hi);
+}
+
+#define MB() asm volatile ("" : : : "memory")
+
+static inline void XPROD32(ogg_int32_t a, ogg_int32_t b,
+ ogg_int32_t t, ogg_int32_t v,
+ ogg_int32_t *x, ogg_int32_t *y)
+{
+ int x1, y1, l;
+ asm( "smull %0, %1, %4, %6\n\t"
+ "smlal %0, %1, %5, %7\n\t"
+ "rsb %3, %4, #0\n\t"
+ "smull %0, %2, %5, %6\n\t"
+ "smlal %0, %2, %3, %7"
+ : "=&r" (l), "=&r" (x1), "=&r" (y1), "=r" (a)
+ : "3" (a), "r" (b), "r" (t), "r" (v)
+ : "cc" );
+ *x = x1;
+ MB();
+ *y = y1;
+}
+
+static inline void XPROD31(ogg_int32_t a, ogg_int32_t b,
+ ogg_int32_t t, ogg_int32_t v,
+ ogg_int32_t *x, ogg_int32_t *y)
+{
+ int x1, y1, l;
+ asm( "smull %0, %1, %4, %6\n\t"
+ "smlal %0, %1, %5, %7\n\t"
+ "rsb %3, %4, #0\n\t"
+ "smull %0, %2, %5, %6\n\t"
+ "smlal %0, %2, %3, %7"
+ : "=&r" (l), "=&r" (x1), "=&r" (y1), "=r" (a)
+ : "3" (a), "r" (b), "r" (t), "r" (v)
+ : "cc" );
+ *x = x1 << 1;
+ MB();
+ *y = y1 << 1;
+}
+
+static inline void XNPROD31(ogg_int32_t a, ogg_int32_t b,
+ ogg_int32_t t, ogg_int32_t v,
+ ogg_int32_t *x, ogg_int32_t *y)
+{
+ int x1, y1, l;
+ asm( "rsb %2, %4, #0\n\t"
+ "smull %0, %1, %3, %5\n\t"
+ "smlal %0, %1, %2, %6\n\t"
+ "smull %0, %2, %4, %5\n\t"
+ "smlal %0, %2, %3, %6"
+ : "=&r" (l), "=&r" (x1), "=&r" (y1)
+ : "r" (a), "r" (b), "r" (t), "r" (v)
+ : "cc" );
+ *x = x1 << 1;
+ MB();
+ *y = y1 << 1;
+}
+
+#endif
+
+#ifndef _V_CLIP_MATH
+#define _V_CLIP_MATH
+
+static inline ogg_int32_t CLIP_TO_15(ogg_int32_t x) {
+ int tmp;
+ asm volatile("subs %1, %0, #32768\n\t"
+ "movpl %0, #0x7f00\n\t"
+ "orrpl %0, %0, #0xff\n"
+ "adds %1, %0, #32768\n\t"
+ "movmi %0, #0x8000"
+ : "+r"(x),"=r"(tmp)
+ :
+ : "cc");
+ return(x);
+}
+
+#endif
+
+#ifndef _V_LSP_MATH_ASM
+#define _V_LSP_MATH_ASM
+
+static inline void lsp_loop_asm(ogg_uint32_t *qip,ogg_uint32_t *pip,
+ ogg_int32_t *qexpp,
+ ogg_int32_t *ilsp,ogg_int32_t wi,
+ ogg_int32_t m){
+
+ ogg_uint32_t qi=*qip,pi=*pip;
+ ogg_int32_t qexp=*qexpp;
+
+ asm("mov r0,%3;"
+ "mov r1,%5,asr#1;"
+ "add r0,r0,r1,lsl#3;"
+ "1:"
+
+ "ldmdb r0!,{r1,r3};"
+ "subs r1,r1,%4;" //ilsp[j]-wi
+ "rsbmi r1,r1,#0;" //labs(ilsp[j]-wi)
+ "umull %0,r2,r1,%0;" //qi*=labs(ilsp[j]-wi)
+
+ "subs r1,r3,%4;" //ilsp[j+1]-wi
+ "rsbmi r1,r1,#0;" //labs(ilsp[j+1]-wi)
+ "umull %1,r3,r1,%1;" //pi*=labs(ilsp[j+1]-wi)
+
+ "cmn r2,r3;" // shift down 16?
+ "beq 0f;"
+ "add %2,%2,#16;"
+ "mov %0,%0,lsr #16;"
+ "orr %0,%0,r2,lsl #16;"
+ "mov %1,%1,lsr #16;"
+ "orr %1,%1,r3,lsl #16;"
+ "0:"
+ "cmp r0,%3;\n"
+ "bhi 1b;\n"
+
+ // odd filter assymetry
+ "ands r0,%5,#1;\n"
+ "beq 2f;\n"
+ "add r0,%3,%5,lsl#2;\n"
+
+ "ldr r1,[r0,#-4];\n"
+ "mov r0,#0x4000;\n"
+
+ "subs r1,r1,%4;\n" //ilsp[j]-wi
+ "rsbmi r1,r1,#0;\n" //labs(ilsp[j]-wi)
+ "umull %0,r2,r1,%0;\n" //qi*=labs(ilsp[j]-wi)
+ "umull %1,r3,r0,%1;\n" //pi*=labs(ilsp[j+1]-wi)
+
+ "cmn r2,r3;\n" // shift down 16?
+ "beq 2f;\n"
+ "add %2,%2,#16;\n"
+ "mov %0,%0,lsr #16;\n"
+ "orr %0,%0,r2,lsl #16;\n"
+ "mov %1,%1,lsr #16;\n"
+ "orr %1,%1,r3,lsl #16;\n"
+
+ //qi=(pi>>shift)*labs(ilsp[j]-wi);
+ //pi=(qi>>shift)*labs(ilsp[j+1]-wi);
+ //qexp+=shift;
+
+ //}
+
+ /* normalize to max 16 sig figs */
+ "2:"
+ "mov r2,#0;"
+ "orr r1,%0,%1;"
+ "tst r1,#0xff000000;"
+ "addne r2,r2,#8;"
+ "movne r1,r1,lsr #8;"
+ "tst r1,#0x00f00000;"
+ "addne r2,r2,#4;"
+ "movne r1,r1,lsr #4;"
+ "tst r1,#0x000c0000;"
+ "addne r2,r2,#2;"
+ "movne r1,r1,lsr #2;"
+ "tst r1,#0x00020000;"
+ "addne r2,r2,#1;"
+ "movne r1,r1,lsr #1;"
+ "tst r1,#0x00010000;"
+ "addne r2,r2,#1;"
+ "mov %0,%0,lsr r2;"
+ "mov %1,%1,lsr r2;"
+ "add %2,%2,r2;"
+
+ : "+r"(qi),"+r"(pi),"+r"(qexp)
+ : "r"(ilsp),"r"(wi),"r"(m)
+ : "r0","r1","r2","r3","cc");
+
+ *qip=qi;
+ *pip=pi;
+ *qexpp=qexp;
+}
+
+static inline void lsp_norm_asm(ogg_uint32_t *qip,ogg_int32_t *qexpp){
+
+ ogg_uint32_t qi=*qip;
+ ogg_int32_t qexp=*qexpp;
+
+ asm("tst %0,#0x0000ff00;"
+ "moveq %0,%0,lsl #8;"
+ "subeq %1,%1,#8;"
+ "tst %0,#0x0000f000;"
+ "moveq %0,%0,lsl #4;"
+ "subeq %1,%1,#4;"
+ "tst %0,#0x0000c000;"
+ "moveq %0,%0,lsl #2;"
+ "subeq %1,%1,#2;"
+ "tst %0,#0x00008000;"
+ "moveq %0,%0,lsl #1;"
+ "subeq %1,%1,#1;"
+ : "+r"(qi),"+r"(qexp)
+ :
+ : "cc");
+ *qip=qi;
+ *qexpp=qexp;
+}
+
+#endif
+#endif
+
View
120 wolf3d/code/Tremor/autogen.sh
@@ -0,0 +1,120 @@
+#!/bin/sh
+# Run this to set up the build system: configure, makefiles, etc.
+# (based on the version in enlightenment's cvs)
+
+package="vorbisdec"
+
+olddir=`pwd`
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+cd "$srcdir"
+DIE=0
+
+echo "checking for autoconf... "
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]\).*/\1/"
+VERSIONMKINT="sed -e s/[^0-9]//"
+
+# do we need automake?
+if test -r Makefile.am; then
+ AM_OPTIONS=`fgrep AUTOMAKE_OPTIONS Makefile.am`
+ AM_NEEDED=`echo $AM_OPTIONS | $VERSIONGREP`
+ if test x"$AM_NEEDED" = "x$AM_OPTIONS"; then
+ AM_NEEDED=""
+ fi
+ if test -z $AM_NEEDED; then
+ echo -n "checking for automake... "
+ AUTOMAKE=automake
+ ACLOCAL=aclocal
+ if ($AUTOMAKE --version < /dev/null > /dev/null 2>&1); then
+ echo "yes"
+ else
+ echo "no"
+ AUTOMAKE=
+ fi
+ else
+ echo -n "checking for automake $AM_NEEDED or later... "
+ for am in automake-$AM_NEEDED automake$AM_NEEDED automake; do
+ ($am --version < /dev/null > /dev/null 2>&1) || continue
+ ver=`$am --version < /dev/null | head -n 1 | $VERSIONGREP | $VERSIONMKINT`
+ verneeded=`echo $AM_NEEDED | $VERSIONMKINT`
+ if test $ver -ge $verneeded; then
+ AUTOMAKE=$am
+ echo $AUTOMAKE
+ break
+ fi
+ done
+ test -z $AUTOMAKE && echo "no"
+ echo -n "checking for aclocal $AM_NEEDED or later... "
+ for ac in aclocal-$AM_NEEDED aclocal$AM_NEEDED aclocal; do
+ ($ac --version < /dev/null > /dev/null 2>&1) || continue
+ ver=`$ac --version < /dev/null | head -n 1 | $VERSIONGREP | $VERSIONMKINT`
+ verneeded=`echo $AM_NEEDED | $VERSIONMKINT`
+ if test $ver -ge $verneeded; then
+ ACLOCAL=$ac
+ echo $ACLOCAL
+ break
+ fi
+ done
+ test -z $ACLOCAL && echo "no"
+ fi
+ test -z $AUTOMAKE || test -z $ACLOCAL && {
+ echo
+ echo "You must have automake installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ exit 1
+ }
+fi
+
+echo -n "checking for libtool... "
+for LIBTOOLIZE in libtoolize glibtoolize nope; do
+ ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 && break
+done
+if test x$LIBTOOLIZE = xnope; then
+ echo "nope."
+ LIBTOOLIZE=libtoolize
+else
+ echo $LIBTOOLIZE
+fi
+($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have libtool installed to compile $package."
+ echo "Download the appropriate package for your system,"
+ echo "or get the source from one of the GNU ftp sites"
+ echo "listed in http://www.gnu.org/order/ftp.html"
+ DIE=1
+}
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+fi
+
+echo "Generating configuration files for $package, please wait...."
+
+echo " $ACLOCAL $ACLOCAL_FLAGS"
+$ACLOCAL $ACLOCAL_FLAGS || exit 1
+echo " $LIBTOOLIZE --automake"
+$LIBTOOLIZE --automake || exit 1
+echo " autoheader"
+autoheader || exit 1
+echo " $AUTOMAKE --add-missing $AUTOMAKE_FLAGS"
+$AUTOMAKE --add-missing $AUTOMAKE_FLAGS || exit 1
+echo " autoconf"
+autoconf || exit 1
+
+cd $olddir
+$srcdir/configure --enable-maintainer-mode "$@" && echo
View
130 wolf3d/code/Tremor/backends.h
@@ -0,0 +1,130 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
+ * *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
+ * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
+ * *
+ ********************************************************************
+
+ function: backend and mapping structures
+
+ ********************************************************************/
+
+/* this is exposed up here because we need it for static modes.
+ Lookups for each backend aren't exposed because there's no reason
+ to do so */
+
+#ifndef _vorbis_backend_h_
+#define _vorbis_backend_h_
+
+#include "codec_internal.h"
+
+/* this would all be simpler/shorter with templates, but.... */
+/* Transform backend generic *************************************/
+
+/* only mdct right now. Flesh it out more if we ever transcend mdct
+ in the transform domain */
+
+/* Floor backend generic *****************************************/
+typedef struct{
+ vorbis_info_floor *(*unpack)(vorbis_info *,oggpack_buffer *);
+ vorbis_look_floor *(*look) (vorbis_dsp_state *,vorbis_info_mode *,
+ vorbis_info_floor *);
+ void (*free_info) (vorbis_info_floor *);
+ void (*free_look) (vorbis_look_floor *);
+ void *(*inverse1) (struct vorbis_block *,vorbis_look_floor *);
+ int (*inverse2) (struct vorbis_block *,vorbis_look_floor *,
+ void *buffer,ogg_int32_t *);
+} vorbis_func_floor;
+
+typedef struct{
+ int order;
+ long rate;
+ long barkmap;
+
+ int ampbits;
+ int ampdB;
+
+ int numbooks; /* <= 16 */
+ int books[16];
+
+} vorbis_info_floor0;
+
+#define VIF_POSIT 63
+#define VIF_CLASS 16
+#define VIF_PARTS 31
+typedef struct{
+ int partitions; /* 0 to 31 */
+ int partitionclass[VIF_PARTS]; /* 0 to 15 */
+
+ int class_dim[VIF_CLASS]; /* 1 to 8 */
+ int class_subs[VIF_CLASS]; /* 0,1,2,3 (bits: 1<<n poss) */
+ int class_book[VIF_CLASS]; /* subs ^ dim entries */
+ int class_subbook[VIF_CLASS][8]; /* [VIF_CLASS][subs] */
+
+
+ int mult; /* 1 2 3 or 4 */
+ int postlist[VIF_POSIT+2]; /* first two implicit */
+
+} vorbis_info_floor1;
+
+/* Residue backend generic *****************************************/
+typedef struct{
+ vorbis_info_residue *(*unpack)(vorbis_info *,oggpack_buffer *);
+ vorbis_look_residue *(*look) (vorbis_dsp_state *,vorbis_info_mode *,
+ vorbis_info_residue *);
+ void (*free_info) (vorbis_info_residue *);
+ void (*free_look) (vorbis_look_residue *);
+ int (*inverse) (struct vorbis_block *,vorbis_look_residue *,
+ ogg_int32_t **,int *,int);
+} vorbis_func_residue;
+
+typedef struct vorbis_info_residue0{
+/* block-partitioned VQ coded straight residue */
+ long begin;
+ long end;
+
+ /* first stage (lossless partitioning) */
+ int grouping; /* group n vectors per partition */
+ int partitions; /* possible codebooks for a partition */
+ int groupbook; /* huffbook for partitioning */
+ int secondstages[64]; /* expanded out to pointers in lookup */
+ int booklist[256]; /* list of second stage books */
+} vorbis_info_residue0;
+
+/* Mapping backend generic *****************************************/
+typedef struct{
+ vorbis_info_mapping *(*unpack)(vorbis_info *,oggpack_buffer *);
+ vorbis_look_mapping *(*look) (vorbis_dsp_state *,vorbis_info_mode *,
+ vorbis_info_mapping *);
+ void (*free_info) (vorbis_info_mapping *);
+ void (*free_look) (vorbis_look_mapping *);
+ int (*inverse) (struct vorbis_block *vb,vorbis_look_mapping *);
+} vorbis_func_mapping;
+
+typedef struct vorbis_info_mapping0{
+ int submaps; /* <= 16 */
+ int chmuxlist[256]; /* up to 256 channels in a Vorbis stream */
+
+ int floorsubmap[16]; /* [mux] submap to floors */
+ int residuesubmap[16]; /* [mux] submap to residue */
+
+ int psy[2]; /* by blocktype; impulse/padding for short,
+ transition/normal for long */
+
+ int coupling_steps;
+ int coupling_mag[256];
+ int coupling_ang[256];
+} vorbis_info_mapping0;
+
+#endif
+
+
+
+
+
View
265 wolf3d/code/Tremor/bitwise.c
@@ -0,0 +1,265 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
+ * *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
+ * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
+ * *
+ ********************************************************************
+
+ function: packing variable sized words into an octet stream
+
+ ********************************************************************/
+
+/* We're 'LSb' endian; if we write a word but read individual bits,
+ then we'll read the lsb first */
+
+#include <string.h>
+#include <stdlib.h>
+#include "ogg.h"
+
+static unsigned long mask[]=
+{0x00000000,0x00000001,0x00000003,0x00000007,0x0000000f,
+ 0x0000001f,0x0000003f,0x0000007f,0x000000ff,0x000001ff,
+ 0x000003ff,0x000007ff,0x00000fff,0x00001fff,0x00003fff,
+ 0x00007fff,0x0000ffff,0x0001ffff,0x0003ffff,0x0007ffff,
+ 0x000fffff,0x001fffff,0x003fffff,0x007fffff,0x00ffffff,
+ 0x01ffffff,0x03ffffff,0x07ffffff,0x0fffffff,0x1fffffff,
+ 0x3fffffff,0x7fffffff,0xffffffff };
+
+/* mark read process as having run off the end */
+static void _adv_halt(oggpack_buffer *b){
+ b->headptr=b->head->buffer->data+b->head->begin+b->head->length;
+ b->headend=-1;
+ b->headbit=0;
+}
+
+/* spans forward, skipping as many bytes as headend is negative; if
+ headend is zero, simply finds next byte. If we're up to the end
+ of the buffer, leaves headend at zero. If we've read past the end,
+ halt the decode process. */
+static void _span(oggpack_buffer *b){
+ while(b->headend<1){
+ if(b->head->next){
+ b->count+=b->head->length;
+ b->head=b->head->next;
+ b->headptr=b->head->buffer->data+b->head->begin-b->headend;
+ b->headend+=b->head->length;
+ }else{
+ /* we've either met the end of decode, or gone past it. halt
+ only if we're past */
+ if(b->headend<0 || b->headbit)
+ /* read has fallen off the end */
+ _adv_halt(b);
+
+ break;
+ }
+ }
+}
+
+void oggpack_readinit(oggpack_buffer *b,ogg_reference *r){
+ memset(b,0,sizeof(*b));
+
+ b->tail=b->head=r;
+ b->count=0;
+ b->headptr=b->head->buffer->data+b->head->begin;
+ b->headend=b->head->length;
+ _span(b);
+}
+
+#define _lookspan() while(!end){\
+ head=head->next;\
+ if(!head) return -1;\
+ ptr=head->buffer->data + head->begin;\
+ end=head->length;\
+ }
+
+/* Read in bits without advancing the bitptr; bits <= 32 */
+long oggpack_look(oggpack_buffer *b,int bits){
+ unsigned long m=mask[bits];
+ unsigned long ret=-1;
+
+ bits+=b->headbit;
+
+ if(bits >= b->headend<<3){
+ int end=b->headend;
+ unsigned char *ptr=b->headptr;
+ ogg_reference *head=b->head;
+
+ if(end<0)return -1;
+
+ if(bits){
+ _lookspan();
+ ret=*ptr++>>b->headbit;
+ if(bits>8){
+ --end;
+ _lookspan();
+ ret|=*ptr++<<(8-b->headbit);
+ if(bits>16){
+ --end;
+ _lookspan();
+ ret|=*ptr++<<(16-b->headbit);
+ if(bits>24){
+ --end;
+ _lookspan();
+ ret|=*ptr++<<(24-b->headbit);
+ if(bits>32 && b->headbit){
+ --end;
+ _lookspan();
+ ret|=*ptr<<(32-b->headbit);
+ }
+ }
+ }
+ }
+ }
+
+ }else{
+
+ /* make this a switch jump-table */
+ ret=b->headptr[0]>>b->headbit;
+ if(bits>8){
+ ret|=b->headptr[1]<<(8-b->headbit);
+ if(bits>16){
+ ret|=b->headptr[2]<<(16-b->headbit);
+ if(bits>24){
+ ret|=b->headptr[3]<<(24-b->headbit);
+ if(bits>32 && b->headbit)
+ ret|=b->headptr[4]<<(32-b->headbit);
+ }
+ }
+ }
+ }
+
+ ret&=m;
+ return ret;
+}
+
+/* limited to 32 at a time */
+void oggpack_adv(oggpack_buffer *b,int bits){
+ bits+=b->headbit;
+ b->headbit=bits&7;
+ b->headptr+=bits/8;
+ if((b->headend-=bits/8)<1)_span(b);
+}
+
+/* spans forward and finds next byte. Never halts */
+static void _span_one(oggpack_buffer *b){
+ while(b->headend<1){
+ if(b->head->next){
+ b->count+=b->head->length;
+ b->head=b->head->next;
+ b->headptr=b->head->buffer->data+b->head->begin;
+ b->headend=b->head->length;
+ }else
+ break;
+ }
+}
+
+static int _halt_one(oggpack_buffer *b){
+ if(b->headend<1){
+ _adv_halt(b);
+ return -1;
+ }
+ return 0;
+}
+
+int oggpack_eop(oggpack_buffer *b){
+ if(b->headend<0)return -1;
+ return 0;
+}
+
+/* bits <= 32 */
+long oggpack_read(oggpack_buffer *b,int bits){
+ unsigned long m=mask[bits];
+ ogg_uint32_t ret=-1;
+
+ bits+=b->headbit;
+
+ if(bits >= b->headend<<3){
+
+ if(b->headend<0)return -1;
+
+ if(bits){
+ if (_halt_one(b)) return -1;
+ ret=*b->headptr>>b->headbit;
+
+ if(bits>=8){
+ ++b->headptr;
+ --b->headend;
+ _span_one(b);
+ if(bits>8){
+ if (_halt_one(b)) return -1;
+ ret|=*b->headptr<<(8-b->headbit);
+
+ if(bits>=16){
+ ++b->headptr;
+ --b->headend;
+ _span_one(b);
+ if(bits>16){
+ if (_halt_one(b)) return -1;
+ ret|=*b->headptr<<(16-b->headbit);
+
+ if(bits>=24){
+ ++b->headptr;
+ --b->headend;
+ _span_one(b);
+ if(bits>24){
+ if (_halt_one(b)) return -1;
+ ret|=*b->headptr<<(24-b->headbit);
+
+ if(bits>=32){
+ ++b->headptr;
+ --b->headend;
+ _span_one(b);
+ if(bits>32){
+ if (_halt_one(b)) return -1;
+ if(b->headbit)ret|=*b->headptr<<(32-b->headbit);
+
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }else{
+
+ ret=b->headptr[0]>>b->headbit;
+ if(bits>8){
+ ret|=b->headptr[1]<<(8-b->headbit);
+ if(bits>16){
+ ret|=b->headptr[2]<<(16-b->headbit);
+ if(bits>24){
+ ret|=b->headptr[3]<<(24-b->headbit);
+ if(bits>32 && b->headbit){
+ ret|=b->headptr[4]<<(32-b->headbit);
+ }
+ }
+ }
+ }
+
+ b->headptr+=bits/8;
+ b->headend-=bits/8;
+ }
+
+ ret&=m;
+ b->headbit=bits&7;
+ return ret;
+}
+
+long oggpack_bytes(oggpack_buffer *b){
+ return(b->count+b->headptr-b->head->buffer->data-b->head->begin+
+ (b->headbit+7)/8);
+}
+
+long oggpack_bits(oggpack_buffer *b){
+ return((b->count+b->headptr-b->head->buffer->data-b->head->begin)*8+
+ b->headbit);
+}
+
View
453 wolf3d/code/Tremor/block.c
@@ -0,0 +1,453 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
+ * *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
+ * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ *
+ * *
+ ********************************************************************
+
+ function: PCM data vector blocking, windowing and dis/reassembly
+
+ ********************************************************************/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "ogg.h"
+#include "ivorbiscodec.h"
+#include "codec_internal.h"
+
+#include "window.h"
+#include "registry.h"
+#include "misc.h"
+
+static int ilog(unsigned int v){
+ int ret=0;
+ if(v)--v;
+ while(v){
+ ret++;
+ v>>=1;
+ }
+ return(ret);
+}
+
+/* pcm accumulator examples (not exhaustive):
+
+ <-------------- lW ---------------->
+ <--------------- W ---------------->
+: .....|..... _______________ |
+: .''' | '''_--- | |\ |
+:.....''' |_____--- '''......| | \_______|
+:.................|__________________|_______|__|______|
+ |<------ Sl ------>| > Sr < |endW
+ |beginSl |endSl | |endSr
+ |beginW |endlW |beginSr
+
+
+ |< lW >|
+ <--------------- W ---------------->
+ | | .. ______________ |
+ | | ' `/ | ---_ |
+ |___.'___/`. | ---_____|
+ |_______|__|_______|_________________|
+ | >|Sl|< |<------ Sr ----->|endW
+ | | |endSl |beginSr |endSr
+ |beginW | |endlW
+ mult[0] |beginSl mult[n]
+
+ <-------------- lW ----------------->
+ |<--W-->|
+: .............. ___ | |
+: .''' |`/ \ | |
+:.....''' |/`....\|...|
+:.........................|___|___|___|
+ |Sl |Sr |endW
+ | | |endSr
+ | |beginSr
+ | |endSl
+ |beginSl
+ |beginW
+*/
+
+/* block abstraction setup *********************************************/
+
+#ifndef WORD_ALIGN
+#define WORD_ALIGN 8
+#endif
+
+int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb){
+ memset(vb,0,sizeof(*vb));
+ vb->vd=v;
+ vb->localalloc=0;
+ vb->localstore=NULL;
+
+ return(0);
+}
+
+void *_vorbis_block_alloc(vorbis_block *vb,long bytes){
+ bytes=(bytes+(WORD_ALIGN-1)) & ~(WORD_ALIGN-1);
+ if(bytes+vb->localtop>vb->localalloc){
+ /* can't just _ogg_realloc... there are outstanding pointers */
+ if(vb->localstore){
+ struct alloc_chain *link=(struct alloc_chain *)_ogg_malloc(sizeof(*link));
+ vb->totaluse+=vb->localtop;
+ link->next=vb->reap;
+ link->ptr=vb->localstore;
+ vb->reap=link;
+ }
+ /* highly conservative */
+ vb->localalloc=bytes;
+ vb->localstore=_ogg_malloc(vb->localalloc);
+ vb->localtop=0;
+ }
+ {
+ void *ret=(void *)(((char *)vb->localstore)+vb->localtop);
+ vb->localtop+=bytes;
+ return ret;
+ }
+}
+
+/* reap the chain, pull the ripcord */
+void _vorbis_block_ripcord(vorbis_block *vb){
+ /* reap the chain */
+ struct alloc_chain *reap=vb->reap;
+ while(reap){
+ struct alloc_chain *next=reap->next;
+ _ogg_free(reap->ptr);
+ memset(reap,0,