Commit Graph
2115 Commits
Author SHA1 Message Date
Glenn Maynard 813432c98d Split decode and convert, and do them on alternating frames. 2007-03-25 07:46:20 +00:00
Glenn Maynard 87f1f61021 MovieTextureDirectUpdates. Some drivers are stalling, can't
diagnose it right now ...
2007-03-25 07:45:23 +00:00
Glenn Maynard 0161b65ada Detect when movies have no B-frames, and set CODEC_FLAG_LOW_DELAY
on the next loop.  FFMpeg can't do this automatically, and it
avoids inconsistent CPU use caused by FFMpeg buffering the first
frame in case of B-frames.
2007-03-25 07:42:40 +00:00
Glenn Maynard 7c8691d661 fix timestamps 2007-03-25 04:26:18 +00:00
Glenn Maynard 3f5d83cb9c fix initializer 2007-03-25 04:04:23 +00:00
Glenn Maynard d80b09dd84 ret == 0 means EOF. Don't update the texture; it'll loop and update it again right away. This caused an update before the previous parallel unlock had finished, which apparently triggered the slow path in the driver and caused a 15ms skip. 2007-03-25 04:01:56 +00:00
Steve Checkoway 95429c20eb Include global.h. 2007-03-24 04:38:47 +00:00
Steve Checkoway ffc4fb00bd Set the hardware sample rate first. There seems to be an issue with setting the stream format's sample rate and then the device's sample rate before initializing the AudioUnit. Once initialized, it handles device format changes. I'm not sure why it doesn't before initialization. 2007-03-24 03:29:01 +00:00
Steve Checkoway fef107f778 Doing this one time is enough. 2007-03-24 03:15:08 +00:00
Glenn Maynard ca73913007 use endianless format names
add but comment out a few types; these are crashing ffmpeg, need to
find out why
prefer BGRA; faster for nVidia cards
2007-03-22 21:53:30 +00:00
Glenn Maynard 3a0ebd82a6 renamed in ffmpeg (incorrectly, this is ARGB, not RGB or RGBA) 2007-03-22 21:16:17 +00:00
Glenn Maynard bd4080a501 simplify 2007-03-22 19:23:17 +00:00
Glenn Maynard c7192a3b79 cleanup 2007-03-22 19:14:41 +00:00
Glenn Maynard fde00c7b04 fixup 2007-03-22 19:14:13 +00:00
Glenn Maynard 4139261ac7 use RageTextureLock to avoid a texture copy
remove threaded textures for now at least; makes RageTextureLock
much harder, causes a lot of nondeterministically-timed competing
CPU use, and we can probably optimize more easily this way
2007-03-22 19:11:48 +00:00
Glenn Maynard 0cb0394ad1 handle PIX_FMT_BGR32_1; nVidia cards prefer this format 2007-03-22 05:26:09 +00:00
Glenn Maynard bef66aa6de fix crash 2007-03-21 06:30:12 +00:00
Glenn Maynard ace3a66e36 - ffmpeg API update
- Add support for doing YUV colorspace conversion in hardware,
using a fragment shader.  This speeds up high-resolution movies
substantially, and provides 32-bit color depth with the data
cost of 16-bit textures.
 - optimize rewinding
2007-03-21 05:27:53 +00:00
Glenn Maynard c25aff2f4e fix InputHandler_MonkeyKeyboard 2007-03-15 03:33:25 +00:00
Steve Checkoway 2cd80d2048 Cleanup. The time critical stuff will never work like that on OS X. 2007-03-14 07:06:41 +00:00
Steve Checkoway 3c73e111fd Change set precedence api to return an error message. 2007-03-12 03:37:24 +00:00
Chris Danford 808a5d2b2c GetCurThreadName -> GetCurrentThreadName 2007-02-23 22:02:26 +00:00
Glenn Maynard 3df37c19cc reset to the old mode, not to mode 0 2007-02-21 09:33:13 +00:00
Glenn Maynard 21799d66b8 save to "~/.stepmania cvs" 2007-02-21 09:03:42 +00:00
Glenn Maynard fce7550184 fix wrong GetPRocAddress causing infinite recursion
(How was this never hit in two years?)
2007-02-21 06:35:39 +00:00
Steve Checkoway f0c7d92fb5 Revert glSwapInterval since it does not actually do what I thought it did. Re-enable nVidia hack. 2007-02-20 22:28:52 +00:00
Steve Checkoway 92fd82b630 RString no longer allows NULL. (I have no idea how it took me so long to catch this.) 2007-02-16 07:28:43 +00:00
Glenn Maynard 972cb25f97 when creating a new window for the first time, we have a new device 2007-02-13 06:09:46 +00:00
Glenn Maynard 3c36b5389d fix uncaught errors in VC8 triggering watson instead of our crash handler 2007-02-12 00:40:35 +00:00
Steve Checkoway b88d415b52 Style. 2007-02-11 01:51:44 +00:00
Glenn Maynard 201cc449bd remove m_fVolume 2007-01-27 07:29:22 +00:00
Glenn Maynard 1bf9de3543 float 2007-01-27 07:18:52 +00:00
Steve Checkoway 3b39d09843 Update for Signal handler api change. 2007-01-25 11:44:12 +00:00
Glenn Maynard 957d6232e1 fix warning 2007-01-24 11:43:26 +00:00
Glenn Maynard ba32e7abba just return; SignalHandler will do this 2007-01-24 11:40:41 +00:00
Glenn Maynard 0b26020d96 fix crashes in crash handler being handled by DoCleanShutdown 2007-01-24 11:38:29 +00:00
Glenn Maynard db674f125f init normally, with the rest 2007-01-19 02:40:07 +00:00
Steve Checkoway bae94ed8ab Fix warning, fix compile. 2007-01-19 01:42:44 +00:00
Glenn Maynard 38a2c6d5c2 init m_iMaxHardwareFrame 2007-01-19 01:28:13 +00:00
Glenn Maynard e6db9bc2a7 RageSound_Generic_Software -> RageSoundDriver 2007-01-19 00:38:24 +00:00
Steve Checkoway 3391f98d52 Unused header and rearranged them. 2007-01-18 12:44:45 +00:00
Steve Checkoway 2207bbec54 Er, character encoding of the comment, maybe? 2007-01-18 12:41:43 +00:00
Glenn Maynard f8c19d688d clarify 2007-01-18 09:28:05 +00:00
Glenn Maynard 0c2a32144c remove unused RageSoundDriver_Generic_Software.h 2007-01-18 09:23:55 +00:00
Glenn Maynard 5486753c90 RageSoundDriver 2007-01-18 09:20:56 +00:00
Glenn Maynard d6efbc455c This isn't safe; RageSoundDriver::StopMixing skips to HALTING. The decoder thread shouldn't hold the lock long anymore, since reading data should be nonblocking (readers at this point are either preloaded, or have a threaded buffer). 2007-01-18 07:32:41 +00:00
Steve Checkoway 7a6eabd616 RageSoundDriver. 2007-01-02 23:23:30 +00:00
Steve Checkoway ea988bab1c Remove old, buggy driver. 2006-12-30 04:31:55 +00:00
Steve Checkoway bdda436ce7 Remove old buggy driver. 2006-12-30 04:31:06 +00:00
Steve Checkoway 941c11b55e Windows can't handle standard format specifiers... 2006-12-30 04:27:36 +00:00