Commit Graph
1424 Commits
Author SHA1 Message Date
Steve Checkoway 35ad7eb289 Support preferred sample rates and report the latency more correctly. 2005-10-24 08:55:25 +00:00
Steve Checkoway cb229a8774 Remove redundant defines. 2005-10-24 08:17:12 +00:00
Glenn Maynard 3cb8e00e94 remove HAVE_UNIX harder 2005-10-24 07:27:50 +00:00
Glenn Maynard 040e795623 remove HAVE_UNIX 2005-10-24 07:26:53 +00:00
Glenn Maynard a21a296d5a HAVE_UNIX -> UNIX 2005-10-24 07:26:24 +00:00
Glenn Maynard 94f5407bda remove HAVE_LINUXKERNEL 2005-10-24 07:23:38 +00:00
Glenn Maynard 539ec6aa5c HAVE_WIN32 -> WINDOWS. HAVE_LINUXKERNEL -> LINUX. If some features originating in Linux work on other systems, then define them specifically (eg. HAVE_LINUX_JOYSTICKS). 2005-10-24 07:22:28 +00:00
Glenn Maynard 45ec442600 I'm not entirely sure why someone thought it was appropriate to call someone else's code "Useless!" in the source code. (The comment was also entirely wrong: the driver was used for prototyping on a system that used SDL for video but received input from a TTY, which SDL didn't support.) 2005-10-24 07:17:24 +00:00
Glenn Maynard a1f58e11eb remove HAVE_WIN32. We have WIN32 (WIndows, Xbox) and WINDOWS
(Windows only); we don't need "HAVE_WIN32" to complicate things further.
2005-10-24 07:12:56 +00:00
Steve Checkoway 532b115aa6 Remove unnecessary. (Funny comment though.) 2005-10-24 06:51:20 +00:00
Glenn Maynard 2791f8f90b remove unneeded
fix use before init
2005-10-24 05:38:04 +00:00
Steve Checkoway a2c1b1443d Cleanup. 2005-10-24 05:28:38 +00:00
Glenn Maynard 330f0a783c MovieDecoder_Theora is reading the entire file when given a non-Ogg. Treat holes at the beginning of the file as fatal. 2005-10-24 05:19:53 +00:00
Glenn Maynard 20f8e3e08f MovieDecoder_Theora is reading the entire file when given a non-Ogg. This fix should expose the actual problem (rest of the fix coming). 2005-10-24 05:06:51 +00:00
Glenn Maynard 06d12e2239 support PREFSMAN->m_iSoundPreferredSampleRate 2005-10-24 02:45:45 +00:00
Glenn Maynard 4bd59b5a7b cleanup 2005-10-24 02:42:56 +00:00
Glenn Maynard 5507c323da cleanup 2005-10-24 02:41:58 +00:00
Glenn Maynard bcf1d288f9 support PREFSMAN->m_iSoundPreferredSampleRate 2005-10-24 02:37:04 +00:00
Glenn Maynard ee5e5dd25a cleanup 2005-10-24 02:28:31 +00:00
Glenn Maynard 74ee22ad04 cleanup 2005-10-24 02:14:43 +00:00
Glenn Maynard 9d32f5e9f5 use PREFSMAN->m_iSoundPreferredSampleRate 2005-10-24 01:21:07 +00:00
Glenn Maynard 9d7ce29cdd report the fake sample rate, so changes to it work 2005-10-23 22:00:23 +00:00
Glenn Maynard 49e8dd1327 cleanup 2005-10-23 21:53:32 +00:00
Glenn Maynard 3044155ce8 fix crash if DirectSoundCreate fails (eg. no sound devices) 2005-10-22 03:10:53 +00:00
Glenn Maynard 59fb0dbe41 move code 2005-10-21 18:59:06 +00:00
Glenn Maynard 0bc413262d Pass the surface directly to GetFrame, and a timestamp if frame skipping is
enabled.
 - This is simpler--two fewer entry points, and a trivial decode path.
 - Puts the mechanics of frame skipping in the decoder's control.  Previously,
   all we did was skip conversion and texture updates.  Now, the decoder
   can be smarter: skip B-frames, or skip to a keyframe.
 - This allows for faster decodes, using slice-based conversion: YUV conversion
   can be done at the same time as decoding.
2005-10-21 07:47:06 +00:00
Glenn Maynard 2513b7aac1 cleanup:
hopefully deal with unknown extension headers (untested)
 require ogg, not vorbis
2005-10-21 05:44:33 +00:00
Glenn Maynard 42e88812ea works without this 2005-10-21 01:46:46 +00:00
Glenn Maynard 6ee40039a8 cleanup 2005-10-21 01:45:16 +00:00
Glenn Maynard f77dd38f0f cleanup 2005-10-21 01:39:07 +00:00
Glenn Maynard 073d9e5290 MovieDecoders shouldn't need TEXTUREMAN. 2005-10-21 01:32:39 +00:00
Glenn Maynard 99eb66b31b - if m_bWantRewind is true at the start of DecodeFrame (probably called Seek),
don't make spurious calls to GetFrame (waste of CPU)
 - fix DecodeFrame setting FRAME_DECODED without actually decoding a frame on EOF
   after loop
update comment
(probably not related to "movie not looping" problems)
2005-10-21 00:49:18 +00:00
Glenn Maynard 8b023b1d50 fix log 2005-10-20 21:09:09 +00:00
Glenn Maynard d17aaf31fb fix duration (seconds per frame, not frames per second) 2005-10-20 21:07:25 +00:00
Glenn Maynard 50d6089532 temp workaround 2005-10-20 20:47:01 +00:00
Glenn Maynard f4cb784da8 fix type 2005-10-20 20:46:41 +00:00
Glenn Maynard cffe83e32f fix wrong pixel formats used 2005-10-20 20:43:28 +00:00
Glenn Maynard a9e940560b fix warning 2005-10-20 20:39:23 +00:00
Glenn Maynard ee492d5284 work around namespace error 2005-10-20 20:38:57 +00:00
Glenn Maynard f500aac258 XIPH_LIB_DIR -> OGG_LIB_DIR 2005-10-20 11:11:26 +00:00
Glenn Maynard c00fa12e6c theora 2005-10-20 10:56:36 +00:00
Glenn Maynard 240d8d904b loader 2005-10-20 10:55:20 +00:00
Glenn Maynard 5209d7505b Add Ogg Theora decoder.
This still uses avcodec for YUV to RGB conversion.
2005-10-20 10:54:48 +00:00
Glenn Maynard 0baed8b4ce cleanup 2005-10-20 08:33:37 +00:00
Glenn Maynard e577a5bbab unneeded 2005-10-20 08:26:40 +00:00
Glenn Maynard 5476c7bf9e comments, cleanup 2005-10-20 08:16:48 +00:00
Glenn Maynard d196641baa Export format searching stuff, so other formats can use it. 2005-10-20 07:58:16 +00:00
Glenn Maynard e2151e0178 Split out generic parts of movie decoder, to make it easier to implement others.
We could make MovieDecoder the arch class, with MovieTexture_Generic
replacing RageMovieTexture, but it forces a pull-based API, and DShow
insists on being callback-based ...
2005-10-20 07:19:42 +00:00
Glenn Maynard edd8ea7a01 move HAVE_CRYPTOPP 2005-10-20 03:41:42 +00:00
Glenn Maynard 083119700c doesn't belong here; do in arch_setup 2005-10-20 03:38:53 +00:00